Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Der Meister on December 07, 2006, 06:09:50 pm

Title: Missing include directory
Post by: Der Meister on December 07, 2006, 06:09:50 pm
Revision 3353 failed to build here (Linux, gcc 4.1.1, wxGTK 2.6.2) with following errors while compiling tinywxuni.cpp:
Quote
In file included from ../../../src/sdk/sdk_precomp.h:8,
                 from tinywxuni.cpp:1:
../../../src/sdk/sdk_common.h:89:32: error: wx/wxscintilla.h: No such file or directory
../../../src/sdk/cbeditor.h:23: error: expected class-name before '{' token
../../../src/sdk/cbeditor.h:317: error: 'wxScintillaEvent' has not been declared
../../../src/sdk/cbeditor.h:318: error: 'wxScintillaEvent' has not been declared
../../../src/sdk/cbeditor.h:319: error: 'wxScintillaEvent' has not been declared
../../../src/sdk/cbeditor.h:320: error: 'wxScintillaEvent' has not been declared
../../../src/sdk/cbeditor.h:321: error: 'wxScintillaEvent' has not been declared
../../../src/sdk/cbeditor.h:322: error: 'wxScintillaEvent' has not been declared
../../../src/sdk/cbeditor.h:323: error: 'wxScintillaEvent' has not been declared
../../../src/sdk/cbeditor.h:324: error: 'wxScintillaEvent' has not been declared
../../../src/sdk/cbeditor.h:325: error: 'wxScintillaEvent' has not been declared
../../../src/sdk/cbeditor.h:326: error: 'wxScintillaEvent' has not been declared
../../../src/sdk/editorcolourset.h:44: error: 'wxSCI_KEYWORDSET_MAX' was not declared in this scope
../../../src/sdk/editorcolourset.h:52: error: 'wxSCI_KEYWORDSET_MAX' was not declared in this scope
The problem is the missing header, the other errors are just results of it.

It can be solved with this patch:
Code
Index: src/sdk/tinyxml/Makefile.am
===================================================================
--- src/sdk/tinyxml/Makefile.am (revision 3353)
+++ src/sdk/tinyxml/Makefile.am (working copy)
@@ -1,4 +1,5 @@
-INCLUDES = $(WX_CXXFLAGS)
+INCLUDES = $(WX_CXXFLAGS) \
+                        -I$(top_srcdir)/src/sdk/wxscintilla/include

 sdkdir=$(includedir)/codeblocks/tinyxml

Edit:
Should be fixed by revision 3355. Thanks.
Title: Re: Missing include directory
Post by: byo on December 08, 2006, 09:26:05 pm
I had similar problem (andLinux, gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5) )
but to solve this I had to add also:
Code
 -I$(top_srcdir)/src/sdk/
to INCLUDES