When creating a console project, with wxWidgets capabilities (template-based), the wx-config linker flags used by default will disable stdin and stdout. I had to add '-Wl,--subsystem,console' to the linker flags to re-enable the console in/out. I suppose the right way to do it is to modify the
<CodeLite>/templates/projects/executable-console-wx-enabled.project template to make the linker line(s) something like:
Code: Select all
<Linker Options="$(shell wx-config --debug=yes --libs --unicode=yes);-Wl,--subsystem,console" Required="yes"/>
...
<Linker Options="-s;$(shell wx-config --debug=no --libs --unicode=yes);-Wl,--subsystem,console" Required="yes"/>
Or is there a simpler way?
(I use a different wx-config.exe, which is actually a shell script made with a custom wxwidgets build, so i don't know what wx-config.exe, provided by CodeLite, generates by default)