nanf not defined in fimg-math.c #2

Closed
opened 1 year ago by Mutah · 2 comments
Mutah commented 1 year ago

A build error happens while building fimg2pnm :

gcc -Wall -fpic -g -DDEBUG_LEVEL=0 -lm fimg2pnm.c ../libfloatimg.a -o fimg2pnm 
/usr/bin/ld : ../libfloatimg.a(fimg-math.o) : dans la fonction « fimg_get_maxvalue » :
/home/fgirault/Temp/floatimg/lib/fimg-math.c:27 : référence indéfinie vers « nanf »
collect2: error: ld returned 1 exit status
make: *** [Makefile:37 : fimg2pnm] Erreur 1
=== error on tools = 2
A build error happens while building fimg2pnm : ``` gcc -Wall -fpic -g -DDEBUG_LEVEL=0 -lm fimg2pnm.c ../libfloatimg.a -o fimg2pnm /usr/bin/ld : ../libfloatimg.a(fimg-math.o) : dans la fonction « fimg_get_maxvalue » : /home/fgirault/Temp/floatimg/lib/fimg-math.c:27 : référence indéfinie vers « nanf » collect2: error: ld returned 1 exit status make: *** [Makefile:37 : fimg2pnm] Erreur 1 === error on tools = 2 ```
Poster

Got it: "-lm" shall appears the end like this:

gcc -Wall -fpic -g -DDEBUG_LEVEL=0  fimg2png.c ../libfloatimg.a -lpnglite -lz -lm -o fimg2png

And all works fine ...

Got it: "-lm" shall appears the end like this: ``` gcc -Wall -fpic -g -DDEBUG_LEVEL=0 fimg2png.c ../libfloatimg.a -lpnglite -lz -lm -o fimg2png ``` And all works fine ...
tTh commented 1 year ago
Owner

well spotted

20e2f1e..77e967c master -> master

well spotted 20e2f1e..77e967c master -> master
tTh closed this issue 1 year ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.