linker-errors

GoogleMapsSDK : Undefined symbols for architecture x86_64

孤者浪人 提交于 2019-11-30 08:24:34
I am trying to install the Google maps SDK and I am running through this error when running: Undefined symbols for architecture x86_64: "_CBAdvertisementDataManufacturerDataKey", referenced from: -[GMSx_PEBeaconScanner centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in GoogleMaps(PEBeaconScanner.o) "_CBAdvertisementDataServiceDataKey", referenced from: -[GMSx_PEBeaconScanner centralManager:didDiscoverPeripheral:advertisementData:RSSI:] in GoogleMaps(PEBeaconScanner.o) "_CBCentralManagerScanOptionAllowDuplicatesKey", referenced from: -[GMSx_PEBeaconScanner scanIfAppropriate] in

Visual Studio 2013 (vs120) asks for wrong boost libraries

耗尽温柔 提交于 2019-11-30 08:07:38
问题 I'm trying to compile one of my projects on Windows 7, using Visual Studio 2013. I've installed Boost 1.53 and setup the solution using cmake. What happens is that now the compiled libraries of boost are in the form libboost_*-vc120-mt(-gd)-1_53.lib . In the linker project options, under the input tab, I have verified that the libraries that I need are there, and in fact the compiler is able to correctly read them. However, for some reason that I absolutely can't understand, the linker is

MPI - error loading shared libraries

穿精又带淫゛_ 提交于 2019-11-30 07:38:01
The problem I faced has been solved here: Loading shared library in open-mpi/ mpi-run I know not how, setting LD_LIBRARY_PATH or specifying -x LD_LIBRARY_PATH fixes the problem, when my installation itself specifies the necessary -L arguments. My installation is in ~/mpi/ I have also included my compile-link configs. $ mpic++ -showme:version mpic++: Open MPI 1.6.3 (Language: C++) $ mpic++ -showme g++ -I/home/vigneshwaren/mpi/include -pthread -L/home/vigneshwaren/mpi/lib -lmpi_cxx -lmpi -ldl -lm -Wl,--export-dynamic -lrt -lnsl -lutil -lm -ldl $ mpic++ -showme:libdirs /home/vigneshwaren/mpi/lib

Accessing private variable in Category results in linker error

喜夏-厌秋 提交于 2019-11-30 07:02:53
EDIT: I'm not going to do this, I now realize how dangerous this can be. But, the question stays for purely academic purposes. I'm trying to implement a category on NSCollectionView that will let me access the private variable _displayedItems. I need to be able to access it in my subclass. So, I've created the following category: @interface NSCollectionView (displayedItems) - (NSMutableArray *)displayedItems; @end @implementation NSCollectionView (displayedItems) - (NSMutableArray *)displayedItems { return _displayedItems; } @end ...which seems like it should work perfectly. However, when I

“File not found”, “linker command failed with exit code 1” in Xcode 4.5.1

六月ゝ 毕业季﹏ 提交于 2019-11-30 06:23:24
问题 Am developing an existing iOS application and I have to write unit test cases for this project. It is building and running in Simulator 6.0. Whenever I try to test the project, it is showing the error message below. Am not able to figure the exact error. id: file not found: /Users/Yuva/Library/Developer/Xcode/DerivedData/FlyApp-aexukpgtbathuadgxlnm/Build/Products/Debug-iphonesimulator/FlyApp.app/FlyApp clag: error: linker command failed with exit code 1 (use -v to see invocation) Could you

Compiling a MFC app from Visual Studio 2010 to 2012 RC results in LNK2038

蓝咒 提交于 2019-11-30 06:07:35
问题 My project is compiling and running OK in debug and release modes in VS 2010. Today I tried to compile it with VS 2012 and I got this error : 1> Generating Code... 1>pcrecppd.lib(pcrecpp.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in NamesEditorDlg.obj I searched for "_MSC_VER" in the code but I could not find any match. Neither could I find "1600" or "1700". So I am wondering how I can solve this problem. 回答1: Looks like you're using a .lib

Penalty of the MSVS compiler flag /bigobj

风格不统一 提交于 2019-11-30 06:04:05
The basic Google search bigobj issue shows that a lot of people are experiencing the Fatal Error C1128 : " number of sections exceeded object file format limit : compile with /bigobj ". The error has more chance to occur if one heavily uses a library of C++ templates, like Boost libraries or CGAL libraries . That error is strange, because it gives the solution to itself: set the compiler flag /bigobj ! So here is my question: why is not that flag set by default? There must be a penalty of using that flag, otherwise it would be set by default. That penalty is not documented in MSDN. Does

C++ Builder XE7 LME288 Error

假装没事ソ 提交于 2019-11-30 05:56:57
问题 Suddenly, out of the blue, I get the LME288 linker error. [ilink32 Warning] Warning: D:/Projects/TrainFever Game Manager/TFGM/Win32/Debug/TFGameManager.ilc: 0x00010000 / 0x08000000 [ilink32 Warning] Warning: D:/Projects/TrainFever Game Manager/TFGM/Win32/Debug/TFGameManager.ild: 0x00010000 / 0x08000000 [ilink32 Warning] Warning: D:/Projects/TrainFever Game Manager/TFGM/Win32/Debug/TFGameManager.ilf: 0x00010000 / 0x0a000000 [ilink32 Warning] Warning: D:/Projects/TrainFever Game Manager/TFGM

C++: pure virtual assignment operator

走远了吗. 提交于 2019-11-30 05:11:27
问题 why if we have pure virtual assignment operator in a base class, then we implement that operator on the derived class, it give linker error on the base class? currently I only have the following explanation on http://support.microsoft.com/kb/130486 , it said that the behavior is by design since normal inheritance rules does not apply . it is not clear for me, why is it generate linker error by design? can someone give me more clear explanation about this? edit: added my simplified code of

Linking googleTest in VS2010 results in LNK2005 because of other dependent libraries

点点圈 提交于 2019-11-30 04:51:26
问题 I have a large and complicated project that is finally getting unit tests. I've built googleTest 1.6.0 locally with Visual Studio 2010, the project files built with cmake as the README specifies. This project has many dependent libraries that are statically and dynamically linked. Many of them proprietary. All attempts to link generate 220 such errors. Here is a sampling: msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __cdecl std::_Container_base12::_Orphan_all(void)" (?_Orphan