c++ - Cannot build simple Win32 console program
- James (23/23) Aug 09 2002 What am I doing wrong ??
- Jan Knepper (4/10) Aug 09 2002 /ENTY:WinMainCRTStartup
- James (5/16) Aug 09 2002 How do I do that through the IDDE.
- Jan Knepper (3/24) Aug 09 2002 Select "Console" under "Target Type" in the first "Tab" of "Project Sett...
- James (5/31) Aug 09 2002 Great, it worked !!
What am I doing wrong ?? I'm trying to get started with DM and I can't seem to get a simple win32 console program to build. I'm using the win32 IDDE. The .def file: EXETYPE NT SUBSYSTEM CONSOLE The code: #include <iostream.h> void main () { cout << "Hello\n"; } The build output: Program Files\dm\bin\sc.EXE -cpp -mn -C -WA -S -5 -a8 -c -gf -otest.objtest.c Program Files\dm\bin\scpp.EXE -cpp -mn -C -WA -S -5 -a8 -gftest.c -otest.obj Program Files\dm\bin\link.EXE /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:WinMainCRTStartup /BAS:4194304 /A:512 modflnm.LNK Error: C:\PROGRAM FILES\DM\BIN\..\lib\SNN.lib(winstart) (1231004): Symbol Undefined _WinMain 16 Lines Processed: 843 Errors: 1 Warnings: 0 Build failed
Aug 09 2002
James wrote:What am I doing wrong ?? Program Files\dm\bin\sc.EXE -cpp -mn -C -WA -S -5 -a8 -c -gf -otest.objtest.c Program Files\dm\bin\scpp.EXE -cpp -mn -C -WA -S -5 -a8 -gftest.c -otest.obj Program Files\dm\bin\link.EXE /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:WinMainCRTStartup /BAS:4194304 /A:512 modflnm.LNK/ENTY:WinMainCRTStartup Remove that and it should be linking. Jan
Aug 09 2002
How do I do that through the IDDE. project->settings->build-> ??? "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D53D9C8.A38202D2 smartsoft.cc...James wrote:Files\dm\bin\scpp.EXE -cpp -mn -C -WA -S -5 -a8 -gftest.c -otest.objWhat am I doing wrong ?? Program Files\dm\bin\sc.EXE -cpp -mn -C -WA -S -5 -a8 -c -gf -otest.objtest.c ProgramProgram Files\dm\bin\link.EXE /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:WinMainCRTStartup /BAS:4194304 /A:512 modflnm.LNK/ENTY:WinMainCRTStartup Remove that and it should be linking. Jan
Aug 09 2002
Select "Console" under "Target Type" in the first "Tab" of "Project Settings" Jan James wrote:How do I do that through the IDDE. project->settings->build-> ??? "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D53D9C8.A38202D2 smartsoft.cc...James wrote:Files\dm\bin\scpp.EXE -cpp -mn -C -WA -S -5 -a8 -gftest.c -otest.objWhat am I doing wrong ?? Program Files\dm\bin\sc.EXE -cpp -mn -C -WA -S -5 -a8 -c -gf -otest.objtest.c ProgramProgram Files\dm\bin\link.EXE /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:WinMainCRTStartup /BAS:4194304 /A:512 modflnm.LNK/ENTY:WinMainCRTStartup Remove that and it should be linking. Jan
Aug 09 2002
Great, it worked !! "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D53DCCC.2F6979D5 smartsoft.cc...Select "Console" under "Target Type" in the first "Tab" of "ProjectSettings"Jan James wrote:Files\dm\bin\sc.EXE -cpp -mn -C -WA -S -5 -a8 -c -gf -otest.objtest.cHow do I do that through the IDDE. project->settings->build-> ??? "Jan Knepper" <jan smartsoft.cc> wrote in message news:3D53D9C8.A38202D2 smartsoft.cc...James wrote:What am I doing wrong ?? ProgramFiles\dm\bin\scpp.EXE -cpp -mn -C -WA -S -5 -a8 -gftest.c -otest.objProgramProgram Files\dm\bin\link.EXE /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:WinMainCRTStartup /BAS:4194304 /A:512 modflnm.LNK/ENTY:WinMainCRTStartup Remove that and it should be linking. Jan
Aug 09 2002