linker

c++ visual studio 2008 Linking problem

When I build my project it compiles well, but when Linking it throws huge number of LNK errors! error LNK2001, error LNK2005, error LNK2019 were there in the error list >Linking... 1>MultiCatAttributeInfo.obj : error LNK2019: unresolved external symbol "public: class std::vector<class std::basic_string<char,struct std::char_traits<char>...

linker error for ns_initparse

Here the code #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <netinet/in.h> #include <resolv.h> int main (int argc, char *argv[]) { u_char nsbuf[4096]; char dispbuf[4096]; ns_msg msg; ns_rr rr; int i, j, l; if (argc < 2) { printf ("Usage: %s <domain>[...]\n", argv[0]); exit ...

How do I trace into an externally-compiled lib in Visual C++

I built the non-dll version of OpenSSL on my windows box. Per the instructions I modified the build script to include debug symbols. I can link against them fine and they run. But when I try to step into an openssl function from my cpp code it just steps over. I know this is a total noob question but how do I fix this? I have all th...

How to statically link using link.exe

I've been trying to statically link against a C++ library called Poco on Windows using the Visual Studio 2008 command line tools. I build my program with: cl /I..\poco\lib /c myapp.cpp link /libpath:..\poco\lib myapp.obj PocoNet.lib This results in an exe that at runtime requires PocoNet.dll and PocoFoundation.dll. I spent some time...

Binary libraries

What are binary libraries? How to generate statistically linked binaries to libraries? What is the difference between libraries and binaries? ...

Undefined symbols. ld: symbol not found

Everything is working except this undefined symbols error: bash-3.2$ make g++ -Wall -g solvePlanningProblem.o Position.o AStarNode.o PRM.o PRMNode.o Worl.o SingleCircleWorld.o Myworld.o RECTANGLE.o CIRCLE.o -o solvePlanningProblem `Undefined symbols: "Obstacle::~Obstacle()", referenced from: Myworld::~Myworld()in Myworld.o ...

How come we pass the linking stage and still miss symbols ? ?

Hi All And thanks in advance. operating system: AIX 5.3. compiler: xlC_r build system is: "Unix Makefiles" our application uses several static (.a) libs and several shared (.so) libs. the build process pass successfully (we do get some duplicate symbol warnings). but when we try to execute we are getting symbol missing errors. Note:...

Modify dll exports (symbol table). I want to obfuscate the function names.

I have a third party dll that I want to change the symbol names. Is this possible? I dont want the competition to know what component my product uses. I don't have the source for the dll. ...

How could I create a static library using visual stdio tools on the command line and automate .def creation

I'd like to create a static library using windows tools (cl.exe, link.exe, lib.exe, etc.) but I don't want to manually enter the names of the functions to export either in a .def file or specifying __declspec(dllexport) in the file. It should be similar to creating a .a file on linux, where anything not static to the files the library wa...

Linker Error: iPhone Unit Test Bundle referencing App classes

Starting with an app already in development, I have carried out the instructions in the iPhone Development Guide – Unit Testing Applications I can successfully include and use my App's classes in Application-style tests that run on the device, and output their results to the console. If I add the following line of code: STAssertTrue([...

What to the linker function definitions stand for?

We have a linker error when upgrading an SDK. Looking inside the .lib file we can see the old function definition was: ?SetupMOSSDK@@YAEPBGKPBUMOSGUID@@K@Z However the new .lib file has a slightly different definition of the same function: ?SetupMOSSDK@@YAEPB_WKPBUMOSGUID@@K@Z The change is the _W instead of a G. What I do not kn...

C++ unresolved symbols

Hey I'm getting an unresolved symbol error at linking in my proj. Im linking to an external library, and yes i have set up the configuration correctly, but when in Debug it outputs the following error for every class in the external library: error LNK2001: unresolved external symbol __CAP_EXIT_Function The proj uses the same runtime ...

MFC CRT Order Linker Problem

Hey there! I have exactly the problem described here (i'm getting those linker errors when trying to add MFC to my project): http://support.microsoft.com/?scid=kb%3Ben-us%3B148652&amp;x=8&amp;y=9 however - if I follow the solution and enter nafxcwd.lib; libcmtd.lib into 'ignore libraries' as well as 'additional dependencies', then i'll...

xerces-c 2.8 : error while loading shared libraries

Hi, I'm trying to compile a program running on an HP UX server on a Red Hat Linux. It uses xerces-c library to parse xml files. Compilation is ok, but when i try to run it, I get the following message ./a.out: error while loading shared libraries: libxerces-c.so.28: cannot open shared object file: No such file or directory ...

Extract statically linked libraries from an executable

I'm not sure if this is even possible, but given an executable file (foo.exe), with has many libraries which has been linked statically. Is there any software that extract from this file the .lib ( or .a ) that lay inside the executable ? Thanks. ...

c++ templated class does not link

template<typename AT> class growVector { int size; AT **arr; AT* defaultVal; public: growVector(int size , AT* defaultVal); //Expects number of elements (5) and default value (NULL) AT*& operator[](unsigned pos); int length(); void reset(int pos); //Resets an element to default value void ...

LD linker: Target address aligning but not address in ROM

I have a program that's resident in flash and will run from flash. Early in the program data segments are copied from flash to ram. I'm using a linker script like (simplified): .text : { *(.text) } > FLASH _etext = .; PROVIDE (etext = .); .rodata : { PROVIDE(__COPY_DATA_START__ = .); *(.rodata) } > ram AT>flash PROVIDE (...

linking mess with libc

I have a library compiled into a .a file, linked against my application. (iphone, developing with Xcode) Everything seems to be fine, linking seems to succeed, but when I run the program it crashes. The point of crash is at a memcmp() call in the statically linked library. The debugger shows all kind of stuff called with "dyld" in their...

problem with netscape portable runtime (nspr)

I'm trying to compile an app that mkese use of the nspr library. I'm running to an error though with this part of the make file: g++ -ljs -lboost_thread-mt -lboost_regex -lboost_system-mt -lnspr -lxerces-c -lmysqlpp -c -g -I/usr/local/include/boost-1_38/ -I/usr/local/include/mysql++ -I/usr/include/mysql -I/usr/local/include/nspr -I/us...

problem w/ linking static function g++

Hi- I am trying to build a small program and I have my own library libfoo. I have a camera class that is calling a static function from my Vector3 class (i.e. crossProduct). My camera class and Vector3 class compile ok and are built into libfoo. However when I am linking like so: g++ -g -O2 -o test1 main.o -lfoo I get this: libfo...