News:

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

Main Menu

Missing include directory

Started by Der Meister, December 07, 2006, 06:09:50 PM

Previous topic - Next topic

Der Meister

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:

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.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

byo

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:
-I$(top_srcdir)/src/sdk/
to INCLUDES