Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » ARM Cross compiler error(missing argument)
ARM Cross compiler error [message #1719879] Tue, 12 January 2016 20:08 Go to next message
Dan Berry is currently offline Dan BerryFriend
Messages: 6
Registered: January 2016
Junior Member
I am getting this error and I have not found how to correct it. Any ideas?

12:35:08 **** Incremental Build of configuration Debug for project Fury ****
make all
Building target: Fury
Invoking: Cross G++ Linker
arm-linux-gnueabihf-g++ -o "Fury" ./scr/Fury.o ./scr/Ultrasonic.o -l""
arm-linux-gnueabihf-g++: error: missing argument to '-l'
make: *** [Fury] Error 1

12:35:08 Build Finished (took 143ms)

Oh the issues of a newbi. Cool
Re: ARM Cross compiler error [message #1719973 is a reply to message #1719879] Wed, 13 January 2016 14:12 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
My guess is you have something in the compiler tool settings that is a space.
Or perhaps the compile command or one of the variables it uses contains "-I"


Usual command template: ${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}

temporarily change the command to something like:
(C=${COMMAND}) (F=${FLAGS}) (OF=${OUTPUT_FLAG}) (OP=${OUTPUT_PREFIX})(O=${OUTPUT}) (IN=${INPUTS})
and see what you get.
Re: ARM Cross compiler error [message #1720149 is a reply to message #1719973] Thu, 14 January 2016 18:24 Go to previous messageGo to next message
Dan Berry is currently offline Dan BerryFriend
Messages: 6
Registered: January 2016
Junior Member
I should say I'm using Eclipse Mars.1 Release (4.5.1) on an Ubuntu 14.04 LTS machine. I'm cross compiling for a RaspberryPi.

I found and fixed the error I was getting, now I am getting a new one;

1:17:49 **** Incremental Build of configuration Debug for project Fury ****
make all
Building target: Fury
Invoking: Cross G++ Linker
arm-linux-gnueabihf-g++ -L/home/dan/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin -o "Fury" ./scr/Fury.o ./scr/Ultrasonic.o -lwiringPi
/home/dan/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lwiringPi
collect2: error: ld returned 1 exit status
make: *** [Fury] Error 1

11:17:50 Build Finished (took 58ms)


in the program I have this include statement;

#include "/home/dan/wiringPi-78b5c32/wiringPi/wiringPi.h" // for GPIO of Raspberry Pi

I would think that it wouldn't have a problem with that in the program.

[Updated on: Thu, 14 January 2016 18:24]

Report message to a moderator

Re: ARM Cross compiler error [message #1721845 is a reply to message #1720149] Mon, 01 February 2016 02:19 Go to previous message
Dale Walsh is currently offline Dale WalshFriend
Messages: 34
Registered: January 2016
Member
Dan Berry wrote on Thu, 14 January 2016 18:24
I should say I'm using Eclipse Mars.1 Release (4.5.1) on an Ubuntu 14.04 LTS machine. I'm cross compiling for a RaspberryPi.

I found and fixed the error I was getting, now I am getting a new one;

1:17:49 **** Incremental Build of configuration Debug for project Fury ****
make all
Building target: Fury
Invoking: Cross G++ Linker
arm-linux-gnueabihf-g++ -L/home/dan/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin -o "Fury" ./scr/Fury.o ./scr/Ultrasonic.o -lwiringPi
/home/dan/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lwiringPi
collect2: error: ld returned 1 exit status
make: *** [Fury] Error 1

11:17:50 Build Finished (took 58ms)


in the program I have this include statement;

#include "/home/dan/wiringPi-78b5c32/wiringPi/wiringPi.h" // for GPIO of Raspberry Pi

I would think that it wouldn't have a problem with that in the program.

Are you sure libwiringPi is locate in:
-L/home/dan/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin


Perhaps it should be:
-L/home/dan/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/lib

Previous Topic:eclipse Live Kernel dbg
Next Topic:OpenCV Errors
Goto Forum:
  


Current Time: Fri Apr 26 23:42:50 GMT 2024

Powered by FUDForum. Page generated in 0.04101 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top