undefined-symbol

CentOS: Using GCC 4.7 from devtoolset results in linking libstdc++ incorrectly (undefined symbols)

不想你离开。 提交于 2020-05-25 07:26:26
问题 I am using the devtoolset-1.0 for CentOS 6.3 in order to upgrade temporarily the GCC version. Although I am now able to compile my C++ application, the final binary is missing some symbols: $ ldd -d -r myapp $ [..] $ libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003216e00000) $ [..] $ undefined symbol: _ZNSt8__detail15_List_node_base11_M_transferEPS0_S1_ (./myapp) $ undefined symbol: _ZNSt8__detail15_List_node_base7_M_hookEPS0_ (./myapp) $ undefined symbol: _ZNSt8__detail15_List_node

C++ linker error in Apache Thrift tutorial - undefined symbols

▼魔方 西西 提交于 2020-02-15 18:02:04
问题 I am running through Apache's Thrift tutorial: http://wiki.apache.org/thrift/ThriftUsageC%2B%2B My Thrift is version 0.9.1, and I'm on OS X. I've performed a search for similar problems with this tutorial, and while other people have also had issues they don't appear to be similar to the one I'm having. The server both compiles and links properly, and the client compiles correctly as well. The problem is linking the client at the very last step of the tutorial, where I get this: Undefined

Undefined symbol errors when linking of C++ project using Eclipse

烈酒焚心 提交于 2020-02-02 15:04:20
问题 I compiled one C++ project which transplanted from another project, and there are some undefined symbol warnings while linking after compiled. The point is that these warnings are so strange. They are divided into 2 types: Type 1: dld: warning: Undefined symbol **'__record_needed_destruction'** in file './xxx/xx.o' dld: warning: Undefined symbol **'__memzero'** in file './xxx/xyy.o' dld: warning: Undefined symbol **'__vec_delete'** in file './xxx/xyz.o' dld: warning: Undefined symbol **'__vec

iPhone libxml2 undefined symbols (with gdata, kissxml, touchxml, etc.)

 ̄綄美尐妖づ 提交于 2020-01-10 03:33:05
问题 I'm trying to use any one of the libxml based 3rd party XML parsers, but I can't because I think I have a libxml2 problem of some sort I set my other linker flags to -lxml2 and header search paths to /usr/include/libxml2 but I still get a ton of undefined symbols when I try to compile. The errors below are the result of trying to compile TouchXML. Undefined symbols: "_xmlDocDumpFormatMemory", referenced from: -[CXMLDocument description] in CXMLDocument.o "_xmlXPathNewContext", referenced from

ppoll on solaris

℡╲_俬逩灬. 提交于 2020-01-06 14:04:34
问题 this code compiles in Linux but not Solaris, because apparently ppoll() is Linux specific (I get an undefined symbol error in Solaris with GCC). Any help converting it? I don't think just using poll() is a good idea, but then again, I didn't write this code. (I got it from Writing a command line shell with C; trying to use ncurses/C for the first time) #include <poll.h> #include <signal.h> #include <stdio.h> #include <termios.h> #include <unistd.h> #include <stdlib.h> #include <string.h>

ppoll on solaris

百般思念 提交于 2020-01-06 13:57:16
问题 this code compiles in Linux but not Solaris, because apparently ppoll() is Linux specific (I get an undefined symbol error in Solaris with GCC). Any help converting it? I don't think just using poll() is a good idea, but then again, I didn't write this code. (I got it from Writing a command line shell with C; trying to use ncurses/C for the first time) #include <poll.h> #include <signal.h> #include <stdio.h> #include <termios.h> #include <unistd.h> #include <stdlib.h> #include <string.h>

CLion: undefined “_get_driver_instance”

拟墨画扇 提交于 2020-01-06 02:24:09
问题 The IDE : CLion System: OS X Error message: Scanning dependencies of target librarySystem [ 66%] Building CXX object CMakeFiles/librarySystem.dir/sqlConnection.cpp.o [ 66%] Building CXX object CMakeFiles/librarySystem.dir/main.cpp.o [100%] Linking CXX executable librarySystem Undefined symbols for architecture x86_64: "_get_driver_instance", referenced from: sqlConnection::sqlConnection() in sqlConnection.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command

fiware-orion — Install Orion Context Broker 4.3.2 (ReleaseName) / 0.22.0 (Version) on Ubuntu 15.04

戏子无情 提交于 2020-01-05 23:44:27
问题 I am willing to install the latest release of Orion Context Broker (ReleaseName: 4.3.2 / Version: 0.22.0) from https://forge.fiware.org/frs/?group_id=7#title_data-orioncontextbroker on Ubuntu 15.04.. I did some research on this issue already. To be precise it became a longer description. If that's to much text just reading the bold parts will probably do . I managed the absence of a native .deb-package (see this) by using converting (alien --scripts contextBroker-0.22.0-1.x86_64.rpm ) the

C++: linked library disappears and gives segfault during execution

丶灬走出姿态 提交于 2020-01-03 03:25:52
问题 I'm having a problem building a library. In the Makefile I tell g++ that I need tclstub8.6 by putting -ltclstub8.6 , and g++ takes it into account (sorry for these messages in French): make: AVERTISSEMENT : le fichier « ../Linux-PORT/i586-GCC4/Makefile » a une date de modification 609 s dans le futur *** Compile c [gcc] libtestGuiMnt_info.Linux-PORT.i586-GCC4.c *** Compile C++ [g++] mntdisplay.cc *** Compile C++ [g++] mntogl.cc mntogl.cc: In member function 'virtual int MNTOgl::Display()

Google Conversion Tracking for iOS linker error for architecture armv7

你。 提交于 2020-01-01 08:53:55
问题 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