linker-errors

Visual Studio - error LNK2005 in debug mode

瘦欲@ 提交于 2019-12-04 07:51:28
I'm integrating 3rd party code into my MFC app under Visual Studio 2010. When in Debug mode the following build error occurs: 1>LIBCMT.lib(invarg.obj) : error LNK2005: __initp_misc_invarg already defined in libcmtd.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: __call_reportfault already defined in libcmtd.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: __set_invalid_parameter_handler already defined in libcmtd.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: __get_invalid_parameter_handler already defined in libcmtd.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) :

can't compile samples of OpenGL Superbible 7th (unresolved external symbol)

时光总嘲笑我的痴心妄想 提交于 2019-12-04 07:33:20
I'm following the steps in HOWTOBUILD.txt . I have the necessary files for glfw built already. For the first time, the linker is complaining about glfw. After searching, it seems I need to link against gl3w see this link . I've generated the static libs for gl3w . Now, I've opened a new project and included the path to include , see the below picture. For the linker, I've linked against glfw3dll.lib gl3w.lib opengl32.lib and included their path. If I run the sample from the first chapter, main.cpp #include "sb7.h" class my_application : public sb7::application { void render(double currentTime)

GHUnit Linker Error with App Classes

孤人 提交于 2019-12-04 06:59:12
I'm trying to run a GHUnit test to just test that a setter actually works for a NSManagedObject object in my app. My app is called Machine and my GHUnit target is called Tests. I've added Machine as a dependency to the Tests target. My object in the test is called Goal. Here is the code and the error in the Link is shown below. #import <GHUnitIOS/GHUnit.h> #import <CoreData/CoreData.h> #import "Goal.h" #import "GoalRec.h" @interface ControllerTests : GHTestCase { } @property (retain) Goal *goal; @end @implementation ControllerTests @synthesize goal; - (BOOL)shouldRunOnMainThread { // By

unable to link to fftw3 library

偶尔善良 提交于 2019-12-04 05:37:49
I am compiling a test program to test the fftw3 (ver3.3.4). Since it is not installed with root previlidge the command I used is: gcc -lm -L/home/my_name/opt/fftw-3.3.4/lib/ -I/home/my_name/opt/fftw-3.3.4/include/ fftwtest.c where the library is installed in /home/my_name/opt/fftw-3.3.4/ My code is the 1st tutorial on fftw3's website: #include <stdio.h> #include <fftw3.h> int main(){ int n = 10; fftw_complex *in, *out; fftw_plan p; in = (fftw_complex*) fftw_malloc(n*sizeof(fftw_complex)); out = (fftw_complex*) fftw_malloc(n*sizeof(fftw_complex)); p = fftw_plan_dft_1d(n, in, out, FFTW_FORWARD,

Using Core Plot iPhone - Linker error

ぐ巨炮叔叔 提交于 2019-12-04 05:06:53
问题 I kept getting the following linker error when i try using Core Plot in my project... Undefined symbols for architecture i386: "_OBJC_CLASS_$_CPXYGraph", referenced from: objc-class-ref in CorePlotImplViewController.o "_OBJC_CLASS_$_CPPlotRange", referenced from: objc-class-ref in CorePlotImplViewController.o "_OBJC_CLASS_$_CPLineStyle", referenced from: objc-class-ref in CorePlotImplViewController.o "_OBJC_CLASS_$_CPColor", referenced from: objc-class-ref in CorePlotImplViewController.o "

Linker error with libpng under MacOSX

我怕爱的太早我们不能终老 提交于 2019-12-04 04:51:08
I'm working on MacOSX 10.7.2 and Xcode 4.2.1. I installed libpng using port and I was trying to load a PNG image in my application, but I get linker errors: Undefined symbols for architecture x86_64: "_png_create_read_struct", referenced from: loadPngImage(char*, int&, int&, bool&, unsigned char**) in test.o "_png_create_info_struct", referenced from: loadPngImage(char*, int&, int&, bool&, unsigned char**) in test.o "_png_destroy_read_struct", referenced from: loadPngImage(char*, int&, int&, bool&, unsigned char**) in test.o "_png_set_longjmp_fn", referenced from: loadPngImage(char*, int&, int

Linker error 'unresolved external symbol' : working with templates

穿精又带淫゛_ 提交于 2019-12-04 03:56:26
I have a template based class [Allotter.h & Allotter.cpp]: template <typename allotType> class Allotter { public: Allotter(); quint32 getAllotment(allotType*); bool removeAllotment(quint32, int auto_destruct = 0); private: QVector<QPair<quint32, allotType*>> indexReg; int init_topIndex; }; and it's usage is shown as [ActiveListener.h & ActiveListener.cpp]: class ActiveListener: public QObject { Q_OBJECT public: ActiveListener(); private slots: void processConnections(); void readFromSocket(int); private: QTcpServer* rootServer; QSignalMapper* signalGate; Allotter<QTcpSocket> TcpAllotter; }; I

Visual Studio 2010: dll missing

[亡魂溺海] 提交于 2019-12-04 03:43:47
问题 I googled for a whole day and I'm goin' mad.. Well, that's my problem: I've written my vs project, I've specified all the "include" (by selecting project properties -> configuration properties -> VC++ directories) and all the extern libraries directories (in the same way). Then I specified all the additional libraries by selecting project properties -> Linker -> input -> Additional Dependencies and adding all the .lib files paths. I press F7, it compiles with no errors. I run the project and.

duplicate symbols for architecture x86_64 (Implementing FBSDKCoreKilt) Swift

﹥>﹥吖頭↗ 提交于 2019-12-04 02:55:55
问题 This is the most horrifying error that I've dealt with so far. To be clear: This is in swift so it's not a ".h" ".m" issue My compile sources is so tiny, there are no duplicates there. I have redownloaded the SDK several times but it never works. The project only has two frameworks in it: FBSDKCoreKit and LoginKit Any ideas? What is duplicated? duplicate symbol _llvm.cmdline in: /Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o) /Users

Google Conversion Tracking for iOS linker error for architecture armv7

与世无争的帅哥 提交于 2019-12-04 02:42:09
I'm trying to add the Google Conversion Tracking for iOS feature to my iPhone app. The app's base SDK is iOS6 the app's valid architectures is armv7, armv7s the app's iOS deployment targer is 4.3 I'm using the latest xcode 4.5.2 and OSX 10.8.2 The app is in appstore and is ok for iPhone 3-4-5 When I try to add the Google Conversion Tracking for iOS following this link: https://developers.google.com/mobile-ads-sdk/docs/admob/conversion-tracking I have this error: Undefined symbols for architecture armv7: "_OBJC_CLASS_$_ASIdentifierManager", referenced from: objc-class-ref in