Hacking  
  Listopad 13 2018 02:03:36  
 
Nawigacja
folder Portal
. Artykuły
. Download
. Forum
. Szukaj
. FAQ
. Regulamin
folder Hacking
. Gry Hakerskie
. Filmy
folder Delphi
. Kursy
. Faq
. Źródła
. Komponenty
. Artykuły
folderWebmaster
. JavaScripts
. Skrypty PHP
folderRóżne
. Kontakt
. Zlokalizuj ip
Aktualnie online
. Gości online: 5

. Użytkowników online: 0

. Łącznie użytkowników: 154,513
. Najnowszy użytkownik: Balcon
Ostatnie artykuły
. Metoda ataku symlin...
. Asembler x86 w pigułce
. Binder plików z komp...
. [Asembler/MASM] Pobi...
. Braifuck 4 fun
Zobacz temat
Hacking » Programowanie » C++
 Drukuj temat
C/C++ std lib problem
kevinmanuel
HI,

I am trying to get the raspberry pi tool chain up and running with a simple hello world program but I have hit a problem. I have downloaded /github.com/raspberrypi/tools and plan on using a the compiler /tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin as I am cross compiling on a 64 bit unbuntu 16.04 LTS.
I am using a bash script to set up PATH to point to the compiler and invoke a MakeFile. This is working but when I include std out object from iostream I get the following errors:
arm-linux-gnueabihf-gcc -o hw helloworld.o
helloworld In function `main':
helloworld.cpp.text+0x1c): undefined reference to `std::basic_ostream<char, std::char_traits<char> >&operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
I assume this is because standard c library is separate from gcc. My question is where do I get this lib from? Is part of the tools directory structure ?


Please help.

I didn't find the right solution from the Internet.

References:
https://www.raspberrypi.org/forums/viewtopic.php?t=184443
Creative infographic design agency

Thanks!
 
Przejdź do forum: