LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-05-2006, 09:37 AM   #1
poz
LQ Newbie
 
Registered: Sep 2006
Posts: 4

Rep: Reputation: 0
Solaris 10 gcc


All,
I have dowloaded gcc from sunfreware but the gcc is unable to include the header file. However, it looks very strange that the stdio header is not available. I had installed from sunfreeware
(Solaris 10) gcc-3.3.2-sol10-sparc-local.gz , libiconv and I did the recommended steps to remake header files, but I still get
stdio.h: No such file or directory and the source is very simple:
What should I do next to make it working?

#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("text");
return 0;
}

Thank you in advance
Poz.
 
Old 09-05-2006, 09:58 AM   #2
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
Quote:
Originally Posted by poz
All,
I have dowloaded gcc from sunfreware but the gcc is unable to include the header file. However, it looks very strange that the stdio header is not available. I had installed from sunfreeware
(Solaris 10) gcc-3.3.2-sol10-sparc-local.gz , libiconv and I did the recommended steps to remake header files, but I still get
stdio.h: No such file or directory and the source is very simple:
What should I do next to make it working?

#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("text");
return 0;
}
Why did you install gcc from sunfreeware while it is already part of Solaris 10 ?

What kind of Solaris installation did you choose ?

I suspect you didn't choose the developer cluster or higher, so effectively, the header files (from the package SUNWhea) are missing.
 
  


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
copimle gcc on solaris ines Solaris / OpenSolaris 2 07-31-2005 07:08 PM
compile gcc on solaris ines Solaris / OpenSolaris 7 05-02-2005 09:58 AM
Compiling a program with gcc on Solaris (I think) phekno Programming 2 09-15-2004 01:39 PM
gcc on Solaris g_goblin Solaris / OpenSolaris 7 10-30-2003 12:09 PM
How to I configure gcc on Solaris ehsan Solaris / OpenSolaris 5 01-08-2003 12:18 PM

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

All times are GMT -5. The time now is 07:31 PM.

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