www.digitalmars.com         C & C++   DMDScript  

c++.command-line - would -WA option be worked?

reply nyra sohu.com writes:
surprised!
I used following command lines to compile a windows GUI program,
but I got a console one?

dmc -WA -cpp Main.cpp 

ref to "ctg"  , if -WA option presents, DM compiles GUI program.

ps. I'm sure Main.cpp file defined WinMain correctly.  

this command line  works:

dmc Main.cpp -L/su:windows 
Jun 02 2003
parent reply "Nic Tiger" <tiger7 progtech.ru> writes:
I suspect you need properly written DEF file anyway. Without it all Win32
executables are treated as console ones.

Nic Tiger.

<nyra sohu.com> wrote in message news:bbeslq$lfo$1 digitaldaemon.com...
 surprised!
 I used following command lines to compile a windows GUI program,
 but I got a console one?

 dmc -WA -cpp Main.cpp

 ref to "ctg"  , if -WA option presents, DM compiles GUI program.

 ps. I'm sure Main.cpp file defined WinMain correctly.

 this command line  works:

 dmc Main.cpp -L/su:windows
Jun 02 2003
parent reply Jean-Pierre H. Dumas <jeanpierre.dumas freesbee.fr> writes:
On Mon, 2 Jun 2003 19:53:46 +0400, "Nic Tiger" <tiger7 progtech.ru> wrote:
 I suspect you need properly written DEF file anyway. Without it all Win32
 executables are treated as console ones.
 
 Nic Tiger.
 
Is'nt that sad ? jp
Jun 09 2003
parent reply Jan Knepper <jan smartsoft.us> writes:
"Jean-Pierre H. Dumas" wrote:

 On Mon, 2 Jun 2003 19:53:46 +0400, "Nic Tiger" <tiger7 progtech.ru> wrote:
 I suspect you need properly written DEF file anyway. Without it all Win32
 executables are treated as console ones.
Is'nt that sad ?
No, expecting that GUI is default is sad... ;-) ManiaC++ Jan Knepper
Jun 09 2003
parent "Greg Peet" <admin gregpeet.com> writes:
"Jan Knepper" <jan smartsoft.us> wrote in message
news:3EE4AD3D.4B1B4D39 smartsoft.us...
 No, expecting that GUI is default is sad... ;-)
Agreed!
Jul 24 2003