GiDpost linking error
Posted: Fri Feb 16, 2018 11:52 am
Dear GiD-community,
i wrote an inhouse finite element code in Fortran 2003.
Searching for a post-processor i came across GiD and was instantly confinced
after i found out, that a fortran interface to GiDpost is provided as well.
Unfortunately i was stopped by some linking errors and was not able to solve them.
So i am hoping, one of you can help me...
I am using Visual Studio 2012 and the Intel(R) Visual Fortran Compiler 17.0.4.210
To link GiDpost to the code i folloewd these steps:
1) Add the gidpost.f90 file to the source files of the program
2.1) Link the library path: Linker -> General -> Additional Library Dependencies -> path_to_libraries
2.2) Link the library files: Linker -> Input -> Additional Dependencies -> gidpost.lib zlib.lib hdf5.lib
3) Create a module output containing the subroutine write_output_file that loads the gidpost module: use gidpost
4) Compile (Debug mode)
The errors can be seen in this here:
I also tried to compile and run the provided example testpost_fd.f90, but the results are similar:
i actually tried also to just dump the *.lib files in the source files directory. The roors were the same.
the fortran module can be found here: Thank you!
Edit: Sorry, somehow the attachments were arranged wrong.
i wrote an inhouse finite element code in Fortran 2003.
Searching for a post-processor i came across GiD and was instantly confinced
after i found out, that a fortran interface to GiDpost is provided as well.
Unfortunately i was stopped by some linking errors and was not able to solve them.
So i am hoping, one of you can help me...
I am using Visual Studio 2012 and the Intel(R) Visual Fortran Compiler 17.0.4.210
To link GiDpost to the code i folloewd these steps:
1) Add the gidpost.f90 file to the source files of the program
2.1) Link the library path: Linker -> General -> Additional Library Dependencies -> path_to_libraries
2.2) Link the library files: Linker -> Input -> Additional Dependencies -> gidpost.lib zlib.lib hdf5.lib
3) Create a module output containing the subroutine write_output_file that loads the gidpost module: use gidpost
4) Compile (Debug mode)
The errors can be seen in this here:
I also tried to compile and run the provided example testpost_fd.f90, but the results are similar:
i actually tried also to just dump the *.lib files in the source files directory. The roors were the same.
the fortran module can be found here: Thank you!
Edit: Sorry, somehow the attachments were arranged wrong.