- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the Linux versions of Ifort you can specify libraries by using the following syntax
-L$path -lname1 -lname2
i.e -L specifies the directory to search and l the libs in that directory. Is there any wayof doing something similar with the windows versions?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can, but it's a bit more complicated. The compiler itself doesn't have a switch for this but the linker does. So you would write:
ifort foo.obj /link /libpath:pathtolibs lib1.lib lib2.lib
The /link tells ifort that everything that follows is for the linker.
You can also add the library path to the definition of the LIB environment variable which will accomplish the same thing.
ifort foo.obj /link /libpath:pathtolibs lib1.lib lib2.lib
The /link tells ifort that everything that follows is for the linker.
You can also add the library path to the definition of the LIB environment variable which will accomplish the same thing.

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