LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-04-2010, 12:24 AM   #16
ArthurSittler
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 124

Rep: Reputation: 31
distribution agnostic


I haven't tried every distribution. This problem is distribution agnostic. It would be the same issue regardless.

I don't want to say any thing about distributions because there are too many embers wanting to burst into flame if anyone supplies anything that even looks like it could be fuel.

Thank you for your efforts and for publishing the results. I hope others will benefit from it.
 
Old 06-06-2010, 02:24 AM   #17
ddlawrence
LQ Newbie
 
Registered: Aug 2007
Location: Vancouver Island, Canada
Distribution: Fedora Core
Posts: 24

Original Poster
Rep: Reputation: 16
While I have your attention, how do I find out where the INCLUDEd header files reside? They do not seem to be in the $PATH ?

thanks.........don
 
Old 06-06-2010, 04:34 AM   #18
ArthurSittler
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 124

Rep: Reputation: 31
use find to locate a header file

Please refer to the man page for find for an explanation of this.

man find

I used the find command to search for one of the header files. This shows me where the library header files are located.

find / -name stdio.h

This eventually resulted in a list of files and a lot of error messages about access denied to various subdirectories. The most likely candidate for the real stdio.h header file for gcc was

/usr/include/stdio.h

which means that the standard header files are in

/usr/include/

I think that setting the library path and header file path may have been an option selected during installation of gcc.

I am not completely certain this is the right directory because I have a lot of other C compilers also installed on my computer.
 
Old 06-06-2010, 11:47 AM   #19
ddlawrence
LQ Newbie
 
Registered: Aug 2007
Location: Vancouver Island, Canada
Distribution: Fedora Core
Posts: 24

Original Poster
Rep: Reputation: 16
find-ing

Quote:
Originally Posted by ArthurSittler View Post
Please refer to the man page for find for an explanation of this.

man find

I used the find command to search for one of the header files. This shows me where the library header files are located.

find / -name stdio.h

This eventually resulted in a list of files and a lot of error messages about access denied to various subdirectories. The most likely candidate for the real stdio.h header file for gcc was

/usr/include/stdio.h

which means that the standard header files are in

/usr/include/

I think that setting the library path and header file path may have been an option selected during installation of gcc.

I am not completely certain this is the right directory because I have a lot of other C compilers also installed on my computer.
Hi again Arthur. I had that problem trying to resolve the flags for serial port programming. I found 3 termios.h header files. So, it must be a gcc-set thing. I will look there. Plus I have other 3rd party libraries.
regards............don
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] serial port RS232 Aquarius_Girl Linux - Hardware 3 10-26-2009 05:55 PM
USB to RS232 (serial port)? - no I need to configure anything? Ultrus Linux - Hardware 12 08-16-2007 06:00 PM
console login through RS232/serial port ? Yalla-One Linux - Software 3 02-24-2005 04:12 PM
RS232 serial port programing blackzone Programming 2 08-11-2004 12:54 AM
serial port: RS232 RS574? blackzone Linux - Hardware 1 08-10-2004 04:15 AM

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

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