Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29238 Discussions

Undefined symbol _MAIN_ (libifcoremd.lib)

ijjys
Beginner
956 Views
Hi,

I`m having this linking error compiling a Fortran project on a Visual studio 2008 solution. The project contains several files, but w/o any entry point... onlya bunch of subroutines packed on a library...

----------------

/OUT:......dll

/VERSION:2.0

/LIBPATH:...
/LIBPATH:....
/MANIFEST

/MANIFESTFILE:.....manifest

/SUBSYSTEM:CONSOLE

/IMPLIB:........lib

----------------------------

4>libifcoremd.lib(for_main.obj) : error LNK2019: smbolo externo _MAIN__ sin resolver al que se hace referencia en la funcin _main

My ifort configuration:

Intel Visual Fortran Compiler Professional for applications running on IA-32, Version 11.1 Build 20100806 Package ID: w_cprof_p_11.1.067


My library doesn`t need a main or program entry point...
Thanks in advance!
0 Kudos
3 Replies
Steven_L_Intel1
Employee
956 Views
It looks as if you created this as a Console Application project. You want a Library > DLL project instead.
0 Kudos
ijjys
Beginner
956 Views
Ok, in this case I think cmake is not creating the correct type of project, or the conversor vc++ -> Intel project is not doing it well... any idea?

Thanks again
0 Kudos
Steven_L_Intel1
Employee
956 Views
It would appear to be the Fortran project that is being built as a console application.
0 Kudos
Reply