linker

Undefined reference to operator new

I'm trying to build a simple unit test executable, using cpputest. I've built the cpputest framework into a static library, and am now trying to link that into an executable. However, I'm tied into a fairly complicated Makefile setup, because of the related code. This is my command line: /usr/bin/qcc -V4.2.4,gcc_ntoarmle_acpp-ne -lang...

flycaputer2 link error

Hi, I have some simple code using Point Gray's FlyCapture libraries: #include <iostream> #include "FlyCapture2.h" using namespace std; int main(){ cout << "Hello World!"; FlyCapture2::BusManager m; return 0; } The above code gives these link error at compile time: 1>------ Build started: Project: CJMVideo, Configuratio...

C++ LNK2019 ( between project classes )

Hi, I have an very strange error : When i want to use the SocialServer::Client class from my SocialServer::Server class the linker threw me 2 LNK2019 errors : Error 1 error LNK2019: unresolved external symbol "public: void __thiscall SocialServer::Client::Handle(void)" (?Handle@Client@SocialServer@@QAEXXZ) referenced in function "priva...

Missing entry point for x64 DLL project

I create a simple dll project with visual studio 2010 wizard, haven't filled any code. When I build it on Win32 platform, everything works fine. The problem is when I switch to x64 platform, there is Link error. 2>LINK : fatal error LNK1561: entry point must be defined The export marco has been define in the stdafx.h like: #define A...

How to subclass JavaScriptCore's JSC::Debugger c++ class?

I wanted to subclass the JSC::Debugger from JavaScriptCore. I always end up with the same error: Undefined symbols: "typeinfo for JSC::Debugger", referenced from: typeinfo for JavaScriptDebuggerin JavaScriptDebugger.o ld: symbol(s) not found collect2: ld returned 1 exit status I don't know enough about c++ to understand why th...

Exporting member function of a static library

Is it possible (or relevant at all) to export member functions of a static library? When I "dumpbin /EXPORTS" my .lib file I don't see any of my defined class members. Linking to this lib file succeeds, but I use an external tool that fails to read non-exported symbols. Also tried adding a .def file with no results. ...

_OBJC_CLASS_$_NSURL error with iPhone OS4.0

Hi, I have a OS3.1 project which now needs to be upgraded via SDK 4.0 But when I try to compile to a device runing 3.1 Im getting this linker error. dyld: Symbol not found: _OBJC_CLASS_$_NSURL Referenced from: /var/mobile/Applications/E93D0DD1-18EB-4D2E-B99E-23B74EBE42CC/RacingUK.app/RacingUK Expected in: /System/Library/Frameworks...

DLL Get Symbols From Its Parent (Loader)

I am porting a program to MS Windows. This program uses dynamically loaded plugins. The plugins reference symbols in the main program. I cannot even get the DLLs past the linker without all symbols being resolved. Is there a way to solve this? ...

How to fix a linking bug?

hey, sorry for this but i'm trying to figure out what's the problem for too long, if you can spot a clue from this long error message i will be thankful Error 6 error LNK2019: unresolved external symbol "public: __thiscall Adjutancy::Adjutancy(class std::set<class Vehicle *,struct CompareCatId,class std::allocator<class Vehicle *>...

How can I link 2 .exe in c++?

I mean to link them and transfer some attribute. for example first program send array and second program get , then send another array. ...

can I override the version block in a dll?

Suppose I have built a lot of dlls from a certain revision of the svn repository. (It might by any revisioning system) I am able to create a resource file containing an entry that denotes the revision number. Can I link that resource file into the dll's I have already built? Some sort of editbin or the like? ...

Linking problem with FreeMagic & GraphicsMagic

Whenever I link in either FreeMagic & GraphicsMagic, i get a SIGABRT as soon as main starts, possibly even before. Any ideas? It is not sufficient to just add the link flags, but for instance adding the call to FreeImage_Initialise(FALSE); somewhere in main() makes the program die in a SIGABRT. Stacktrace from where it crashes: #0 0...

Unresolved external symbol: @12 vs @8 at the end of symbol name

Hi all, I don't have any significant experience with C++ but recently had to be involved into the project with C++ part (apache modules, actually). Right now I am just trying to build some existing very much legacy code and face the very weird problem when VC++ linker cannot find one particular function in the apache library (while see...

CMake: how to produce binaries "as static as possible"

I would like to have control over the type of the libraries that get found/linked with my binaries in CMake. The final goal is, to generate binaries "as static as possible" that is to link statically against every library that does have a static version available. This is important as would enable portability of binaries across different...

How to declare a C array that takes up all free space in a memory section?

Assume I have a 128KB memory region. In my linker directives I split this region into three sections: .section_text .section_data .section_bss The size of each section is unknown pre-compilation, but I have constrained .section_bss to use all remaining space within the memory region after .section_text and .section_data are allocate...

How do i prevent direct linking to a few pdf files?

I'm working on a website where I need to prevent the direct linking to a few pdf files. I'm using ASP.net 2.0. Is there an easy way in code to do this? or some simple IIS setting? Right now i'm just using a standard anchor tag to link to the files. i can validate the user on the page containing the anchor tag but that still doesn't ...

Finding link time bottlenecks

A question I haven't seen answered that I'm finding very interesting. All the other threads seems to discuss forcing the problem, ie switching to dynamic linking or just distributing the workload. I'm more interested in actually finding out what's causing linking to take so long. The problem is that I don't really see any official ways...

Linker error in dev c++

Hi, I download this program, and I add a little modification. When I compile this I see this errors. I found in Internet solution, that this parameters -lole32 -lkernel32 -lgdi32 -luuid -luser32 help me. I add this to linker and dev c++ throw me this errors What is wrong? What parameters I must add? ...

OSX linking non-universal (i386) w/ universal .dylib

Is this legal? I'm getting an error "Can't find <lib>.framework/Versions/4/<lib>" from the linker. In this case, <lib> is 'QtGui' that has been built as an i386 framework (not universal), but another (third party) lib I'm linking to (that uses QtGui) is universal. I'm thinking everything has to be built universal or not... ...

iOS 4.1 SDK - Duplicate Symbols in Multiple Static library Linking for Device Builds

My company is building an app with SDK 4.1 for the iPhone. To do this we have 3 levels of project dependencies, our main App "CSM" is linking to our SDK called "csm-sdk" (in libsrc_csmsdk.a) csm-sdk then links to our XMLRPC library ("libXMLRPC.a"). When compiling csm-sdk for the device, it include definitions for all of the ObjC classe...