Writing an ACM Codec


I am using DDK to creat a new ACM codec, but has a problem
in linking it. I wrote my code based on gsm610 example,
and compile is successful, but not the link.

The error I got is:

libc.lib(crt0.obj) : error LNK2019: unresolved external
symbol _main referenced in function _mainCRTStartup
objchk_wnet_x86\i386\G729.acm : fatal error LNK1120: 1
unresolved externals

In my source file, the settings are exact the same as in
the gsm610 example. It is:

DLLDEF =g729.def
UMTYPE =windows

I specified DYNLINK vs. EXECUTABLE, which means DllMain()
should be the entry function instead of Main(), but
somehow the linker is trying to find main() function
instead.(In one of my source file, I defined DLLmain()
function properly, the name is G729DllMain())

I’ve tried using /entry:yourmainentrypoint, but it does
not work either, the same error. I don’t know why it is
finding main() instead of DllMain()?