Linking with DMD

Walter Bright newshound2 at digitalmars.com
Thu Jun 21 11:04:45 PDT 2012


On 6/21/2012 10:48 AM, Anonymous wrote:
> it says:
>
> OPTLINK : Warning 23: No Stack
> Error 42: Symbol Undefined _main
> Error 42: Symbol Undefined __acrtused_con
> OPTLINK : Warning 134: No Start Address
>
> I would really like seeing this working...

main() cannot function as the start address of a program. Things must be set up 
first, and __acrtused_con pulls in the code that does that. But that code must 
exist in a library.


More information about the Digitalmars-d mailing list