User forums > Help

Compiler Pointing to the wrong files

(1/1)

mechmon:
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

MortenMacFly:

--- Quote from: mechmon on November 16, 2011, 11:11:25 am ---Everything seems fine to me, but if that were true I would be having this issue...

--- End quote ---
As you see you are missing the include path
C:\codeblocks-10.05-release\src\plugins\contrib\wxSmith\propgrid\contrib\include

mechmon:
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.

Navigation

[0] Message Index

Go to full version