Thanks, I thought I saw that somewhere. For the record, the download is called "Microsoft Visual C++ Toolkit 2003" and includes all of the tools you'd need to build Pike with the "native" Microsoft toolchain.
Now to the interesting part:
[...]
And the results seem to indicate that pntld doesn't deal with the gcc generated output file (ie __declspec(dllexport) doesn't do the same thing).
The two outputs from pntld (with debug enabled) are available here, if anyone has an interest:
The main difference that I can see is that the gcc compiled version lacks "/DEFAULTLIB:"LIBC" /DEFAULTLIB:"OLDNAMES" /EXPORT:_test " in the .drectve section.
pntld line ~1257 scans the above string for export directives.
Bill