|
|
Re: Set C++ include/linker settings for all projects, not just per project? [message #1065023 is a reply to message #1065020] |
Sun, 23 June 2013 14:12 |
|
I'm somewhat new to Eclipse and had the same question, dude. I'm constantly adding /usr/include/iwanttokillmyself.
Worse, the Google came up with very little.
So, here's my solution...
while(!Google) {
eclipseProject myProject = new eclipseProject;
myProject.tediousManualInclude("/usr/include");
self.scream("DAMMIT!");
project.tediousManualInclude("/usr/local/include/:/usr/include/c++/4.4.7");
}
...not sure why I put so much effort into this post.
---
-[alpo]-
|
|
|
Re: Set C++ include/linker settings for all projects, not just per project? [message #1065024 is a reply to message #1065020] |
Sun, 23 June 2013 14:25 |
|
Actually, I have a question for you: Eclipse always shows boost header files as unresolved even if I configure -I/usr/include and -I/usr/include/boost. In the preprocessor directives, I have to type the full path (i.e. #include <usr/include/boost/algorithm/string.hpp>). While this particular error goes away, if I try to call mystring.append(1, mystring[1], I still get an Eclipse bug notification (red squiggly line under the method call) that says "Invalid arguments." Even better, the program compiles and in turn, runs like fat kid towards cake.
Any ideas on how to fix this issue? I'd like Eclipse to process the headers appropriately for code completion/debugging prior to compiling and moreover, I absolutely hate red squigglies.
---
-[alpo]-
---
-[alpo]-
|
|
|
Re: Set C++ include/linker settings for all projects, not just per project? [message #1065025 is a reply to message #1065020] |
Sun, 23 June 2013 14:52 |
|
DUDE! I think I figured out the answer to your original query...
Go to Window -> Preferences -> C/C++ -> Settings -> Discovery Tab -> CDT GCC Built-In Compiler Settings [Shared]
Add the following (or edit as required) to the end of the "Command to get compiler specs" field:
-I/usr/include/boost -I/usr/include/c++/4.4.7 -I/usr/include/c++/4.4.7/x86_64-redhat-linux -I/usr/local/include -I/usr/pgsql-9.2/lib -I/usr/pgsql-9.2/include
Let me know if it workie.
---
-[alpo]-
|
|
|
|
Powered by
FUDForum. Page generated in 0.03234 seconds