linker-errors

Apple Mach-O Linker Error armv7s & libGoogleAdMobAds.a

大憨熊 提交于 2019-12-20 18:14:14
问题 I've just upgraded my app to run on the new iPhone5 simulator, however when I try to build it for my iPhone 4S device, I get this Apple Mach-O Liner error. ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/Darren/Documents/Dev stuff/My App/GoogleAdMobAdsSDKiOS-5.0.5/libGoogleAdMobAds.a for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation) Can someone shed some light on what this error it and how to fix it? I am

Linker errors in Android NDK (undefined reference to `__cxa_end_cleanup')

混江龙づ霸主 提交于 2019-12-20 17:30:50
问题 I'm getting this output after adding in a set of code from a colleague: ./obj/local/armeabi/objs/jniWrapper/native.o: In function `_Vector_base': D:/opt/android-ndk/sources/cxx-stl/stlport/stlport/stl/_vector.h:73: undefined reference to `__cxa_end_cleanup' ./obj/local/armeabi/objs/jniWrapper/native.o:(.ARM.extab.text._ZNSt6vectorIhSaIhEEC1ERKS1_[std::vector<unsigned char, std::allocator<unsigned char> >::vector(std::vector<unsigned char, std::allocator<unsigned char> > const&)]+0x0):

Xcode : warning: directory not found for option [duplicate]

六眼飞鱼酱① 提交于 2019-12-20 08:56:20
问题 This question already has answers here : ‘ld: warning: directory not found for option’ (26 answers) Closed 6 years ago . Ld /Users/pwang/Library/Developer/Xcode/DerivedData/socketiohldwxnslzhlnjtgihgewdwavpjpb/Build/Products/Debug-iphoneos/socketio.app/socketio normal armv7 cd /Users/pwang/Desktop/saturngod-Socket.io-with-iOS-be51414 setenv IPHONEOS_DEPLOYMENT_TARGET 4.3 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode

GDB “cannot open shared object file” Issue

≯℡__Kan透↙ 提交于 2019-12-20 07:21:54
问题 I've already read gdb says "cannot open shared object file" and gdb can not open shared object file and followed the instructions. I have a binary which is linked to a shared library file ( /zzz/yyy/xxx.so ). After I set LD_LIBRARY_PATH to /zzz/yyy/ and run the binary without GDB, it executes very well. However, when I was trying to use GDB to debug this binary, GDB says: error while loading shared libraries: xxx.so: cannot open shared object file: No such file or directory I already have

“array bound is not an integer constant before ']' token” when using multiple files [duplicate]

这一生的挚爱 提交于 2019-12-20 07:19:11
问题 This question already has answers here : initialize array with constant number does not work (2 answers) Closed 5 years ago . I'm having an issue with my neural net. I'm storing the nodes that make up the network in an array, whose dimensions are set via-tweaks at compile time (the tweaks are all const). The code worked fine until I decided to split it up into multiple files, but even with a extern declaration, it still says that "array bound is not an integer constant before ']' token".

Linker Errors from SDL2 in my project

不打扰是莪最后的温柔 提交于 2019-12-20 06:39:12
问题 I used CMake and Code::Blocks to build SDL2 from source, and attempted to link my own project source to the following static libraries: libSDL2.a libSDL2main.a OpenGL32.lib These three libraries are contained within the directory known as %libdir% (I'm using Batch for the command). I obtained libSDL2 and libSDL2main from the Code::Blocks build. I obtained OpenGL32 from my Windows directory, although I found it long ago so I am unable to recall the exact location. I used the following command:

undefined reference to 'vtable for classname' [duplicate]

帅比萌擦擦* 提交于 2019-12-20 06:34:48
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Undefined reference to vtable I have a class Student on the file - student.h and this is its constructor: class Student { protected: double _id; double _salary; double _grade_average; public: Student(double id, double salary,double average): _id(id),_salary(salary),_grade_average(average) {} }; And then I get the error: undefined reference to 'vtable for Student' What is the problem? this is a University.h file:

Qt linker error when adding class to basic Qt GUI application

倖福魔咒の 提交于 2019-12-20 03:55:32
问题 I have been struggling for some time now and can't figure this out. I added a class to my basic Qt GUI application and i got linker errors. I don't see what can cause this and are hoping for feedback. Linker errors: main.obj:-1: error: LNK2019: unresolved external symbol "public: void __thiscall Serial::start(enum QSerialPort::BaudRate)" (?start@Serial@@QAEXW4BaudRate@QSerialPort@@@Z) referenced in function _main main.obj:-1: error: LNK2019: unresolved external symbol "public: __thiscall

Strange C++ Builder Linker error DATA.BIND.OBJECTSCOPE.OBJ

☆樱花仙子☆ 提交于 2019-12-20 03:22:10
问题 So I recompiled a perfectly fine and working project and suddenly all I get is this linker error: [ilink32 Error] Fatal: Unable to open file 'DATA.BIND.OBJECTSCOPE.OBJ' The project is a C++ console application with VCL enabled and I have no idea where the DATA.BIND.OBJECTSCOPE.OBJ comes from. These are the headers I'm using. #include <windows.h> #include <tchar.h> #include <stdio.h> #include <vector> #include <vcl.h> #include <System.hpp> #include <System.IOUtils.hpp> #include <System.Zip.hpp

Serialization example of boost/archive/binary_woarchive.hpp and/or boost/archive/binary_wiarchive.hpp?

半世苍凉 提交于 2019-12-20 01:46:18
问题 I'm trying to find a good example of how to use these binary wide character versions of boost's serialization stuff. I pieced together some code to try and get it working, but unfortunately I get bombarded with linker errors when trying to compile it. Here's my code, in case I'm doing anything obviously wrong: #include <cstdlib> #include <iostream> #include <fstream> #include <string> #include <vector> #include <boost/archive/binary_woarchive.hpp> #include <boost/archive/binary_wiarchive.hpp>