[C] No such file or directory

posi90

Erfahrenes Mitglied
Hallo,

Mir ist der Fehler bekannt, doch verstehe ich nicht, warum er auftritt, da die benötigte Datei sehrwohl vorhanden ist (siehe Bild).

no_such_file.png

Kompiliert wurde das Programm (Boost - Days Alive - Beispiel) mit gcc siehe folgende Befehlszeile:

Code:
 gcc -o hello hello.cpp -lboost_system -lboost_date_time

Das Programm läuft auf einem Raspberry Pi (ARM).

Die Bibliotheken habe ich von hier.

Muss hier beim Kompilieren noch ein Pfad oder ähnliches angegeben werden?

Grüße Poseidon
 

Habe nun Codeblocks installiert und das Boost Asio Beispiel zu Kompilieren probiert.

Hier erhielt ich eine detailiertere Fehlermeldung:

Code:
g++ -Wall  -g     -c /home/pi/workspace/test/main.cpp -o obj/Debug/main.o
/tmp/cc5LcOea.s: Assembler messages:
/tmp/cc5LcOea.s:5313: Warning: swp{b} use is deprecated for this architecture
g++  -o bin/Debug/test obj/Debug/main.o   -static  -lpthread -lboost_system -lboost_thread -lboost_regex -lboost_date_time -lboost_serialization 
/usr/bin/ld: error: bin/Debug/test uses VFP register arguments, /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../libboost_system.a(error_code.o) does not
/usr/bin/ld: failed to merge target specific data of file /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../libboost_system.a(error_code.o)
collect2: ld returned 1 exit status
Process terminated with status 1 (1 minutes, 7 seconds)
0 errors, 1 warnings
 
Hi.
Habe nun Codeblocks installiert und das Boost Asio Beispiel zu Kompilieren probiert.

Hier erhielt ich eine detailiertere Fehlermeldung:

Code:
g++ -Wall  -g     -c /home/pi/workspace/test/main.cpp -o obj/Debug/main.o
/tmp/cc5LcOea.s: Assembler messages:
/tmp/cc5LcOea.s:5313: Warning: swp{b} use is deprecated for this architecture
Siehe https://svn.boost.org/trac/boost/ticket/7140
Code:
g++  -o bin/Debug/test obj/Debug/main.o   -static  -lpthread -lboost_system -lboost_thread -lboost_regex -lboost_date_time -lboost_serialization 
/usr/bin/ld: error: bin/Debug/test uses VFP register arguments, /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../libboost_system.a(error_code.o) does not
Siehe http://stackoverflow.com/questions/...registered-used-by-executable-not-object-file
 

Neue Beiträge

Zurück