Hallo Forum,
seit über einen Tag suche ich verbissen nach einer Lösung, habe aber scheinbar ein Brett vorm Kopf.
Ich habe Eclipse für Cross compile mit einem RasberyPi für C++ eingerichtet. Ein "Hallo Welt" funktioniert auch ohne Probleme.
Wenn ich aber wiringPi nutzen möchte bekomme ich immer eine Fehlermeldung vom Linker:
Hat jemand einen Hinweis oder eine Frage (auch die können weiter helfen)?
Danke
Ron
seit über einen Tag suche ich verbissen nach einer Lösung, habe aber scheinbar ein Brett vorm Kopf.
Ich habe Eclipse für Cross compile mit einem RasberyPi für C++ eingerichtet. Ein "Hallo Welt" funktioniert auch ohne Probleme.
Wenn ich aber wiringPi nutzen möchte bekomme ich immer eine Fehlermeldung vom Linker:
Code:
13:00:58 **** Incremental Build of configuration Debug for project Blink **** make all 'Building file: ../src/Blink.cpp' 'Invoking: Cross G++ Compiler' arm-linux-gnueabihf-g++ -I"C:\SysGCC\Raspberry\include" -I"G:\Data\LSYAS\RaspberryPi\RaspLib" -O0 -g3 -Wall -c -fmessage-length=0 -lwiringPi -MMD -MP -MF"src/Blink.d" -MT"src/Blink.o" -o "src/Blink.o" "../src/Blink.cpp" 'Finished building: ../src/Blink.cpp' ' ' 'Building target: Blink' 'Invoking: Cross G++ Linker' arm-linux-gnueabihf-g++ -L"C:\SysGCC\Raspberry\lib" -L"C:\SysGCC\Raspberry\wiringPi" -L"G:\Data\LSYAS\RaspberryPi\RaspLib" -lwiringPi -o "Blink" ./src/Blink.o ./src/Blink.o: In function `main': G:\Data\LSYAS\RaspberryPi\Blink\Debug/../src/Blink.cpp:18: undefined reference to `wiringPiSetup' collect2: ld returned 1 exit status make: *** [Blink] Error 1
Danke
Ron
Comment