- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
----------------
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!
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!
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks as if you created this as a Console Application project. You want a Library > DLL project instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It would appear to be the Fortran project that is being built as a console application.

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