Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Include works, namespace could not be resolved
icon13.gif  Include works, namespace could not be resolved [message #854913] Tue, 24 April 2012 06:59 Go to next message
Eclipse UserFriend
Well I guess I didn't have enough yet. I'm soon going to find another IDE if this doesn't work lol... Anyway

Here's the problem: Everything works. I've included irrlicht.h successfully, the editor doesn't give any error. Then, I try "using namespace irr" which IS included in irrlicht.h (I checked!) but then Eclipse says irr could not be resolved!

Screenshot best describes the problem:
dl dot dropbox dot com/u/52854878/namespaceProblem.png

What do?
Re: Include works, namespace could not be resolved [message #854935 is a reply to message #854913] Tue, 24 April 2012 07:21 Go to previous messageGo to next message
Eclipse UserFriend
Can the editor resolve irrlicht.h, i.e. when you select it and press F3 will it open the correct header file?
Did you rebuild your index (right click on project and then Index->Rebuild)?
Where did you add the include path for irrlicht.h?
Do you have your own Makefile or do you let Eclipse generate it?
Re: Include works, namespace could not be resolved [message #855021 is a reply to message #854935] Tue, 24 April 2012 09:09 Go to previous messageGo to next message
Eclipse UserFriend
So I had closed Eclipse and went to do something else and when I opened it to answer your questions, that namespace problem was fixed.

Now to answer your question:
F3 opens the correct header file.
Just rebuilt the index. Didn't change anything.
Included in Project -> Properties -> C/C++ General -> Paths and Symbols. I added C:\irrlicht\include as a folder.
I let Eclipse generate the Makefile.

So everything looks like it's working. Onwards with the tutorial. If something goes wrong, I'll gladly ask here! You've been much helpful!

Edit: Arh, this I can't be sure is a problem with Eclipse but... "undefined reference to `_imp__createDevice' IrrlichtTutorial.cpp"

Edit2: GAWD I fixed it. So I had to put the library path to my Irrlicht lib, and then add "Irrlicht" in libraries. That's what ld expects. 100% working now. Thank you very much.

[Updated on: Tue, 24 April 2012 11:27] by Moderator

Re: Include works, namespace could not be resolved [message #855222 is a reply to message #855021] Tue, 24 April 2012 12:10 Go to previous message
Eclipse UserFriend
Fred Duff wrote on Tue, 24 April 2012 15:09
So I had closed Eclipse and went to do something else and when I opened it to answer your questions, that namespace problem was fixed.

The index is refreshed when you reopen the project Smile


Previous Topic:Terminate running process
Next Topic:Can CDT load previously opened files on demand on startup?
Goto Forum:
  


Current Time: Wed Jun 18 21:48:27 EDT 2025

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

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

Back to the top