<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
Hello,
<br />
<br />
I'm trying to compile the Fortran90FullExample using MSVS (Intel Fortran Compiler 2017 and Visual C++ 2015 compiler).
<br />
Doing so I'm getting following linker error:
<br />
<br />
Error LNK2019 unresolved external symbol main referenced in function "int __cdecl
__scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ) Fortran90FullExample.
<br />
<br />
Obviously, the source code doesn't contain a main method at all, since the entry point is given by the fortran program
in file 'FEDriver.f90'.
<br />
Nevertheless, I guess the compiler internally creates a main method, and the linker cannot resolve the reference due to
a name mangling problem, as there are different compilers involved. But I'm not quite sure about that, nor how to solve
it, at that matter.
<br />
<br />
Can you give me a hint how to solve that problem?
<br />
<br />
Kind regards,
<br />
Thomas
</body>
</html>