- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> ifort test.f90 /o test.exe
Intel Fortran Compiler for 32-bit applications, Version 9.1 Build 20071017 Z Package ID: W_FC_C_9.1.039
Copyright (C) 1985-2007 Intel Corporation. All rights reserved.
ifort: warning: Microsoft Visual C++ not found in path
Microsoft Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
-out:test.exe
-subsystem:console
test.obj
LINK : fatal error LNK1104: cannot open file 'LIBC.lib'
~~~~~~~~~ test.f90
program test
implicit none
print(*,*) 'Hello World'
end program test
Since I have VS2010, I use command prompt to get exe. Can someone help me to overcome this error?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you do not have a compatible version of Microsoft C or a Microsoft SDK (Platform SDK, Device Driver Kit), you cannot build Fortran programs.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you do not have a compatible version of Microsoft C or a Microsoft SDK (Platform SDK, Device Driver Kit), you cannot build Fortran programs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you compile (or have compiled) with neither option, the default in older versions of Intel Fortran was to compile for LIBC.LIB. It is best to recompile your sources as well as to rebuild any user libraries with the /MD or /MT options rather than rely upon the /nodefaultlib:... link
er option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
mecej4 - Thanks very much. I'm getting the exe with /MT.
/MT option is for multi-threads. Will it affect my output in anyway or it doesn't matter? If yes, how can I prevent/mitigate it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Both the /MT and /MD options produce code that is capable of running with multiple threads.
Using /MT makes your EXE self-contained, and probably a little faster.
Using /MD makes your EXE depend on MSVCR??.DLL. The EXE will be smaller in size, but may run a little slower because of the need to load and map routines in the DLL, and to execute the little bit of glue code involved.
Unless your code contains threading errors, the results will be the same whether you use static or dynamic libraries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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