User forums > Help
Compilation problem with svn 7070, in codesnippets
(1/1)
gd_on:
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) ===|
--- End code ---
I use Win XP, SP3 and my compiler is TDM 4.5.1.
gd_on
MortenMacFly:
--- Quote from: gd_on on March 26, 2011, 12:20:01 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) ===|
--- End code ---
--- End quote ---
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...)
gd_on:
Hi,
both solutions are OK for me 8)
gd_on
MortenMacFly:
--- Quote from: gd_on on March 26, 2011, 02:54:57 pm ---both solutions are OK for me 8)
--- End quote ---
...and already committed.
Navigation
[0] Message Index
Go to full version