News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Compiler Pointing to the wrong files

Started by mechmon, November 16, 2011, 11:11:25 AM

Previous topic - Next topic

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...
As you see you are missing the include path
C:\codeblocks-10.05-release\src\plugins\contrib\wxSmith\propgrid\contrib\include
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

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.