- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fortran.lib(name1.obj) : error LNK2019: unresolved external symbol _for_cpystr referenced in function _NAME1
Fortran.lib(name2.obj) : error LNK2019: unresolved external symbol _for_emit_diagnostic referenced in function _NAME2
etc
dfor.lib(for_diags.obj) : error LNK2005: _for__io_return already defined in libifcore.lib(for_diags_intel.obj)
libifcore.lib(for_m_qwin.obj) : error LNK2019: unresolved external symbol __f_outtext referenced in function __fq_outtext
libifcore.lib(for_m_qwin.obj) : error LNK2019: unresolved external symbol __f_gettextposition referenced in function __fq_gettextposition
libifcore.lib(for_m_qwin.obj) : error LNK2019: unresolved external symbol __f_settextposition referenced in function __fq_settextposition
What should I do?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you have references to dfor.lib, either you are linking in code that was compiled with CVF, or you have an explicit reference to dfor.lib in your project options.
What I suggest you do is this. Remove the libifcore.lib from your options. In the Fortran library project, open the project properties, select Fortran..Libraries and change the value of "Disable default library search rules" from "Yes" to "No". For static library projects, Yes is the default so that you can properly link the library with other Fortran code, but it does pose a problem when you link with non-Fortran code.
Now rebuild the solution. If you still see any references to dfor.lib, make sure that you are not still using any CVF-compiled objects or libraries.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page