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

Problem with Generating lib file

Ted_Yang
Beginner
940 Views
Hello,

In past time, I used Intel Fortran 9.1, I got a problem when compiling.

My project only has one souce file named test.f90 file, when I put it into current folder it can genrete library and dllfile but when I change it to the other folder or disk, it cannot generate the libarary file, only dll, I also include the change folder directory in additional include directory, but it stilll can not generate libary file.

does someone help me to solve the problem?

Thanks a lots,
Ted.
0 Kudos
4 Replies
Steven_L_Intel1
Employee
940 Views
Do you get an error, or just no .lib? The most common cause of no .lib for a DLL build is missing the appropriate !DEC$ ATTRIBUTES DLLEXPORT directive for the names to be exported. At least one needs to be seen in order for the linker to create the .lib (and .exp).
0 Kudos
Ted_Yang
Beginner
940 Views

Steve,

Thanks for your reply.

You arecorrect. I only get dll file not lib file when change source file directory. could you please let me know how can I create lib under linker. I tried it but failed.


Thanks,
Ted

0 Kudos
Steven_L_Intel1
Employee
940 Views
There is nothing you can or should do with options to get the .LIB. You do need a DLLEXPORT directive in the routine(s) being exported, otherwise you won't get a LIB.
0 Kudos
Ted_Yang
Beginner
940 Views
Steve,

Thanks, I have fixed the problem.

Ted.
0 Kudos
Reply