www.digitalmars.com         C & C++   DMDScript  

c++.dos.16-bits - Optlink Problem

reply Mark W. <Mark_member pathlink.com> writes:
I am new to Digital Mars, and so I set up a new project and this is the program

#include <stdio.h>
int main()
{
printf("\nHello World!\n");
}

This compiles fine, but the build gives me a undefined symbol: _WinMain 16
and fails. What am I doing wrong?

Thanks for the help.

Mark W.
Mar 16 2003
next sibling parent "Walter" <walter digitalmars.com> writes:
Are you using the idde or the command line tools?

"Mark W." <Mark_member pathlink.com> wrote in message
news:b51v5r$58h$1 digitaldaemon.com...
 I am new to Digital Mars, and so I set up a new project and this is the

 #include <stdio.h>
 int main()
 {
 printf("\nHello World!\n");
 }

 This compiles fine, but the build gives me a undefined symbol: _WinMain 16
 and fails. What am I doing wrong?

 Thanks for the help.

 Mark W.

Mar 17 2003
prev sibling parent "Walter" <walter digitalmars.com> writes:
Here's the fix:

    www.digitalmars.com/faq.html#winmain


"Mark W." <Mark_member pathlink.com> wrote in message
news:b51v5r$58h$1 digitaldaemon.com...
 I am new to Digital Mars, and so I set up a new project and this is the

 #include <stdio.h>
 int main()
 {
 printf("\nHello World!\n");
 }

 This compiles fine, but the build gives me a undefined symbol: _WinMain 16
 and fails. What am I doing wrong?

 Thanks for the help.

 Mark W.

Mar 17 2003