Author Topic: Problem compiling svn 9467 on Windows  (Read 4538 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 797
Problem compiling svn 9467 on Windows
« on: November 27, 2013, 09:18:10 am »
Trying to compile svn 9467 on Windows (with tdm compiler 4.8.1) gives an error in building cctest :
Quote
...
||=== Générer : cctest dans CC Test (compilateur : GNU GCC Compiler) ===|
D:\gdurand.ONL\Documents\00_svn_CodeBlocks\CodeBlocks_src\trunk\src\plugins\codecompletion\nativeparser_base.cpp||In member function 'void NativeParserBase::FindCurrentFunctionScope(TokenTree*, const TokenIdxSet&, TokenIdxSet&)':|
..\..\include\cbexception.h|61|error: 'cbC2U' was not declared in this scope|
..\..\include\cbexception.h|80|note: in expansion of macro 'cbAssertMessage'|
D:\gdurand.ONL\Documents\00_svn_CodeBlocks\CodeBlocks_src\trunk\src\plugins\codecompletion\parser\cclogger.h|159|note: in expansion of macro 'cbAssert'|
D:\gdurand.ONL\Documents\00_svn_CodeBlocks\CodeBlocks_src\trunk\src\plugins\codecompletion\nativeparser_base.cpp|303|note: in expansion of macro 'CC_LOCKER_TRACK_TT_MTX_LOCK'|
....
||=== Génération de terminé : 34 erreur(s), 5 avertissement(s) (6 minute(s), 13 seconde(s)) ===|
apparently a problem with cbC2U.
This happened even on a full C::B rebuild.

gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Problem compiling svn 9467 on Windows
« Reply #1 on: November 27, 2013, 02:31:36 pm »
Did you delete the precompiled sdk.h? if not do so.

sdk.h.gch and sdk_precomp.h.gch in folder "src\.objs\include"

Tim S.
« Last Edit: November 27, 2013, 02:34:19 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Problem compiling svn 9467 on Windows
« Reply #2 on: November 27, 2013, 03:06:38 pm »
Build fine here. MinGW-build 4.7.4, wx2.8.12.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Problem compiling svn 9467 on Windows
« Reply #3 on: November 27, 2013, 04:24:07 pm »
Build fine here. MinGW-build 4.7.4, wx2.8.12.
Does not build for me, too. But the fix is in trunk now. It was actually an "error" that had been there longer, but just not raised so far.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline gd_on

  • Lives here!
  • ****
  • Posts: 797
Re: Problem compiling svn 9467 on Windows
« Reply #4 on: November 27, 2013, 05:51:04 pm »
Quote
Did you delete the precompiled sdk.h? if not do so.

sdk.h.gch and sdk_precomp.h.gch in folder "src\.objs\include"

I thought this was automatically done when you make a full rebuild, during the cleanup part of the process. Isn't it ?

Nevertheless, with svn 9468 it's OK. ;)

thanks

Gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).