Dear Frank,
I've created a main function to solve heat transfer problem by using some of the OpenSees classes. In my main file, I included the following two headers.
#include <BandGenLinSOE.h>
#include <BandGenLinLapackSolver.h>;
Then I got massive errors related to blas.lib and lapack.lib. Seems the two are Fortran libraries and I have no idea how to get the problem handled. Could you plz give some hints about the solutions? Thanks a lot .
1>------ Build started: Project: htmain, Configuration: Debug Win32 ------
1>Linking...
1>blas.lib(dtrmv.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>blas.lib(idamax.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>blas.lib(dscal.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>blas.lib(dcopy.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>blas.lib(dtrmm.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>blas.lib(dtbsv.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>blas.lib(dgemv.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>blas.lib(dgemm.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>blas.lib(dtrsm.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>lapack.lib(dgbtf2.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>lapack.lib(dtrti2.obj) : error LNK2019: unresolved external symbol _for_emit_diagnostic referenced in function _DTRTI2
1>blas.lib(dswap.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>blas.lib(dger.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>lapack.lib(ilaenv.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>lapack.lib(dtrtri.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>lapack.lib(dgetf2.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>lapack.lib(dlaswp.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>lapack.lib(dgbtrs.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>lapack.lib(dgetri.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>lapack.lib(dgetrf.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>lapack.lib(dgbtrf.obj) : error LNK2001: unresolved external symbol _for_emit_diagnostic
1>lapack.lib(xerbla.obj) : error LNK2019: unresolved external symbol _for_write_seq_fmt referenced in function _XERBLA
1>lapack.lib(xerbla.obj) : error LNK2019: unresolved external symbol _for_write_seq_fmt_xmit referenced in function _XERBLA
1>lapack.lib(xerbla.obj) : error LNK2019: unresolved external symbol _for_stop_core referenced in function _XERBLA
1>lapack.lib(ilaenv.obj) : error LNK2019: unresolved external symbol _for_cpystr referenced in function _ILAENV
1>lapack.lib(dtrtri.obj) : error LNK2019: unresolved external symbol _for_concat referenced in function _DTRTRI
1>..\..\..\EXAMPLES\ht example\htmain.exe : fatal error LNK1120: 6 unresolved externals
1>Build log was saved at "file://n:\myhome\OpenSees\Win32\obj\htmain\debug\BuildLog.htm"
1>htmain - 27 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 7 up-to-date, 0 skipped ==========
linking errors to SOE and Solver
Moderators: silvia, selimgunay, Moderators
-
- Posts: 25
- Joined: Mon Sep 21, 2009 1:59 am
- Location: UoE
Re: linking errors to SOE and Solver
looks like it is missing some standard fortran libraries that are not linked when you use a c++ compiler
-
- Posts: 25
- Joined: Mon Sep 21, 2009 1:59 am
- Location: UoE
Re: linking errors to SOE and Solver
fmk wrote:
> looks like it is missing some standard fortran libraries that are not
> linked when you use a c++ compiler
Frank,
Thanks for your reply. I included additional libraries supplied in the OpenSees lib folder. The problem was almost solved, almost.... but still have 2 errors:
1>------ Build started: Project: htmain, Configuration: Debug Win32 ------
1>Linking...
1>libm.lib(libm_error.obj) : error LNK2019: unresolved external symbol _errno referenced in function ___libm_error_support
1>..\..\..\EXAMPLES\ht example\htmain.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://n:\myhome\OpenSees\Win32\obj\htmain\debug\BuildLog.htm"
1>htmain - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 8 up-to-date, 0 skipped ==========
How should I deal with those two errors? Thanks again for your further comments : )
> looks like it is missing some standard fortran libraries that are not
> linked when you use a c++ compiler
Frank,
Thanks for your reply. I included additional libraries supplied in the OpenSees lib folder. The problem was almost solved, almost.... but still have 2 errors:
1>------ Build started: Project: htmain, Configuration: Debug Win32 ------
1>Linking...
1>libm.lib(libm_error.obj) : error LNK2019: unresolved external symbol _errno referenced in function ___libm_error_support
1>..\..\..\EXAMPLES\ht example\htmain.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://n:\myhome\OpenSees\Win32\obj\htmain\debug\BuildLog.htm"
1>htmain - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 8 up-to-date, 0 skipped ==========
How should I deal with those two errors? Thanks again for your further comments : )
-
- Posts: 25
- Joined: Mon Sep 21, 2009 1:59 am
- Location: UoE
Re: linking errors to SOE and Solver
fmk wrote:
> looks like it is missing some standard fortran libraries that are not
> linked when you use a c++ compiler
problem solved, bunch of thanks
> looks like it is missing some standard fortran libraries that are not
> linked when you use a c++ compiler
problem solved, bunch of thanks