ich habe mir vor kurzem den EMX-GCC neu installiert (müßte jetzt 0.9b, Fix
3 sein) und bekomme seitdem leider nichts mehr damit compiliert. Die
Environmentvariablen sind (inclusive forward-slashes) wie in install.doc
beschrieben gesetzt. Any ideas?
------------------------------------
[D:\devtools\emx\samples]make
gcc -g -Wall calc.c
d:\tcpip\tmp\ccc00260: Undefined symbol _hypot referenced from data
segment
d:\tcpip\tmp\ccc00260: Undefined symbol _cbrt referenced from data segment
d:\tcpip\tmp\ccc00260: Undefined symbol _rint referenced from data segment
d:\tcpip\tmp\ccc00260: Undefined symbol _trunc referenced from data
segment
make: *** [calc.exe] Error 1
------------------------------------
Wenn ich den Compiler direkt aufrufe, ist das Resultat das gleiche.
Ciao, Matthias
MH>gcc -g -Wall calc.c
Versuch's mal so:
gcc -g -Wall calc.c -lmath
MbG, Ekkehard
> ich habe mir vor kurzem den EMX-GCC neu installiert (müßte jetzt 0.9b, Fix
> 3 sein) und bekomme seitdem leider nichts mehr damit compiliert. Die
> Environmentvariablen sind (inclusive forward-slashes) wie in install.doc
> beschrieben gesetzt. Any ideas?
>
> ------------------------------------
> [D:\devtools\emx\samples]make
> gcc -g -Wall calc.c
> d:\tcpip\tmp\ccc00260: Undefined symbol _hypot referenced from data
> segment
> d:\tcpip\tmp\ccc00260: Undefined symbol _cbrt referenced from data segment
> d:\tcpip\tmp\ccc00260: Undefined symbol _rint referenced from data segment
> d:\tcpip\tmp\ccc00260: Undefined symbol _trunc referenced from data
> segment
Da liegt wohl eine Mischung von emx 0.9a und 0.9b vor.
--
Eberhard Mattes <mat...@azu.informatik.uni-stuttgart.de>
EK>-lmath
ist die Bibliothek umbenannt worden? Bei mir heißt die Bibliothek einfach
nur 'm' und dementsprechend die Kommandozeilenoption auch nur '-lm'.
Ullrich.
UP>EK>-lmath
UP>
UP>ist die Bibliothek umbenannt worden? Bei mir heißt die Bibliothek
einfach nu
UP>'m' und dementsprechend die Kommandozeilenoption auch nur '-lm'.
Kompromiß wegen der 8+3-Zeichen-Beschränkung unter DOS, eigentlich
müßte sie libm.a heißen (die Kommandozeilenoption lautet trotzdem -lm).
MfG Peter