LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Compile with GCC (https://www.linuxquestions.org/questions/solaris-opensolaris-20/compile-with-gcc-248564/)

occ 10-28-2004 07:55 PM

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??

twantrd 10-28-2004 07:57 PM

All you would really need to compile a c program would be:

/usr/bin/gcc <program name>

What errors are you seeing?

-twantrd

occ 10-28-2004 08:02 PM

the parametres I use was gcc -c -fpic -03 -wall filename.c

occ 10-28-2004 08:02 PM

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'

jlliagre 10-29-2004 01:17 AM

-O3 (letter O), not -03 (zero)

occ 10-29-2004 10:14 AM

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'

jlliagre 10-29-2004 10:19 AM

man bzero will tell you !


All times are GMT -5. The time now is 12:54 AM.