Hi,
I'm working under Ubuntu, I've made an application and I try to port it under windows.
After compiling it with Eclipse / GCC toolchain, I've got an executable.
When I run it, two windows appear : my program, and a console (DOS) window, black with nothing into.
I don't know how to remove it.
I already compiled my program under windows last year with wx2.8, and I don't remember this problem occured.
Now I'm with wx 2.9.3.
How to remove the console joined to the main program ?
Is there really a wxWidgets problem or it can be a link with Eclipse project configuration ?
Thanks for the help.
Windows console launched with my app... Topic is solved
-
- Super wx Problem Solver
- Posts: 323
- Joined: Sun Jun 08, 2008 11:59 am
- Location: Bordeaux, France
Windows console launched with my app...
OS: Ubuntu 11.10
Compiler: g++ 4.6.1 (Eclipse CDT Indigo)
wxWidgets: 2.9.3
Compiler: g++ 4.6.1 (Eclipse CDT Indigo)
wxWidgets: 2.9.3
-
- Ultimate wxWidgets Guru
- Posts: 672
- Joined: Tue Aug 31, 2010 6:22 am
- Location: Belgium
Re: Windows console launched with my app...
You should add something like this during your link process :
g++ -Wl,--subsystem,windows -mwindows
g++ -Wl,--subsystem,windows -mwindows
-
- Super wx Problem Solver
- Posts: 323
- Joined: Sun Jun 08, 2008 11:59 am
- Location: Bordeaux, France
Re: Windows console launched with my app...
Yes, this is the solution ! Thanks a lot for your help.
Bye.
Bye.
OS: Ubuntu 11.10
Compiler: g++ 4.6.1 (Eclipse CDT Indigo)
wxWidgets: 2.9.3
Compiler: g++ 4.6.1 (Eclipse CDT Indigo)
wxWidgets: 2.9.3