Software Archive
Read-only legacy content

building a DLL

David_DiLaura
Beginner
1,450 Views
I am trying to build a DLL . . . after creating an appropriate new workspace of type DLL, and using the template for a skeleton DLL (just the multiplication of two constants) I get the following error when I try to link:

Linking...
C:DECFortranLIBmsvcrtd.lib : warning LNK4003: invalid library format; library ignored
Creating library Debug/testing.lib and object Debug/testing.exp
C:DECFortranLIBmsvcrtd.lib : warning LNK4003: invalid library format; library ignored
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
Debug/testing.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

I have no idea . . . any assistance would be appreciated!

David
0 Kudos
1 Reply
Steven_L_Intel1
Employee
1,450 Views
That's an odd location for msvcrtd.lib - how did it get there? It should be in a folder whose path ends with VC98LIB. It could be that the library is corrupt or something else is odd on your system. The corrupt library is causing the other errors.

Steve
0 Kudos
Reply