> >If yes,
> >could you perform the following experiment
> >in sub directory myldr:
> >
> >- in Makefile: remove C:\perl5\lib\CORE\perl58.lib and
> >  -libpath:"C:\perl5\lib\CORE" from STATIC_LDFLAGS
> >- delete static.exe
> >- re-run nmake
> >
> I now have unresolved externals when linking static.exe:
> ... 
> -out:.\static.exe static.obj : error LNK2001: unresolved 
> external symbol __imp__win32_access static.obj : error 
> LNK2001: unresolved external symbol __imp__win32_stat 

This is stuff from perl58.dll which shouldn't be there -
static.o should only reference standard C library functions.
I dunno the necessary flags for Microsoft's C compiler,
but with gcc I would 
  gcc -E -dD ...other_flags_from_Makefile... static.c
and check where these came from (probably something included
from EXTERN.h or perl.h).

Cheers, Roderich

Reply via email to