Thread overview
Optlink Problem
Mar 16, 2003
Mark W.
Mar 18, 2003
Walter
Mar 18, 2003
Walter
March 16, 2003
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.
March 18, 2003
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
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.


March 18, 2003
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
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.