Try to compile C program [message #1810847] |
Tue, 20 August 2019 10:34  |
Eclipse User |
|
|
|
Hello
New in C compilation with Eclipse, I try to compile a C souce C named dcraw. I get an error.
collect2: error: ld returned 1 exit status
make: *** [makefile:32: DcRaw] Error 1
higher ld report begin with:
Invoking: Cross GCC Linker
gcc -o "DcRaw" ./src/dcraw.o
/bin/ld : ./src/dcraw.o : dans la fonction « ljpeg_idct » :
/home/michel/eclipse-workspace/DcRaw/Debug/../src/dcraw.c:1066 : référence indéfinie vers « cos »
but in the source I have::
#include <math.h>
It seems there is a problem in the link part.
Thanks for your help
Michel
|
|
|
|
|
Re: Try to compile C program [message #1814341 is a reply to message #1814340] |
Mon, 09 September 2019 16:44  |
Eclipse User |
|
|
|
it's working now, I am a new user of Eclipse. When I programm, I use Rad Studio from Embarcadero in C++ and Pascal, I have nothing to adjust for the link.
For Python, NO, I don't find it a clean language, and also I want compiled languages.
Nevertheless, thanks for the help, now it's working.
Michel
|
|
|
Powered by
FUDForum. Page generated in 0.13197 seconds