Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29275 토론

LIB file not being generated in DLL project

ferrad1
새로운 기여자 I
1,572 조회수

I have a base DLL project test_lib.vfproj which successfully creates a DLL and LIB file in the output directory.  I created a cut down project test2_lib.vfproj, by copying the test_lib vfproj file, and edited the vfproj file to rename all occurrences of test_lib to test2_lib, and rebuilt test2_lib.vfproj.  However test2_lib.lib is not created (the DLL is).  The command line has /IMPLIB:"F:\Proj\tmp\test2_lib\Debug\x64\test2_lib.lib" which is where the DLL is built too.

Any idea why is the LIB not being built?

0 포인트
1 솔루션
Arjen_Markus
명예로운 기여자 II
1,561 조회수

Yes, you need to explicitly export one or more routines from the library via a compiler directive:

 

!DEC$ ATTRIBUTES DLLEXPORT :: routinename

 

This appears after the subroutine or function statement.

원본 게시물의 솔루션 보기

2 응답
Arjen_Markus
명예로운 기여자 II
1,562 조회수

Yes, you need to explicitly export one or more routines from the library via a compiler directive:

 

!DEC$ ATTRIBUTES DLLEXPORT :: routinename

 

This appears after the subroutine or function statement.

ferrad1
새로운 기여자 I
1,550 조회수

aah yes, of course, thank you!

0 포인트
응답