Hello,
I am bringing some code over and have stumbled my way through to getting
clean compiles etc. I have a link line which looks like:
link32 /out:comtst.out -subsystem:console -entry:mainCRTStartup comtst.obj \
libcom.lib libc.lib kernel32.lib ntdll.lib
It then tells me it has two unresolved symbols – fcvt and getpid. The other
"c" runtime routines in libc.lib are all found just fine. I did a lib/list on
libc.lib
and fcvt.obj and getpid.obj are there. I commented out the calls to the two
routines from my program and it linked ok.
Any ideas?
I am using the March 1993 beta.
Thanks
There is 1 Reply.
Bruce,
I have been unable to reproduce this problem on the released version of the
OS. You might try changing to _getpid() and _fcvt() but I don't think that
this should make a difference. Also try placing libcom.lib after the other
libraries.
Thanks,
Michael Markley [Microsoft Developer Support]
There is 1 Reply.
I found it – fcvt etc are redefined in <stdlib.h> to _fcvt – just to keep the
uninitiated from writing programs (standards they say…) <g>. So, I needed to
include <stdlib.h> and recompile to get it to link correctly.
Bruce