- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a compiler option to specify OpenMP static libraries be used instead of DLL? My project uses the default /lib:static option (or at least I assume it is using the default since no /lib option is specified) and /Qopenmp option. The executable requires libguide40.dll. I couldn't find any documentation as to how I can have the executable statically linked to libguide40.lib.
Thanks for any info.
Thanks for any info.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On certain platforms, the link command
ifort -Qopenmp -i-static
will link just the required ifort libraries statically. On others, it may work the same as -static.
You may also try libguide.lib on the link line, or use the -# option to examine the command sent to the linker in case you want to modify it.
ifort -Qopenmp -i-static
will link just the required ifort libraries statically. On others, it may work the same as -static.
You may also try libguide.lib on the link line, or use the -# option to examine the command sent to the linker in case you want to modify it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On Windows, the switch that is relevant is /libs, which has a value of static or dll. I tried an example, and the static form of OpenMP was linked in by default - specifying /libs:dll caused the DLL form to be linked in.
Note that if you are creating a DLL in the VS.NET IDE, you will get /libs:dll set for you by default. You can change this in the Libraries property page of the project.
Note that if you are creating a DLL in the VS.NET IDE, you will get /libs:dll set for you by default. You can change this in the Libraries property page of the project.
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