LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 07-29-2010, 04:13 AM   #1
jkim74
LQ Newbie
 
Registered: Oct 2007
Posts: 12

Rep: Reputation: 0
Priority in including header


Hello.

I am working on embedded linux and I am a beginner.
I am having hard time to port a program on mips board.
As far as I have experienced so far, and two headers of same name exist both below /usr/include and below toolchain directory, header under /usr/include is included.
Am I right?
How can I make compiler include header under toolchain directory.
And when I run configure and look into Makefile, -I/usr/include shows 2 times, I don't know why.

Please help me solve this problem.
Thanks.
 
Old 07-29-2010, 10:21 PM   #2
falmdavis
Member
 
Registered: Jul 2010
Posts: 56

Rep: Reputation: 15
You can give a full path name, or you could adjust your path settings so that it finds the include file you want first.
 
  


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
Including c++ header files cbabbage Programming 6 10-28-2009 09:36 PM
Including header file using HTML hoho4rd Programming 4 12-05-2006 11:20 AM
Including the header file of a module in kernel code omkarlagu Linux - Newbie 0 02-05-2006 07:55 AM
How to write Makefile in 2.6 for including header files in another dir ? ashbalu Programming 0 10-19-2004 03:45 PM
Difference between including a header file and 'class' declaration in C++ scoTtkIm Programming 1 09-09-2004 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

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