Thread overview |
---|
March 16, 2003 Optlink Problem | ||||
---|---|---|---|---|
| ||||
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 Re: Optlink Problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mark W. | 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 Re: Optlink Problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mark W. | 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. |
Copyright © 1999-2021 by the D Language Foundation