I hope you could fix it.
I am currently testing a patch that should tackle this.
If you want to, try replacing line 40 in compiler.cpp which is currently:
const wxString Compiler::FilePathWithSpaces = _T("[][{}() \t#%$~A-Za-z0-9_:+/\\.-]+");
...with:
#ifdef __WXMSW__
const wxString Compiler::FilePathWithSpaces = _T("[a-zA-Z]:\\[^/:*?\"<>]*\\?[^\\/:*?\"<>]*");
#else
const wxString Compiler::FilePathWithSpaces = _T("[.]{0,2}[/][^/:*?\"<>]*/?[^//:*?\"<>]*");
#endif
That's also the root of the culprit btw... ;-)
With regards, Morten.
Edit: Ok... that's not supposed to work... forget about it for a while...
Eg. : C:\My{direc tor]y\I[s he(re)
is a valid dir : how stupid it may be, but it is
I know. That's why I'm trying to do it the opposite way: *forbid* certain characters (notice the ^ in the RegExp) but allow all others.
With regards, Morten.
Edit: Now this should actually work:
#ifdef __WXMSW__
const wxString Compiler::FilePathWithSpaces = _T("[a-zA-Z]:\\\\[^/:*?\\\"<>]*\\\\?|[^/:*?\\\"<>]*");
#else
const wxString Compiler::FilePathWithSpaces = _T("[.]{0,2}[/][^\\\\:*?\\\"<>]*/?|[^\\\\:*?\\\"<>]*");
#endif
Hello the guys!
Bravo for codeblocks, in time it matures as a good wine of Anjou. :oops:
I am under Debian Etch and I have an error in the compilation, what gives this: :shock:
g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -I../../../src/include -I../../../src/include/wxscintilla/include -I../../../src/include/scripting/include -I../../../src/include/scripting/sqplus -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT gdb_driver.lo -MD -MP -MF .deps/gdb_driver.Tpo -c gdb_driver.cpp -fPIC -DPIC -o .libs/gdb_driver.o
if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -I../../../src/include -I../../../src/include/wxscintilla/include -I../../../src/include/scripting/include -I../../../src/include/scripting/sqplus -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT gdb_tipwindow.lo -MD -MP -MF ".deps/gdb_tipwindow.Tpo" -c -o gdb_tipwindow.lo gdb_tipwindow.cpp; \
then mv -f ".deps/gdb_tipwindow.Tpo" ".deps/gdb_tipwindow.Plo"; else rm -f ".deps/gdb_tipwindow.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -I../../../src/include -I../../../src/include/wxscintilla/include -I../../../src/include/scripting/include -I../../../src/include/scripting/sqplus -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT gdb_tipwindow.lo -MD -MP -MF .deps/gdb_tipwindow.Tpo -c gdb_tipwindow.cpp -fPIC -DPIC -o .libs/gdb_tipwindow.o
gdb_tipwindow.cpp:40:25: error: gtk/gtk.h: No such file or directory
gdb_tipwindow.cpp: In constructor 'GDBTipWindow::GDBTipWindow(wxWindow*, const wxString&, const wxString&, const wxString&, const wxString&, wxCoord, GDBTipWindow**, wxRect*)':
gdb_tipwindow.cpp:190: error: 'GTK_WIDGET_HAS_GRAB' was not declared in this scope
gdb_tipwindow.cpp:191: error: 'gtk_grab_add' was not declared in this scope
gdb_tipwindow.cpp: In destructor 'virtual GDBTipWindow::~GDBTipWindow()':
gdb_tipwindow.cpp:207: error: 'GTK_WIDGET_HAS_GRAB' was not declared in this scope
gdb_tipwindow.cpp:208: error: 'gtk_grab_remove' was not declared in this scope
gdb_tipwindow.cpp: In member function 'void GDBTipWindow::Close()':
gdb_tipwindow.cpp:261: error: 'GTK_WIDGET_HAS_GRAB' was not declared in this scope
gdb_tipwindow.cpp:262: error: 'gtk_grab_remove' was not declared in this scope
make[4]: *** [gdb_tipwindow.lo] Erreur 1
make[4]: quittant le répertoire « /home/stephane/trunk/src/plugins/debuggergdb »
make[3]: *** [all-recursive] Erreur 1
make[3]: quittant le répertoire « /home/stephane/trunk/src/plugins/debuggergdb »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/stephane/trunk/src/plugins »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/stephane/trunk/src »
make: *** [all-recursive] Erreur 1
stephane@robusta:~/trunk$ cd
T7200 2gb RAM HD160gb :lol:
rev 4107 and 4122/4123
wxwidgets2.8.4
./bootstrap;./configure --enable-contrib;make;su -c 'make install'
Still thank you for your fantastic work! :P
Cordially Stéphane