- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I had previously been able to build and use an XLL (Excel Add-In) that involved mixed-language programming with IVF 9. Basically, I had a solution (.sln) containing a C project and a Fortran static library. Everything worked great.
Recently, I got a new hard drive and installed Visual Studio 2005 and IVF 10.1 on it. The Fortran integrations with Studio look fine based on information/diagnostics elsewhere on your site.
I double-clicked the .sln and the conversion appeared to go ok. When I try to build I get the following link error:
Error 73 error LNK2019: unresolved external symbol _COKER_WRAPPER@16 referenced in function "struct _oper * __stdcall RUN_COKER(struct _oper *)" (?RUN_COKER@@YGPAU_oper@@PAU1@@Z) xlpxll.obj
What could be the problem? The Fortran static library uses CVF calling convention, Default Name Case Intepretation, String Length Argument Passing - After Individual String Argument, Append Underscore to External Names - No.
I had previously been able to build and use an XLL (Excel Add-In) that involved mixed-language programming with IVF 9. Basically, I had a solution (.sln) containing a C project and a Fortran static library. Everything worked great.
Recently, I got a new hard drive and installed Visual Studio 2005 and IVF 10.1 on it. The Fortran integrations with Studio look fine based on information/diagnostics elsewhere on your site.
I double-clicked the .sln and the conversion appeared to go ok. When I try to build I get the following link error:
Error 73 error LNK2019: unresolved external symbol _COKER_WRAPPER@16 referenced in function "struct _oper * __stdcall RUN_COKER(struct _oper *)" (?RUN_COKER@@YGPAU_oper@@PAU1@@Z) xlpxll.obj
What could be the problem? The Fortran static library uses CVF calling convention, Default Name Case Intepretation, String Length Argument Passing - After Individual String Argument, Append Underscore to External Names - No.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I assume that COKER_WRAPPER is defined in your Fortran project and that it is set as a dependent of the C project. There was a bug in VS2005 that prevented dependent Fortran projects from being linked into a C project. This was fixed by VS2005 SP1, so install that if you haven't already.

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