c++ - Linking error: Undefined Symbols, lots of them (cpp cross compiling) -


i last linking command (the actual executable being linked) bunch of undefined symbols (and they're in cpp , scary me, simple c programmer)

--its simple cant im supposed put linker (its using gcc here...? appropriate? g++ told me many input files lol) (ld returns of same)

anyway ridiculous, stuck

thankyou help!

make making in docs making in en make[2]: nothing done `all'. make[2]: nothing done `all-am'. /developer/platforms/iphoneos.platform/developer/usr/bin/gcc-4.0  -arch armv6 -pipe -std=c99 -wno-trigraphs -fpascal-strings -fasm-blocks  -wreturn-type -wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=2.0 -gdwarf-2 -mthumb -miphoneos-version-min=2.0 -i../include -isysroot /developer/platforms/iphoneos.platform/developer/sdks/iphoneos2.2.sdk -o0  -arch armv6 -pipe -std=c99 -gdwarf-2 -mthumb -i../include -l../libs -l../../libs -isysroot /developer/platforms/iphoneos.platform/developer/sdks/iphoneos2.0.sdk -l/developer/platforms/iphoneos.platform/developer/sdks/iphoneos3.0.sdk/usr/lib  -o mutella  -l/usr/local/lib uilocalsocket.o gnumarkedfiles.o uitextmode.o sha1.o sha1thread.o gnuwordhash.o gnulogcentre.o asyncdns.o gnuwebcache.o uiterminal.o uiremote.o asyncproxysocket.o messages.o lineinput.o rcobject.o event.o term_help.o mprintf.o readline4fix.o asyncfile.o tstring.o dir.o inifile.o property.o byteorder.o mui.o gnusearch.o mthread_unix.o asyncsocket.o controller.o preferences.o packet.o gnuupload.o gnusock.o gnushare.o gnunode.o gnuhash.o gnudownload.o gnudirector.o gnucache.o conversions.o common.o main.o  -lpthread -lreadline -lcurses  -lpoll -lz undefined symbols:   "std::__throw_bad_alloc()", referenced from:       __gnu_cxx::new_allocator<std::_list_node<muilsocketcommunicate*> >::allocate(unsigned long, void const*)in uilocalsocket.o       __gnu_cxx::new_allocator<smarkedfile>::allocate(unsigned long, void const*)in gnumarkedfiles.o       __gnu_cxx::new_allocator<std::_list_node<long> >::allocate(unsigned long, void const*)in gnumarkedfiles.o       __gnu_cxx::new_allocator<std::_rb_tree_node<tstring<char> > >::allocate(unsigned long, void const*)in gnumarkedfiles.o       __gnu_cxx::new_allocator<std::_rb_tree_node<long> >::allocate(unsigned long, void const*)in gnumarkedfiles.o       __gnu_cxx::new_allocator<std::_rb_tree_node<std::pair<long const, mfilesizeclass> > >::allocate(unsigned long, void const*)in gnumarkedfiles.o 

seems trying link c++ code c (gcc) linker call. that'll not include appropriate libraries seeing. try g++ instead of gcc (or throw out c++ code/libraries).


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -