I'm porting an existing LccWin32 project to Pelles C and have encountered what could be a "deal killer".
My project is a scripting engine and I use Dyncall
http://www.dyncall.org/ for making dynamic DLL calls during runtime.
When I compile, Pelles-C gives this error message:
POLINK: fatal error: File not found: 'LIBCMT.lib'.
Now, if I add LIBCMT.lib (from VC) to the \pellesc\LIB\ directory, I get a bunch of "redefinition" error messages:
POLINK: error: Symbol '___argc' is multiply defined: 'crt.lib(_crt0dat.obj)' and 'libcmt.lib(crt0dat.obj)'.
POLINK: error: Symbol '___argv' is multiply defined: 'crt.lib(_crt0dat.obj)' and 'libcmt.lib(crt0dat.obj)'.
POLINK: error: Symbol '___wargv' is multiply defined: 'crt.lib(_crt0dat.obj)' and 'libcmt.lib(crt0dat.obj)'.
POLINK: error: Symbol '_exit' is multiply defined: 'crt.lib(exit.obj)' and 'libcmt.lib(crt0dat.obj)'.
etc...etc...etc...
I have isolated it to the Dyncall LIB files.
What I don't understand is that, LccWin32 does not appear to use LIBCMT.lib either and yet produces no such error.
At least I can't find it anywhere.
Any ideas ?
Thanks,
Steve A.