Author Topic: Compilation problem with svn 7070, in codesnippets  (Read 4658 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 824
Compilation problem with svn 7070, in codesnippets
« on: March 26, 2011, 12:20:01 pm »
While compiling svn 7070, I obtain this compilation error :
Code
||=== Code Snippets, Plugin - Win32 ===|
C:\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\codesnippets\codesnippets.cpp||In member function 'bool CodeSnippets::GetTreeSelectionData(const wxTreeCtrl*, wxTreeItemId, wxString&)':|
C:\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\codesnippets\codesnippets.cpp|968|error: operands to ?: have different types 'const wxString' and 'const wxChar*'|
||=== Génération terminée : 1 erreurs, 0 avertissements (4 minutes, 49 secondes) ===|
I use Win XP, SP3 and my compiler is TDM 4.5.1.

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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Compilation problem with svn 7070, in codesnippets
« Reply #1 on: March 26, 2011, 01:41:45 pm »
Code
||=== Code Snippets, Plugin - Win32 ===|
C:\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\codesnippets\codesnippets.cpp||In member function 'bool CodeSnippets::GetTreeSelectionData(const wxTreeCtrl*, wxTreeItemId, wxString&)':|
C:\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\codesnippets\codesnippets.cpp|968|error: operands to ?: have different types 'const wxString' and 'const wxChar*'|
||=== Génération terminée : 1 erreurs, 0 avertissements (4 minutes, 49 secondes) ===|
Is it resolved if you put a wxString() around wxEmptyString?

Alternatively, what about replacing wxEmptyString with wxT("")?

(I can't compile anything here for the moment...)
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: 824
Re: Compilation problem with svn 7070, in codesnippets
« Reply #2 on: March 26, 2011, 02:54:57 pm »
Hi,
both solutions are OK for me  8)

gd_on
« Last Edit: March 26, 2011, 02:59:03 pm by gd_on »
Windows 11 64 bits (24H2), svn C::B (last version or almost!), wxWidgets 3.2.8 (tests with 3.3), Msys2 Compilers 15.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Compilation problem with svn 7070, in codesnippets
« Reply #3 on: March 26, 2011, 03:27:57 pm »
both solutions are OK for me  8)
...and already committed.
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