Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Few questions(building, cdt resolving defines, headers)
Few questions [message #721440] Thu, 01 September 2011 15:02 Go to next message
Eclipse UserFriend
1. Am I building my project properly?

I check the project out of CVS as a C++ project. Then I add a makefile in the project's root directory that changes directories and calls the makefile that I actually want called.

For example the makefile in my project's root directory is,

make all:
	cd Executables/TestPrograms/TestProgram; make


Is there a better way to do this?

2. Some defines aren't resolving.

I find that when I have a header included in a .cpp that contains a define it is resolved properly.
But when that header includes a header that contains a define it is not resolved through the IDE in the .cpp(although still resolved properly in the header).

3. I have two headers that define a class with the same name. A .cpp file includes one of the headers but eclipse thinks I included the other. It underlines some of the methods saying they're not found but I can still build properly.





Re: Few questions [message #721578 is a reply to message #721440] Fri, 02 September 2011 03:24 Go to previous messageGo to next message
Eclipse UserFriend
1)
You should open Project Properties->C/C++ Build. There you can define the build location. No need to use an additional makefile.

2)
This should work. Can you give an example?

3)
from https://bugs.eclipse.org/bugs/show_bug.cgi?id=337583
"Because classes, structs and unions can be fwd-declared, we cannot determine
whether the same name is meant to name the same type or not. Therefore, there
is only one definition for a type-name in the index."
You should exclude the header you are not using. See http://www.eclipse.org/forums/index.php/t/237423/
Re: Few questions [message #721680 is a reply to message #721578] Fri, 02 September 2011 10:33 Go to previous messageGo to next message
Eclipse UserFriend
1)
Thanks that works.
I tried doing that before and I think it caused CDT to stop indexing some files but it seems to be working now.

2)
Seems to be resolving now error was on my end.

3)
Seems to be resolving now error was on my end I guess. If I encounter that situation you listed I will try the link.

4)
The line spacing feels like its from word 2010 i.e. extra lines in between. Is there somewhere I can set it to be 1 space instead of 1.5 spaces. This might be a general eclipse question.
http://i.imgur.com/0lG2e.png
Re: Few questions [message #722234 is a reply to message #721680] Mon, 05 September 2011 02:34 Go to previous message
Eclipse UserFriend
shwick wrote on Fri, 02 September 2011 16:33
1)
4)
The line spacing feels like its from word 2010 i.e. extra lines in between. Is there somewhere I can set it to be 1 space instead of 1.5 spaces. This might be a general eclipse question.
http://i.imgur.com/0lG2e.png

You can try a different font (Preferences->General->Appearance->Colors and Fonts)
Previous Topic:Newbie C++ Linker Problems
Next Topic:Help with OpenCV
Goto Forum:
  


Current Time: Tue Jul 08 02:13:39 EDT 2025

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

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

Back to the top