- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,everyone:
Merry Christmas and Happy New Year!
In fortran ,we can add a line '!DEC$ OBJCOMMENT LIB:'*.lib'' in each module file to let the program can automatically call it.But here I create a c lib , to compile my fortran program ,exceptlythe lib is in the same path of it.Otherwise ,it can't find it .even it's in the silent search path of the compiler.What I can do to let it be the default lib and used as fortran follow my inclinations?
Have a nice day!
Merry Christmas and Happy New Year!
In fortran ,we can add a line '!DEC$ OBJCOMMENT LIB:'*.lib'' in each module file to let the program can automatically call it.But here I create a c lib , to compile my fortran program ,exceptlythe lib is in the same path of it.Otherwise ,it can't find it .even it's in the silent search path of the compiler.What I can do to let it be the default lib and used as fortran follow my inclinations?
Have a nice day!
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you asking what the C equivalent of !DEC$ OBJCOMMENT LIB is? It is:
#pragma comment(lib,"libname.lib")
See here for more information.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page