I call my first email step 1, here are my steps 2, 3 and 4 Step2 My c compiler is pgcc, pgcpp version 9.0-1. My fortran code is compiled using PGF Visual fortran version 9.0-1 I notice that only the code in C++ have errors, no error for code written in C When I use pgcc and pgcpp to build my C library (pgf_clibrary.lib) and link it with Fortran I have a lot of errors: error LNK2019: unresolved external symbol _curr_eh_stack_entry referenced in function _SKR_Get_Weight_Array pgf_clibrary.libĮrror LNK2019: unresolved external symbol _eh_curr_region referenced in function _SKR_Get_Weight_ArrayĮrror LNK2019: unresolved external symbol _nw_FUi referenced in function _SKR_Get_Weight_Array pgf_clibrary.libĮrror LNK2001: unresolved external symbol _nw_FUi pgf_clibrary.libĮrror LNK2001: unresolved external symbol _dl_FPv pgf_clibrary.libĮrror LNK2001: unresolved external symbol _vtbl_Q2_3std9type_info First, I use Microsoft C compiler in Visual Studio 2005 to build the C library and link to Fortran program, No error. I need to link my Fortran program with a library written in C and C++.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |