User forums > Help

Error during cvs compilation

(1/2) > >>

connyosis:
Downloaded the latest cvs of code::blocks and started a compile under Gentoo Linux.
After a while, it quits with these errors:

g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -I../../src/sdk/wxscintilla/include -I../../src/sdk/tinyxml -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -g -O2 -O2 -ffast-math -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -MT macrosmanager.lo -MD -MP -MF .deps/macrosmanager.Tpo -c macrosmanager.cpp  -fPIC -DPIC -o .libs/macrosmanager.o
macrosmanager.cpp: In static member function `static void MacrosManager::Free()
   ':
macrosmanager.cpp:59: error: incomplete type 'UserVariableManager' cannot be
   used to name a scope
macrosmanager.cpp: In member function `void
   MacrosManager::ReplaceMacros(wxString&, bool)':
macrosmanager.cpp:144: error: `Replace' undeclared (first use this function)
macrosmanager.cpp:144: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
macrosmanager.cpp:154: error: `ConfigManager' undeclared (first use this
   function)
macrosmanager.cpp:154: error: syntax error before `::' token
macrosmanager.cpp:163: error: syntax error before `)' token
macrosmanager.cpp:167: error: syntax error before `else'
macrosmanager.cpp:171: error: syntax error before `)' token
macrosmanager.cpp:174: error: `target' undeclared (first use this function)
macrosmanager.cpp: At global scope:
macrosmanager.cpp:184: error: `pre' was not declared in this scope
macrosmanager.cpp:184: error: `env' was not declared in this scope
macrosmanager.cpp:184: error: `post' was not declared in this scope
macrosmanager.cpp:186: error: syntax error before `if'
macrosmanager.cpp:196: error: `env' was not declared in this scope
macrosmanager.cpp:196: error: `envactual' was not declared in this scope
macrosmanager.cpp:196: error: ISO C++ forbids declaration of `wxGetEnv' with no
   type
macrosmanager.cpp:196: error: `int wxGetEnv' redeclared as different kind of
   symbol
/usr/include/wx-2.6/wx/utils.h:343: error: previous declaration of `bool
   wxGetEnv(const wxString&, wxString*)'
macrosmanager.cpp:196: error: initializer list being treated as compound
   expression
macrosmanager.cpp:198: error: syntax error before `.' token
make[4]: *** [macrosmanager.lo] Error 1
make[4]: Leaving directory `/home/conny/Desktop/projekt/codeblocks/src/sdk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/conny/Desktop/projekt/codeblocks/src/sdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/conny/Desktop/projekt/codeblocks/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/conny/Desktop/projekt/codeblocks/src'
make: *** [all-recursive] Error 1
conny@abbey ~/Desktop/projekt/codeblocks $   

Including uservarmanager.h & configmanager.h in sdk/macrosmanager.cpp, and including uservarmanager.h in sdk/manager.cpp fixed the problem for me.

   

yop:
You tried to build codeblocks using the unix cbp? It seems that it's kind of outdated I am afraid. I had similar problems, use automake instead.

connyosis:
No, I downloaded the cvs version, bootstrapped it and ran configure && make
Got the error a while into the compilation, so I added a few includes and it compiled fine.

TheTuxKeeper:
I get the same error but only with wxGTK 2.5.x, 2.6.1 works fine

I'll test connyosis modifications.

EDIT:
It works !!!
Thank you connyosis

connyosis:
Anytime :-)
Glad it worked for you.

Navigation

[0] Message Index

[#] Next page

Go to full version