

LINK : warning LNK4098: defaultlib "libc.lib" conflicts with use of other libs use /NODEFAULTLIB:libraryĭ:\TemporaryFolder\IVFCVFFORUMCL>df amain2.f90 modul2.obj subro2.lib & amain2Ĭopyright (C) Microsoft Corp 1992-1998. Subro2.dll : fatal error LNK1120: 3 unresolved externalsĭ:\TemporaryFolder\IVFCVFFORUMCL>df /compile_only modul2.f90ĭ:\TemporaryFolder\IVFCVFFORUMCL>df /dll subro2.f90 modul2.obj ObjB802.tmp : error LNK2001: unresolved external symbol _MODUL2_mp_S ObjB802.tmp : error LNK2001: unresolved external symbol _MODUL2_mp_B ObjB802.tmp : error LNK2001: unresolved external symbol _MODUL2_mp_A All rights library subro2.lib and object subro2.exp Microsoft (R) Incremental Linker Version Ĭopyright (C) Microsoft Corp 1992-1998. All rights reserved.ĭ:\TemporaryFolder\IVFCVFFORUMCL>df /dll subro2 Все права защищены.ĭ:\TemporaryFolder\IVFCVFFORUMCL>df /compile_only modul2Ĭompaq Visual Fortran Optimizing Compiler Version 6.6Ĭopyright 2001 Compaq Computer Corp. Then use of df /dll subro2 creates only subro2.lib and subro2.exp, as well as gives the following: First I used df /compile_only, which created modul2.mod and modul2.obj. Please find attached zip file containing the files after I tried actions below. Source files' content is exactly the same as mecej4 wrote in #7, but there are some differences in names we used.

Any advice would be greatly appreciated.īTW, the same algorithm without using the DLL works well and gives correct result: The second case (with the use of module) represents the structure of my large source-code so I need to resolve this issue. I have built DLL and LIB files from the visual development environment.

zero):Īs can be seen above, DLL contains only subprogram in both cases (SUBRO1 and SUBRO2, respectively). However, if I implement the same algorithm using the module, I get inconsistent result (i.e. I need to create and use dynamic-link library (DLL) for Fortran application using Compaq Visual Fortran 6.6.
