- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Compiling and linking a trivial program
program dummy
end
by
ifort dummy.f /iface:stdcall
fails with
Intel Fortran Compiler for 32-bit applications, Version 8.0 Build 20031017Z Package ID: w_fc_p_8.0.035
Copyright (C) 1985-2003 Intel Corporation. All rights reserved.
Microsoft Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
-out:dummy.exe
-subsystem:console
-entry:mainCRTStartup
dummy.obj
libifcore.lib(libifcoremain.obj) : error LNK2019: unresolved external symbol _MAIN__ referenced in function _main
dummy.exe : fatal error LNK1120: 1 unresolved externals
Huh? Without /iface:stdcall all is fine.
Actually, what I am trying to do is to make a DLL with ifort 8.0
to replace an existing DLL what was built by CFV6.6 and is called from main built also by CVF6.6
program dummy
end
by
ifort dummy.f /iface:stdcall
fails with
Intel Fortran Compiler for 32-bit applications, Version 8.0 Build 20031017Z Package ID: w_fc_p_8.0.035
Copyright (C) 1985-2003 Intel Corporation. All rights reserved.
Microsoft Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
-out:dummy.exe
-subsystem:console
-entry:mainCRTStartup
dummy.obj
libifcore.lib(libifcoremain.obj) : error LNK2019: unresolved external symbol _MAIN__ referenced in function _main
dummy.exe : fatal error LNK1120: 1 unresolved externals
Huh? Without /iface:stdcall all is fine.
Actually, what I am trying to do is to make a DLL with ifort 8.0
to replace an existing DLL what was built by CFV6.6 and is called from main built also by CVF6.6
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Amusing. Please submit this to Intel support. This shouldn't prevent you from building a DLL, though. You don't want /iface:stdcall - use /iface:cvf instead. There's some significant differences.

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