Compile with GCC
I need to compile a c program on sun fire 480 with gcc, Does anyone knows wich parametres we have to used??
|
All you would really need to compile a c program would be:
/usr/bin/gcc <program name> What errors are you seeing? -twantrd |
the parametres I use was gcc -c -fpic -03 -wall filename.c
|
gcc -c -fPIC -03 -Wall mensajero.c
gcc: unrecognized option `-03' mensajero.c: In function `EnviarRegistro': mensajero.c:76: warning: implicit declaration of function `bzero' mensajero.c:30: warning: unused variable `localport' mensajero.c:34: warning: unused variable `local' |
-O3 (letter O), not -03 (zero)
|
Do you know wich include i have to put for the funtion bzero??
root@OCCIA # gcc -c -fPIC -O3 -Wall mensajero.c mensajero.c: In function `EnviarRegistro': mensajero.c:76: warning: implicit declaration of function `bzero' mensajero.c:30: warning: unused variable `localport' mensajero.c:34: warning: unused variable `local' |
man bzero will tell you !
|
All times are GMT -5. The time now is 12:54 AM. |