LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-28-2004, 07:55 PM   #1
occ
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
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??
 
Old 10-28-2004, 07:57 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

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

/usr/bin/gcc <program name>

What errors are you seeing?

-twantrd
 
Old 10-28-2004, 08:02 PM   #3
occ
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
the parametres I use was gcc -c -fpic -03 -wall filename.c
 
Old 10-28-2004, 08:02 PM   #4
occ
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
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'
 
Old 10-29-2004, 01:17 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
-O3 (letter O), not -03 (zero)
 
Old 10-29-2004, 10:14 AM   #6
occ
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
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'
 
Old 10-29-2004, 10:19 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
man bzero will tell you !
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile C++ with GCC phongnh0211k Linux - Software 3 01-13-2005 01:40 AM
gcc can't compile zionz Linux - Newbie 2 09-02-2004 11:34 PM
gcc 3.4.1 want not to compile, but 3.2.2 does BorisB Linux - Software 3 07-27-2004 06:53 PM
How to compile GCC if you don't have GCC? khermans Linux - Software 13 05-12-2004 06:42 PM
Can't compile GCC Mikessu Linux - Software 2 05-05-2004 03:59 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration