I have a problem with the linking the tecio.lib. I am trying to write a code to generate .plt file for tecplot. The first thing I am trying is making the simtest.f90 work.
I am using VS2010, Intel Fortran Compiler, Techplot2011R2 on a win 7 64 system.
What I did was:
1. create a project, add simtest.f90 (which will call tecini112, tecdat112, teczne112 and tecend112) as a source file and copy the tecio.f90 under the project folder and make sure include "simtest.f90" works. (I also have checked the names of subroutines in the tecio.f90 have a version 112, e.g. teczne112)
2. Add the path to tecio.lib and use tecio.lib. The file is saved under:
"C:\Program Files\Tecplot\Tecplot Chorus 2011 R2\tecplot360\bin"
a) Project --> Properties --> Linker-->General, add "C:\Program Files\Tecplot\Tecplot Chorus 2011 R2\tecplot360\bin" to the "Additional Library Directories";(this tells the linker where to search)
b) Project --> Properties --> Linker-->Input, add "tecio.lib" to the "Additional Dependencies";(this tells the linker which .lib will be used)
3. Click "Build".
Error msgs are:
error LNK2019: Unresolved external symbol _tecend112@0 referenced...
error LNk2019: Unresolved external symbol _tecdat112@12 referenced...
error LNk2019: Unresolved external symbol _teczne112@84 referenced...
error LNk2019: Unresolved external symbol _tecini112@28 referenced...
Anyone can help me out please. I tried everything I can but it still not working. (I thought this may be the fortran issue, so I even tried to create a new cpp project and use the simtest.c and use TECXXX.h, still the similar problem, unresolved external symbols).