I'm trying to create a .dll with visual studio 6 and can't seem to figure out the compile / link options. I have to compile in a command prompt so I can't just tell the wizard to make a dll.
Here is how I compile:
cl /Yd /Zi /Tpa.c /Foa.obj
and here is how I link:
link/nologo /out:a.dll a.obj wsock32.lib winmm.lib
when I compile all is fine.
when I link I get:
Creating library a.lib and object a.exp
LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
a.dll : fatal error LNK1120: 1 unresolved externals
What do I need to add / change to make it make a dll?