I'm using Pelles C 8.00 64bit and I want to generate a 32bit version and a 64bit version of my program.
For the 64bit executable there is no problem: I open the "Pelles C Command Prompt (64 bit)" command window and give the command:
cc myprog.c /omyprog64.exe
To create the 32bit version, I thought I could do the same by opening the "Pelles C Command Prompt" window.
Unfortunately, using the command:
cc myprog.c /omyprog32.exe
I get a lot of error messages from the linker like:
POLINK: error: Unresolved external symbol '__imp__CloseHandle@4'.
...
Based on what I've found on this forum I've tried many different variation of the command:
cc -Tx86-coff myprog.c /LIBPATH:"%PellesCDir%\lib\win" /omyprog32.exe
but none seems to work.
Basically, it's similar to this question:
http://forum.pellesc.de/index.php?topic=5151.0 but the other way around.
Is there anything else I can try?
Thanks.