Code::Blocks Forums

User forums => Help => Topic started by: mechmon on November 16, 2011, 11:11:25 am

Title: Compiler Pointing to the wrong files
Post by: mechmon on November 16, 2011, 11:11:25 am
Hello,
I am compiling wxChart from sources, as per http://wiki.codeblocks.org/index.php?title=Creating_a_plugin_which_adds_new_item_into_wxSmith.

When compiling I received the following error:
C:\codeblocks-10.05-release\src\plugins\contrib\wxSmith/wxwidgets/properties/../../properties/wxsproperty.h:34:34: error: wx/propgrid/propgrid.h: No such file or directory

When I go looking for said file, I find it here:
C:\codeblocks-10.05-release\src\plugins\contrib\wxSmith\propgrid\contrib\include\wx\propgrid\propgrid.h

It seems the compiler is not finding it. In "Settings>Global Variables..." I have:
Global variable: wxsmith
Base:    C:\codeblocks-10.05-release\src\plugins\contrib\wxSmith
Include: C:\codeblocks-10.05-release\src\plugins\contrib\wxSmith
Lib:       C:\codeblocks-10.05-release\src\devel\share\CodeBlocks\plugins

In Search Directories for the compiler I have:
$(#cb)\include
$(#cb)\sdk\wxscintilla\include
$(#wx.include)
$(#wx.lib)\gcc_dll\mswu
$(#wxsmith.include)
C:\codeblocks-10.05-release\src\plugins\contrib\wxSmithContribItems\wxchart-0.2\include

Everything seems fine to me, but if that were true I would be having this issue...

Thanks,
Mon
Title: Re: Compiler Pointing to the wrong files
Post by: MortenMacFly on November 16, 2011, 11:21:09 am
Everything seems fine to me, but if that were true I would be having this issue...
As you see you are missing the include path
C:\codeblocks-10.05-release\src\plugins\contrib\wxSmith\propgrid\contrib\include
Title: Re: Compiler Pointing to the wrong files
Post by: mechmon on November 16, 2011, 01:13:50 pm
You are right of course.

Added the include path and all is well. Perhaps this is just my misunderstanding then....
wouldn't
C:\codeblocks-10.05-release\src\plugins\contrib\wxSmith\propgrid\contrib\include
be considered part of
Include: C:\codeblocks-10.05-release\src\plugins\contrib\wxSmith
???
I thought that the elipsis in the following were relational and the compiler would look two directories down to find the lib since that is where it resides.
wxwidgets/properties/../../properties/wxsproperty.h:
Or is that just a coincidence?

Thank you.