linker-errors

Linker Error During OpenGL: SuperBible Tutorial

馋奶兔 提交于 2019-12-10 16:08:14
问题 I'm currently trying to decide between DirectX and OpenGL by programming a little DirectX 10 and OpenGL 3.3. I already have the setup for DirectX finished, it was fairly easy to link and compile. OpenGl is... harder. The OpenGL Superbible has a beginning example called Triangle.cpp in which we link two libraries freeglut_static.lib and GLTools.lib . This isn't a problem; I have also gone to the Project Directories and included the Include/ and lib/ path of all necessary OpenGL extensions

Named common block in a shared library

无人久伴 提交于 2019-12-10 16:00:02
问题 I am encountering a problem when I include a Fortran subroutine in a shared library. This subroutine has a named common block. I have a Fortran main program that uses this common block and links with the shared library. The behavior is that variables in the common block set in either the subroutine or main program are not shared between the two. I am using gfortran 4.9.3 under MinGW on windows. Here are the pieces of my very simple example. Main program: program mainp common/whgc/ivar ivar =

Error: duplicate symbols for architecture armv7 after change Core Data Model

百般思念 提交于 2019-12-10 14:24:51
问题 I have an app using core data framework. I was working fine. I just changed the data model - add an attribute to one entity. And when I try to build it, I got an error: duplicate symbol _OBJC_METACLASS_$_AccountFolder in: /Users/XXX/Library/Developer/Xcode/DerivedData/MyApp-bxsswgxdenxgjweotkkkckaoalat/Build/Intermediates/MyApp.build/Debug-iphoneos/MyApp.build/Objects-normal/armv7/AccountFolder-33D7EA63E98D6090.o ld: 4 duplicate symbols for architecture armv7 clang: error: linker command

“error LNK2001: unresolved external symbol” [duplicate]

笑着哭i 提交于 2019-12-10 13:18:42
问题 This question already has answers here : What is an undefined reference/unresolved external symbol error and how do I fix it? (32 answers) Closed 2 years ago . I have a problem with my program in VC++ 2008. When I compile it, the following errors are listed. I spent a lot of time on the groups.google.com to find the reason, but no comment helped me. Does anybody knows what the problem is? Thanks. error LNK2001: unresolved external symbol "long rfl_xref_id" (?rfl_xref_id@@3JA) error LNK2001:

LNK 2005 in Visual C++ in Visual Studio 2010

こ雲淡風輕ζ 提交于 2019-12-10 12:57:38
问题 I'm trying to compile a C++ program, written using Visual C++ 2005 and MFC, in MS VS 2010. Sadly I'm getting the following error during compilation: Error 2 error LNK2005: "public: virtual __thiscall CMemDC::~CMemDC(void)" (??1CMemDC@@UAE@XZ) already defined in CMemDCImpl.obj Project\Project\Project\uafxcwd.lib(afxglobals.obj) Project. CMemDCImpl has a header file which contains definitions of all members of the class CMemDCImpl, and *.cpp file with their implementations. Please help me to

Boost.Log failing to link with static libraries because of missing code_convert

不想你离开。 提交于 2019-12-10 11:38:11
问题 I'm trying to link Boost.Log statically into my program. Boost.Log has successfully compiled with other modules using bjam. However, when I try to link with my program I'm getting an error: g++ -g -O2 -pthread -o sonar sonar-main.o sonar-config.o sonar-util.o sonar-logger.o /home/mike/dev/cpp/boost_1_60_0/stage/lib/libboost_system.a /home/mike/dev/cpp/boost_1_60_0/stage/lib/libboost_timer.a /home/mike/dev/cpp/boost_1_60_0/stage/lib/libboost_iostreams.a /home/mike/dev/cpp/boost_1_60_0/stage

Linker errors 2005 and 1169 (multiply defined symbols) when using CUDA __device__ functions (should be inline by default)

回眸只為那壹抹淺笑 提交于 2019-12-10 11:29:28
问题 This question is very much related to: A) How to separate CUDA code into multiple files B) Link error LNK2005 when trying to compile several CUDA files together Following advice from here: https://meta.stackexchange.com/questions/42343/same-question-but-not-quite and here https://meta.stackexchange.com/questions/8910/asking-a-similar-but-not-the-same-question I am asking a very similar question but I want to be absolutely clear about where is the difference between my question and the

Symbol lookup error: _FileName_: undefined symbol: _intel_fast_memmove

时光怂恿深爱的人放手 提交于 2019-12-10 11:20:01
问题 So I'm working on linking together a Fortran and a C++ code, and I'm getting the above error when I try and run the executable. I've done some searching for other solutions, and none of the things I've found so far have helped. I'll try and include everything, but I'm not that great with this kind of stuff so if there's anything else that is needed/useful to see let me know and I'll go grab it. Makefile: LDLIBS = -I/share/apps/intel/composer_xe_2011.sp1.10.319/mkl/include \ -L/share/apps

Linker error while unit testing with Visual Studio C++

纵然是瞬间 提交于 2019-12-10 11:06:58
问题 I want to unit test my C++ project with Visual Studio. After adding the folders from my project as include path to my test project, I get linker errors when trying to compile the tests: Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol "public: __thiscall Piece::Piece(enum Color)" (??0Piece@@QAE@W4Color@@@Z) referenced in function "public: __thiscall Bishop::Bishop(enum Color)" (??0Bishop@@QAE@W4Color@@@Z) ChessPlusPlus-Tests D:\Documents

Can't compile 64 bits Visual Studio 2010 projects

女生的网名这么多〃 提交于 2019-12-10 10:59:38
问题 I have several VS 2010 projects that I can not compile at 64 bits (32 bits builds worke fine without any problem). I did extensive things, like Reset Visual Studio Settings, first by IDE, after by command line; repair, reinstall, etc. and could not compile the projects. It was always telling me that cannot find ******.lib where the lib file was always a system library. Examples: fatal error LNK1104: cannot open file 'shlwapi.lib' fatal error LNK1104: cannot open file 'kernel32.lib' 回答1: After