linker-errors

SDL 2.0: linking error

无人久伴 提交于 2019-11-29 14:36:58
I know that similar questions had been asked but none of the answers helped me... I wrote a simple SDL program: #include "SDL.h" int main( int argc, char* args[] ) { //Start SDL SDL_Init( SDL_INIT_EVERYTHING ); //Quit SDL SDL_Quit(); return 0; } using Code:Blocks. I followed this tutorial http://lazyfoo.net/SDL_tutorials/lesson01/windows/codeblocks/index.php but I still cannot compile. Here is the build log: mingw32-g++.exe -LC:\SDL\SDL2\lib\x86 -o bin\Debug\test.exe obj\Debug\test.o -lmingw32 -lSDL2main -lSDL2 -mwindows C:\SDL\SDL2\lib\x86/SDL2main.lib(./Release/SDL_windows_main.obj):(.text[

warning: cannot find entry symbol nable-stdcall-fixup; defaulting

岁酱吖の 提交于 2019-11-29 14:34:05
This mingw contains gcc 4.6.3 , with name - i686-w64-mingw32. On Windows, a Qt's .pro file w.r.t a hello world program: QT += core gui TEMPLATE = app TARGET = ef SOURCES = ef.cpp DEPENDPATH += . INCLUDEPATH += . INCLUDEPATH += c:/R-2.15.1/include INCLUDEPATH += c:/R-2.15.1/library/Rcpp/include INCLUDEPATH += c:/R-2.15.1/library/RInside/include LIBS += -L c:/R-2.15.1/bin/i386 -lR LIBS += -L c:/R-2.15.1/library/Rcpp/libs/i386 -lRcpp LIBS += -L c:/R-2.15.1/library/RInside/libs/i386 -lRInside The program compiles as follows: Notice there is a warning at the end. System PATH is as follows: Qt's

ld: unrecognized option '--push-state--no-as-needed'

寵の児 提交于 2019-11-29 14:02:57
问题 My build fails with the following linker error message: FAILED: : && /usr/bin/g++ -Wall -Wextra -Werror -g -fsanitize=undefined,address -Wno-unused-parameter -fsanitize=undefined,address -rdynamic *.o -o SCE -Wl,-rpath,/opt/qt59/lib /opt/qt59/lib/libQt5Widgets.so.5.9.1 /usr/local/lib/libprotobuf.a -lpthread -lutil -lgrpc++ /opt/qt59/lib/libQt5Gui.so.5.9.1 /opt/qt59/lib/libQt5Core.so.5.9.1 && : /usr/bin/x86_64-linux-gnu-ld: unrecognized option '--push-state--no-as-needed' You can see the full

“Nonrepresentable section on output” error during linking on linux

假装没事ソ 提交于 2019-11-29 12:51:12
问题 I get this error at the linker stage when compiling the webkit-1.1.5 package on my Ubuntu 9.04 box: libtool: link: gcc -ansi -fno-strict-aliasing -O2 -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -fvisibility=hidden -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo

How to Link a third Party Library (LibUSB) in CMake

扶醉桌前 提交于 2019-11-29 12:14:19
I am attempting to use LibUSB in a project. However whenever I attempt to use basic libUSB functions I get the following error: ...src/main/main.cpp.o: In function `main': ...src/main/main.cpp:10: undefined reference to `libusb_init' ...src/main/main.cpp:11: undefined reference to `libusb_set_debug' collect2: error: ld returned 1 exit status The package LibUSB-devel is installed (I'm on fedora 22) and my IDE KDevelop finds and recognises the headers, to the point it offers LibUSB code completions once you have added the import statement. I don't have any custom include lines in either my IDE

no ocijdbc9 in java.library.path

♀尐吖头ヾ 提交于 2019-11-29 11:37:10
When I try to run Java application, I receive the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path I don't have a file ocijdbc9.* on my PC, but I have ocijdbc10.dll in %ORACLE_HOME%\bin . %ORACLE_HOME% is correctly specified, so I think the problem is that the application is searching for the wrong version (9 instead of 10). Both Oracle and Java Builder are freshly installed, so the problem may be in project preferences? Do you have any ideas on how to search for the place where the wrong version is specified? You're missing a file

GoogleMapsSDK : Undefined symbols for architecture x86_64

ぃ、小莉子 提交于 2019-11-29 11:10:12
问题 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) "

How can I avoid the LNK2005 linker error for variables defined in a header file?

无人久伴 提交于 2019-11-29 10:54:51
I have 3 cpp files that look like this #include "Variables.h" void AppMain() { //Stuff... } They all use the same variables inside them so they have the same headers but I get stuff like this 1>OnTimer.obj : error LNK2005: "int slider" (?slider@@3HA) already defined in AppMain.obj Why is that? Keep in mind that a #include is roughly like cutting and pasting the included file inside the source file that includes it (this is a rough analogy, but you get the point). That means if you have: int x; // or "slider" or whatever vars are conflicting in the header file and that header file is included

AVR linker error, “relocation truncated to fit”

我只是一个虾纸丫 提交于 2019-11-29 10:19:27
I'm trying to compile some code for an ATmega328 micro, and I want use the libraries and the core of Arduino. I'm using CMake . I have gotten to compile the core library and all objects of my code and the libraries of Arduino. But when it's linking, they show me the following error. ..."relocation truncated to fit: R_AVR_13_PCREL against symbol"..."avr5/libgcc.a"... I have found through Google that this is a common error, but no solution has worked for me. The only thing I can't do is put "-lm" and "-lc" flags at the end of the linker sentence, because I don't know how I can do it with CMake.

What are possible causes of “failed to map segment from shared object: operation not permitted”, and how to debug?

巧了我就是萌 提交于 2019-11-29 09:36:14
I have two executables, both cross compiled to run in Android. I have put both on the device in the same directory. I have put all the shared libraries that they are dependent on in the same directory, including ld-linux.so.3. I run the executables by using: ld-linux.so.3 --library-path /path/to/libraries executable_name both work on older versions of Android when running as any user. The both work on the latest version of Android if running as root. Only one works on the latest version of android when running as any user. Instead it gives: failed to map segment from shared object: executable