Hi,<br><br>I`m having this linking error compiling a Fortran project on a
Visual studio 2008 solution with cmake 2.8.2. The project contains several files, but
w/o any entry point... only a bunch of subroutines packed on a
library...<br><br>----------------<br><p>/OUT:......dll </p><p>/VERSION:2.0
</p><p>/LIBPATH:...<br>/LIBPATH:....<br>/MANIFEST </p><p>/MANIFESTFILE:.....manifest
</p><p>/SUBSYSTEM:CONSOLE </p><p>/IMPLIB:........lib </p>----------------------------<br><br>4>libifcoremd.lib(for_main.obj)
: error LNK2019: símbolo externo _MAIN__ sin resolver al que se hace
referencia en la función _main<br><br>My ifort configuration:<br><br>Intel(R)
Visual Fortran Compiler Professional for applications running on IA-32,
Version 11.1 Build 20100806 Package ID: w_cprof_p_11.1.067<br><br><br>My
library doesn`t need a main or program entry point, but cmake seems to not create it like a "Fortran dynamic-link library"... or msvc++ -> Intel compiler project converter is doing it wrong. My questions are:<br>
<br><br>1) How to automatize the conversion from msvc++ project to Intel compiler only running cmake (C++)?<br>2) How to "say" cmake that I want a "Fortran dynamic-link library"? In c++ projects this works fine!<br>
<br>Thanks in
advance!<br><br><br>