Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » header include path order
header include path order [message #815565] Wed, 07 March 2012 20:31 Go to next message
Tex Twil is currently offline Tex TwilFriend
Messages: 179
Registered: July 2009
Senior Member
Hi,
in the configuration of my C project I've specified a custom include path which points to headers of OpenSSL. The problem that it is still the system headers from /usr/include which are used in the project and not the ones from my include path.

http://f.cl.ly/items/0b2f24032M0I1s380528/Screen%20Shot%202012-03-07%20at%209.24.39%20PM.png

On this screenshot I've pressend F3 on a constant declared in pkcs7.h but as you can see on the top of the windows, Eclipse opened the file in /usr/share and not the one from my custom path:

http://f.cl.ly/items/3f3U251N2X1b2r1E1c20/Screen%20Shot%202012-03-07%20at%209.29.22%20PM.png

What an I doing wrong ?

cheers

[Updated on: Thu, 08 March 2012 08:41]

Report message to a moderator

Re: header include path order [message #815975 is a reply to message #815565] Thu, 08 March 2012 09:21 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1967
Registered: July 2009
Senior Member
Did you specify the include path /usr/include/openssl in your Makefile or in the toolchain settings of Eclipse (you did no mention how you build your project)? It looks like you are using /usr/include/openssl for the compilation and Eclipse will scan your build output and add the path.
Is the include folder in your workspace a link to the system files?


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: header include path order [message #868580 is a reply to message #815975] Wed, 02 May 2012 08:52 Go to previous messageGo to next message
Tex Twil is currently offline Tex TwilFriend
Messages: 179
Registered: July 2009
Senior Member
Axel Mueller wrote on Thu, 08 March 2012 04:21

Is the include folder in your workspace a link to the system files?

No, the openssl folder is actually in my workspace.

Axel Mueller wrote on Thu, 08 March 2012 04:21
Did you specify the include path /usr/include/openssl in your Makefile or in the toolchain settings of Eclipse (you did no mention how you build your project)?
No, I do not specify explicitely the /usr/include/openssl in the Makefile. It is a Makefile Project.




Re: header include path order [message #868610 is a reply to message #868580] Wed, 02 May 2012 09:43 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1967
Registered: July 2009
Senior Member
How do you include the SSL header?
include <ssl.h>
or
include "ssl.h"

Did you rebuild your index?


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: header include path order [message #868620 is a reply to message #868610] Wed, 02 May 2012 09:53 Go to previous message
Tex Twil is currently offline Tex TwilFriend
Messages: 179
Registered: July 2009
Senior Member
Axel Mueller wrote on Wed, 02 May 2012 05:43
How do you include the SSL header?
include <ssl.h>
or
include "ssl.h"


that was the problem Embarrassed It works if I include "ssl.h"

thanks
Previous Topic:C Syntax Help
Next Topic:indexer can not deal with std::vector<boost::smart_ptr<...> >
Goto Forum:
  


Current Time: Mon Nov 24 04:08:45 GMT 2014

Powered by FUDForum. Page generated in 0.01862 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software