I have createda source code in VC++ .NET and I would like to use legacy Fortran subroutines. Here are the steps I have taken thus far:
1. Successfully compiled VC++ source code without calls to VF subroutines.
2. Under Project Menu, I selected "Add Existing Item to Project" where I selected my legacy VF subroutine.
3. I added the "extern" command -
extern "C" void lsqfit_(float a, float b, int c, int d);
4. I added the call line -
5. I compiled successfully.
6. When I tried to build the solution, I got the following error -
unresolved external symbol "void __cdecl LSQFIT_(float.......