- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How does one add a static library in studio.NET?
I tried this, but LNK did not find the library
(1)Under the Tools/options/Intel Fortran Options tab I added
the full path to the library.
(2) I added the .lib file under project/add existing item
Both code and library work fine under the old Microsoft Fortran Power Station. Both code and library complies OK
with Intel fortran. The library also builds OK, but when I go to build the .exe the linker can't find the library.
There obviously should be a simple solution, but I don't see it. Thanks in advance for any help.
-M.
I tried this, but LNK did not find the library
(1)Under the Tools/options/Intel Fortran Options tab I added
the full path to the library.
(2) I added the .lib file under project/add existing item
Both code and library work fine under the old Microsoft Fortran Power Station. Both code and library complies OK
with Intel fortran. The library also builds OK, but when I go to build the .exe the linker can't find the library.
There obviously should be a simple solution, but I don't see it. Thanks in advance for any help.
-M.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
(1) is not the right place - this is a list of folders that it will search for libraries, but there has to be a reference to the library somewhere
(2) should have worked. Another place you can do this is the Properties page for the project. Right click on the project name, select Properties, Linker, Input. Give the path to your library in the "Additional Dependencies" field.
Steve
(2) should have worked. Another place you can do this is the Properties page for the project. Right click on the project name, select Properties, Linker, Input. Give the path to your library in the "Additional Dependencies" field.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the help.
I found a solutions that works.
(1) I add the path or folder name under Tools/... libraries, and (2) I add the Library name under Project/Properties/... Addtional dependencies.
-M.
I found a solutions that works.
(1) I add the path or folder name under Tools/... libraries, and (2) I add the Library name under Project/Properties/... Addtional dependencies.
-M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did some experiments, and indeed you're correct - adding a .lib or even a .obj to the project accomplishes nothing. I'll ask as to why this is... The solution you came up with works fine.
Steve
Steve

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