LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-08-2005, 04:50 PM   #1
b345713
LQ Newbie
 
Registered: Dec 2005
Posts: 19

Rep: Reputation: 0
suse 10 oss gcc 4.01 stdio.h troubles


Hello all!

I've been having some trouble using gcc 4.01 with an out of the box suse 10.0 oss full package install!

Whilst trying to compile a simple - Hello world program i got an error saying stdio.h coldn't be found!

From reading other posts I found out that gcc is configured to look for include files in /usr/lib and I problably need some version of libc but suse is supposed to come with this!

I Have tried gcc -v hello.c to find out where is it looking for .h files but i don't know which variable I should watch out for or even where to change the gcc as I don't know which is the configuration file!

Would I have to recompile gcc? Could I possibly just copy some library into the /usr/lib/ dir? This very same problem existed with suse 9.3! Is there a distro where I will not find this problem?
 
Old 12-08-2005, 07:48 PM   #2
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
You shouldn't have to do this with a right-out-of-the-box install, but have you tried "gcc -I/path/to/include/dir hello.c"? That explicitly adds whatever your include directory is (usually /usr/include; could also be /usr/local/include) to the search path in GCC's preprocessor. Like I said, it shouldn't be an issue, but this will help show if there's some larger problem at play here.
 
Old 12-09-2005, 07:39 AM   #3
b345713
LQ Newbie
 
Registered: Dec 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Tried gcc -l /usr/include and /usr/local/include with no results! gcc -v gives those dirs and an extra one as a search path list anyway! I suppose it must be something else, maybe the library itself! Think I should have mentionned the distro isn't out of the box but out of the magazine (LXF74)! Suppose that could be an issue! I decided to try Fedora and that worked just fine. Shame it is so damn ugly! Would you recommend gentoo, slackware or freebsd? Everyone says they are the best! Gentoo is prooving difficult and kde config on bsd6 didn't go smoothly either! Cheers anyway taylor!
 
Old 12-09-2005, 08:21 AM   #4
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
Distro Opinions

I've not tried Gentoo before, so I can't really say anything about it. But I would definitely recommend Slackware from what I understand of your needs.

By default, it comes with gcc 3.3.6, but I believe a 4.x package is supplied as an alternate. Or it shouldn't be any problem to simply compile the new version yourself; it worked for me, anyway. Furthermore, the default install supports almost all (if not all) of the gcc languages including Ada, Fortran, and Objective C. Slackware also features KDE for your desktop, and generally provides a simple, powerful, and stable environment, even by Linux's high standards.

FreeBSD is also a superb operating system (in fact, I like it even more than Linux; but it lacks good support for certain software). It comes by default with gcc 3.4.4, but you can certainly install other versions as well. The default, I believe, must be kept around for system upgrades because of compatibility. As far as KDE on FreeBSD goes, I don't know much about it (I'm a WindowMaker guy), except that it has it's own project page: http://freebsd.kde.org/

I'd give Slackware a shot, if you haven't done so yet. In any case, with enough searching you're sure to find a distro that perfectly suits your needs!
 
Old 12-09-2005, 12:24 PM   #5
b345713
LQ Newbie
 
Registered: Dec 2005
Posts: 19

Original Poster
Rep: Reputation: 0
I will give slackware a try! I've already installed it a while without trouble! Yet the ports funcionality od freebsd sounds quite appealing! How did u configure window maker after the install?
 
Old 12-09-2005, 08:43 PM   #6
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
WindowMaker Config

Configuring WindowMaker is a snap. To set up your .xinitrc file, just run wmaker.inst (usually in either /usr/bin or /usr/X11R6/bin). If it asks what type of configuration type you want to use, pick the one that can be configured from the GUI; I believe wmaker.inst refers to it as a "binary" format or something, I think it's the default choice. Then startx, of course. After WindowMaker has started, you should see the WindowMaker "dock" (like the Mac OS X dock) on the right hand side; the one right below the top one is for config. Double-click it to launch the configuration tool. Alternatively, select "Preferences Utility" from the root menu (right-click on the desktop), or run /usr/lib/GNUstep/Applications/WPrefs.app/WPrefs. This utility has pretty much all of the configuration you can do with WindowMaker.
 
  


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
GCC 3.2.3 gives error with <stdio.h> on slackware 9.1 Daid Slackware 4 03-01-2009 10:53 PM
suse 10 oss gcc 4.01 <stdio.h> troubles b345713 SUSE / openSUSE 5 12-19-2005 12:41 PM
gcc won't find stdio.h .... or anything else either Thulas Programming 3 02-24-2005 12:22 AM
gcc and stdio in 9.1 iansworld SUSE / openSUSE 1 10-19-2004 01:35 PM
stdio problem in gcc iansworld Linux - Software 0 10-19-2004 10:12 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:25 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