Code::Blocks Forums

User forums => Help => Topic started by: gd_on on March 26, 2011, 12:20:01 pm

Title: Compilation problem with svn 7070, in codesnippets
Post by: gd_on 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
Title: Re: Compilation problem with svn 7070, in codesnippets
Post by: MortenMacFly 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...)
Title: Re: Compilation problem with svn 7070, in codesnippets
Post by: gd_on on March 26, 2011, 02:54:57 pm
Hi,
both solutions are OK for me  8)

gd_on
Title: Re: Compilation problem with svn 7070, in codesnippets
Post by: MortenMacFly on March 26, 2011, 03:27:57 pm
both solutions are OK for me  8)
...and already committed.