Building levmar.lib with CLAPACK for Windows: Unresolved ext

Post here if you are having problem installing LAPACK on a Windows machine

Building levmar.lib with CLAPACK for Windows: Unresolved ext

Postby mbadawi23 » Thu Sep 10, 2009 4:48 pm

Hello all,
I really hope I can find some help here.
My goal is to build levmar.lib for Windows to be used in numerical analysis apps. Here is what I have done so far:
- Library versions: levmar 2.3, CLAPACK 3.1.1
- Downloaded CLAPACK for MSVC and using ready-built libraries in 'LIB' folder.
- Modifications to levmar Makefile.vc:
Code: Select all
LAPACKLIBS_PATH=C:\MB\ExternalLibraries\levmar\levmar-2.3\LIB

Code: Select all
#LAPACKLIBS=clapack.lib blas.lib libF77.lib libI77.lib
LAPACKLIBS=clapack.lib cblaswrap.lib libf2c.lib tmglib.lib

- Build levmar.lib:
Code: Select all
nmake /f Makefile.vc levmar.lib

- Build finishes no problems.
- Now I try to build the demo program from levmar:
Code: Select all
nmake /f Makefile.vc lmdemo.exe

- I get the following errors:
Code: Select all
LIBCMT.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(dosmap.obj) : error LNK2005: __errno already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __cexit already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(mlock.obj) : error LNK2005: __unlock already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(mlock.obj) : error LNK2005: __lock already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(setlocal.obj) : error LNK2005: __configthreadlocale already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(winsig.obj) : error LNK2005: _signal already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0.obj) : error LNK2005: _mainCRTStartup already defined in MSVCRT.lib(crtexe.obj)
LIBCMT.lib(errmode.obj) : error LNK2005: ___set_app_type already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(atox.obj) : error LNK2005: _atoi already defined in MSVCRT.lib(MSVCR90.dll)
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
levmar.lib(misc.obj) : error LNK2019: unresolved external symbol _sgemm_ referenced in function _slevmar_trans_mat_mat_mult
levmar.lib(misc.obj) : error LNK2019: unresolved external symbol _dgemm_ referenced in function _dlevmar_trans_mat_mat_mult
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sdot referenced in function _f2c_sdot
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ddot referenced in function _f2c_ddot
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cdotu_sub referenced in function _f2c_cdotu
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cdotc_sub referenced in function _f2c_cdotc
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zdotu_sub referenced in function _f2c_zdotu
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zdotc_sub referenced in function _f2c_zdotc
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_snrm2 referenced in function _f2c_snrm2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sasum referenced in function _f2c_sasum
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dnrm2 referenced in function _f2c_dnrm2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dasum referenced in function _f2c_dasum
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_scnrm2 referenced in function _f2c_scnrm2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_scasum referenced in function _f2c_scasum
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dznrm2 referenced in function _f2c_dznrm2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dzasum referenced in function _f2c_dzasum
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_isamax referenced in function _f2c_isamax
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_idamax referenced in function _f2c_idamax
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_icamax referenced in function _f2c_icamax
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_izamax referenced in function _f2c_izamax
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sswap referenced in function _f2c_sswap
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_scopy referenced in function _f2c_scopy
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_saxpy referenced in function _f2c_saxpy
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dswap referenced in function _f2c_dswap
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dcopy referenced in function _f2c_dcopy
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_daxpy referenced in function _f2c_daxpy
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cswap referenced in function _f2c_cswap
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ccopy referenced in function _f2c_ccopy
...
And the list goes on!
- I tried to use /NODEFAULTLIB:MSVCRT and /NODEFAULTLIB:LIBCMT to try to fix the first problem, but it only introduced this:
Code: Select all
libf2c.lib(wrtfmt1.obj) : error LNK2001: unresolved external symbol __fltused
libf2c.lib(wref1.obj) : error LNK2019: unresolved external symbol __fltused referenced in function _wrt_E
libf2c.lib(pow_ri1.obj) : error LNK2001: unresolved external symbol __fltused
libf2c.lib(d_sign1.obj) : error LNK2001: unresolved external symbol __fltused
libf2c.lib(pow_di1.obj) : error LNK2001: unresolved external symbol __fltused
libf2c.lib(i_nint1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlazq41.obj) : error LNK2001: unresolved external symbol __fltused
cblaswrap.lib(cblaswr.obj) : error LNK2001: unresolved external symbol __fltused
libf2c.lib(r_sign1.obj) : error LNK2001: unresolved external symbol __fltused
libf2c.lib(pow_dd1.obj) : error LNK2001: unresolved external symbol __fltused
...
And the list goes on..

Now, I understand that __fltused is part of msvcrt.lib!
I don't know what is the right way to build levmar.lib or what libraries to link in while building levmar to get it right.

Appreciate any help, thank you.
mbadawi23
 
Posts: 11
Joined: Fri Feb 06, 2009 1:16 pm

Re: Building levmar.lib with CLAPACK for Windows: Unresolved ext

Postby Julie » Thu Sep 10, 2009 4:52 pm

You need the BLAS library and the F2C library.
They are in the CLAPACK package.
Julie
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado

Re: Building levmar.lib with CLAPACK for Windows: Unresolved ext

Postby mbadawi23 » Fri Sep 11, 2009 11:13 am

Julie wrote:You need the BLAS library and the F2C library.
They are in the CLAPACK package.
Julie


Thanks Julie,
This is what I have in the make file after your reply:
Code: Select all
LAPACKLIBS=clapack.lib cblaswrap.lib libf2c.lib tmglib.lib

Now I still get the unresolved externals because the /NODEFAULTLIB switch I have to resolve library conflicts. Any ideas?
mbadawi23
 
Posts: 11
Joined: Fri Feb 06, 2009 1:16 pm

Re: Building levmar.lib with CLAPACK for Windows: Unresolved ext

Postby Julie » Fri Sep 11, 2009 11:17 am

Try this.
Code: Select all
LAPACKLIBS=clapack.lib cblaswrap.lib BLAS.lib libf2c.lib

You will need also the /NODEFAULTLIB:LIBCMT
Please copy/paste your error, so I can see what you are missing if it does not work.

Julie
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado

Re: Building levmar.lib with CLAPACK for Windows: Unresolved ext

Postby mbadawi23 » Fri Sep 11, 2009 11:45 am

So, I did as you suggested, also I made sure to build the executable with:
Code: Select all
 /NODEFAULTLIB:MSVCRT /NODEFAULTLIB:LIBCMT

And here is what I got back:
Code: Select all
   cl /nologo lmdemo.obj /link /subsystem:console /opt:ref /libpath:C:\MB\ExternalLibraries\levmar\levmar-2.3\LIB /libpath:. /NODEFAULTLIB:MSVCRT /NODEFAULTLIB:LIBCMT /out:lmdemo.exe levmar.lib clapack.lib cblaswrap.lib BLAS.lib libf2c.lib

libf2c.lib(wrtfmt1.obj) : error LNK2001: unresolved external symbol __fltused
libf2c.lib(wref1.obj) : error LNK2019: unresolved external symbol __fltused referenced in function _wrt_E
libf2c.lib(pow_ri1.obj) : error LNK2001: unresolved external symbol __fltused
libf2c.lib(d_sign1.obj) : error LNK2001: unresolved external symbol __fltused
libf2c.lib(pow_di1.obj) : error LNK2001: unresolved external symbol __fltused
libf2c.lib(i_nint1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlazq41.obj) : error LNK2001: unresolved external symbol __fltused
cblaswrap.lib(cblaswr.obj) : error LNK2001: unresolved external symbol __fltused
libf2c.lib(r_sign1.obj) : error LNK2001: unresolved external symbol __fltused
libf2c.lib(pow_dd1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slasq51.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slazq41.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlasq61.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlasq51.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slapy21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slazq31.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlazq31.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slasq61.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dorm2r1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlasq21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlasrt1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlapy21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sorm2r1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slasq21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slasrt1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dorml21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlarfg1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slarf1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slarfg1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sorml21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dgebd21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlabrd1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlassq1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlarf1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlasv21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlasr1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlartg1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlasq11.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dgelq21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dormlq1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dormqr1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlas21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slassq1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(iparmq1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(ieeeck1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dorgl21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slartg1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slasq11.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sgebd21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slabrd1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sormqr1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slas21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slasv21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slasr1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sgetf21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sorgl21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sgelq21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sormlq1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slarft1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sorg2r1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sgeqr21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slaswp1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dgeqr21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlaswp1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dgetf21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slarfb1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlamch.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlarfb1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlarft1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dorg2r1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dgebrd1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlaset1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlascl1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlange1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dormbr1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dlacpy1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dbdsqr1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dorgbr1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slamch.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(ilaenv1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dorglq1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dgelqf1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sgebrd1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slaset1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slascl1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slange1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sormbr1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(slacpy1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sbdsqr1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sorgbr1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sorgqr1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sgeqrf1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sorglq1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sgelqf1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dtrtrs1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dorgqr1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dgeqrf1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(strtrs1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(sgesvd1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(spotf21.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dgesvd1.obj) : error LNK2001: unresolved external symbol __fltused
clapack.lib(dpotf21.obj) : error LNK2001: unresolved external symbol __fltused
lmdemo.obj : error LNK2001: unresolved external symbol __fltused
levmar.lib(lm.obj) : error LNK2001: unresolved external symbol __fltused
levmar.lib(misc.obj) : error LNK2001: unresolved external symbol __fltused
levmar.lib(Axb.obj) : error LNK2001: unresolved external symbol __fltused
lmdemo.obj : error LNK2019: unresolved external symbol __CIsqrt referenced in function _wood
levmar.lib(misc.obj) : error LNK2001: unresolved external symbol __CIsqrt
lmdemo.obj : error LNK2019: unresolved external symbol __CIexp referenced in function _meyer
lmdemo.obj : error LNK2019: unresolved external symbol __CIatan referenced in function _helval
lmdemo.obj : error LNK2019: unresolved external symbol __imp__free referenced in function _main
levmar.lib(lm.obj) : error LNK2001: unresolved external symbol __imp__free
levmar.lib(misc.obj) : error LNK2001: unresolved external symbol __imp__free
levmar.lib(Axb.obj) : error LNK2001: unresolved external symbol __imp__free
lmdemo.obj : error LNK2019: unresolved external symbol __imp__printf referenced in function _main
lmdemo.obj : error LNK2019: unresolved external symbol __imp__exit referenced in function _main
levmar.lib(lm.obj) : error LNK2001: unresolved external symbol __imp__exit
levmar.lib(misc.obj) : error LNK2001: unresolved external symbol __imp__exit
levmar.lib(Axb.obj) : error LNK2001: unresolved external symbol __imp__exit
lmdemo.obj : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _main
levmar.lib(lm.obj) : error LNK2001: unresolved external symbol __imp__fprintf
levmar.lib(misc.obj) : error LNK2001: unresolved external symbol __imp__fprintf
levmar.lib(Axb.obj) : error LNK2001: unresolved external symbol __imp__fprintf
lmdemo.obj : error LNK2019: unresolved external symbol __imp____iob_func referenced in function _main
levmar.lib(lm.obj) : error LNK2001: unresolved external symbol __imp____iob_func
levmar.lib(misc.obj) : error LNK2001: unresolved external symbol __imp____iob_func
levmar.lib(Axb.obj) : error LNK2001: unresolved external symbol __imp____iob_func
lmdemo.obj : error LNK2019: unresolved external symbol __imp__malloc referenced in function _main
levmar.lib(lm.obj) : error LNK2001: unresolved external symbol __imp__malloc
levmar.lib(misc.obj) : error LNK2001: unresolved external symbol __imp__malloc
levmar.lib(Axb.obj) : error LNK2001: unresolved external symbol __imp__malloc
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
levmar.lib(lm.obj) : error LNK2019: unresolved external symbol __imp___finite referenced in function _slevmar_der
levmar.lib(misc.obj) : error LNK2019: unresolved external symbol _sgemm_ referenced in function _slevmar_trans_mat_mat_mult
levmar.lib(misc.obj) : error LNK2019: unresolved external symbol __CIlog10 referenced in function _slevmar_chkjac
levmar.lib(misc.obj) : error LNK2019: unresolved external symbol _dgemm_ referenced in function _dlevmar_trans_mat_mat_mult
clapack.lib(slazq31.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(dlazq31.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(slazq41.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(dlazq41.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(slasq21.obj) : error LNK2019: unresolved external symbol _sqrt referenced in function _slasq2_
clapack.lib(dlasq21.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(dlapy21.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(slapy21.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(dlas21.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(dlasv21.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(dlartg1.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(dlasq11.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(slas21.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(slasv21.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(slartg1.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(slasq11.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(sbdsqr1.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(slange1.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(dbdsqr1.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(dlange1.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(sgesvd1.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(spotf21.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(dgesvd1.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(dpotf21.obj) : error LNK2001: unresolved external symbol _sqrt
clapack.lib(dlartg1.obj) : error LNK2001: unresolved external symbol __ftol2_sse
libf2c.lib(i_nint1.obj) : error LNK2001: unresolved external symbol __ftol2_sse
clapack.lib(slamch.obj) : error LNK2019: unresolved external symbol __ftol2_sse referenced in function _slamc1_
clapack.lib(ilaenv1.obj) : error LNK2001: unresolved external symbol __ftol2_sse
clapack.lib(dlamch.obj) : error LNK2001: unresolved external symbol __ftol2_sse
clapack.lib(slartg1.obj) : error LNK2001: unresolved external symbol __ftol2_sse
clapack.lib(slamch.obj) : error LNK2019: unresolved external symbol _printf referenced in function _slamc2_
clapack.lib(xerbla1.obj) : error LNK2001: unresolved external symbol _printf
clapack.lib(slartg1.obj) : error LNK2019: unresolved external symbol _log referenced in function _slartg_
clapack.lib(iparmq1.obj) : error LNK2001: unresolved external symbol _log
clapack.lib(dlartg1.obj) : error LNK2001: unresolved external symbol _log
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sdot referenced in function _f2c_sdot
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ddot referenced in function _f2c_ddot
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cdotu_sub referenced in function _f2c_cdotu
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cdotc_sub referenced in function _f2c_cdotc
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zdotu_sub referenced in function _f2c_zdotu
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zdotc_sub referenced in function _f2c_zdotc
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_snrm2 referenced in function _f2c_snrm2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sasum referenced in function _f2c_sasum
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dnrm2 referenced in function _f2c_dnrm2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dasum referenced in function _f2c_dasum
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_scnrm2 referenced in function _f2c_scnrm2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_scasum referenced in function _f2c_scasum
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dznrm2 referenced in function _f2c_dznrm2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dzasum referenced in function _f2c_dzasum
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_isamax referenced in function _f2c_isamax
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_idamax referenced in function _f2c_idamax
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_icamax referenced in function _f2c_icamax
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_izamax referenced in function _f2c_izamax
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sswap referenced in function _f2c_sswap
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_scopy referenced in function _f2c_scopy
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_saxpy referenced in function _f2c_saxpy
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dswap referenced in function _f2c_dswap
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dcopy referenced in function _f2c_dcopy
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_daxpy referenced in function _f2c_daxpy
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cswap referenced in function _f2c_cswap
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ccopy referenced in function _f2c_ccopy
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_caxpy referenced in function _f2c_caxpy
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zswap referenced in function _f2c_zswap
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zcopy referenced in function _f2c_zcopy
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zaxpy referenced in function _f2c_zaxpy
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_srotg referenced in function _f2c_srotg
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_srot referenced in function _f2c_srot
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_drotg referenced in function _f2c_drotg
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_drot referenced in function _f2c_drot
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sscal referenced in function _f2c_sscal
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dscal referenced in function _f2c_dscal
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cscal referenced in function _f2c_cscal
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zscal referenced in function _f2c_zscal
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_csscal referenced in function _f2c_csscal
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zdscal referenced in function _f2c_zdscal
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sgemv referenced in function _f2c_sgemv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sgbmv referenced in function _f2c_sgbmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_strmv referenced in function _f2c_strmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_stbmv referenced in function _f2c_stbmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_stpmv referenced in function _f2c_stpmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_strsv referenced in function _f2c_strsv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_stbsv referenced in function _f2c_stbsv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_stpsv referenced in function _f2c_stpsv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dgemv referenced in function _f2c_dgemv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dgbmv referenced in function _f2c_dgbmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dtrmv referenced in function _f2c_dtrmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dtbmv referenced in function _f2c_dtbmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dtpmv referenced in function _f2c_dtpmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dtrsv referenced in function _f2c_dtrsv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dtbsv referenced in function _f2c_dtbsv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dtpsv referenced in function _f2c_dtpsv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cgemv referenced in function _f2c_cgemv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cgbmv referenced in function _f2c_cgbmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ctrmv referenced in function _f2c_ctrmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ctbmv referenced in function _f2c_ctbmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ctpmv referenced in function _f2c_ctpmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ctrsv referenced in function _f2c_ctrsv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ctbsv referenced in function _f2c_ctbsv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ctpsv referenced in function _f2c_ctpsv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zgemv referenced in function _f2c_zgemv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zgbmv referenced in function _f2c_zgbmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ztrmv referenced in function _f2c_ztrmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ztbmv referenced in function _f2c_ztbmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ztpmv referenced in function _f2c_ztpmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ztrsv referenced in function _f2c_ztrsv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ztbsv referenced in function _f2c_ztbsv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ztpsv referenced in function _f2c_ztpsv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ssymv referenced in function _f2c_ssymv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ssbmv referenced in function _f2c_ssbmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sspmv referenced in function _f2c_sspmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sger referenced in function _f2c_sger
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ssyr referenced in function _f2c_ssyr
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sspr referenced in function _f2c_sspr
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ssyr2 referenced in function _f2c_ssyr2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sspr2 referenced in function _f2c_sspr2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dsymv referenced in function _f2c_dsymv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dsbmv referenced in function _f2c_dsbmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dspmv referenced in function _f2c_dspmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dger referenced in function _f2c_dger
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dsyr referenced in function _f2c_dsyr
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dspr referenced in function _f2c_dspr
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dsyr2 referenced in function _f2c_dsyr2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dspr2 referenced in function _f2c_dspr2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_chemv referenced in function _f2c_chemv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_chbmv referenced in function _f2c_chbmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_chpmv referenced in function _f2c_chpmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cgeru referenced in function _f2c_cgeru
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cgerc referenced in function _f2c_cgerc
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cher referenced in function _f2c_cher
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_chpr referenced in function _f2c_chpr
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cher2 referenced in function _f2c_cher2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_chpr2 referenced in function _f2c_chpr2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zhemv referenced in function _f2c_zhemv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zhbmv referenced in function _f2c_zhbmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zhpmv referenced in function _f2c_zhpmv
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zgeru referenced in function _f2c_zgeru
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zgerc referenced in function _f2c_zgerc
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zher referenced in function _f2c_zher
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zhpr referenced in function _f2c_zhpr
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zher2 referenced in function _f2c_zher2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zhpr2 referenced in function _f2c_zhpr2
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_sgemm referenced in function _f2c_sgemm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ssymm referenced in function _f2c_ssymm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ssyrk referenced in function _f2c_ssyrk
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ssyr2k referenced in function _f2c_ssyr2k
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_strmm referenced in function _f2c_strmm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_strsm referenced in function _f2c_strsm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dgemm referenced in function _f2c_dgemm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dsymm referenced in function _f2c_dsymm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dsyrk referenced in function _f2c_dsyrk
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dsyr2k referenced in function _f2c_dsyr2k
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dtrmm referenced in function _f2c_dtrmm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_dtrsm referenced in function _f2c_dtrsm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cgemm referenced in function _f2c_cgemm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_csymm referenced in function _f2c_csymm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_csyrk referenced in function _f2c_csyrk
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_csyr2k referenced in function _f2c_csyr2k
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ctrmm referenced in function _f2c_ctrmm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ctrsm referenced in function _f2c_ctrsm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zgemm referenced in function _f2c_zgemm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zsymm referenced in function _f2c_zsymm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zsyrk referenced in function _f2c_zsyrk
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zsyr2k referenced in function _f2c_zsyr2k
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ztrmm referenced in function _f2c_ztrmm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_ztrsm referenced in function _f2c_ztrsm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_chemm referenced in function _f2c_chemm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cherk referenced in function _f2c_cherk
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_cher2k referenced in function _f2c_cher2k
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zhemm referenced in function _f2c_zhemm
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zherk referenced in function _f2c_zherk
cblaswrap.lib(cblaswr.obj) : error LNK2019: unresolved external symbol _cblas_zher2k referenced in function _f2c_zher2k
libf2c.lib(s_cat1.obj) : error LNK2019: unresolved external symbol _free referenced in function _s_cat
libf2c.lib(open1.obj) : error LNK2001: unresolved external symbol _free
libf2c.lib(close1.obj) : error LNK2001: unresolved external symbol _free
libf2c.lib(s_cat1.obj) : error LNK2019: unresolved external symbol _memcpy referenced in function _s_cat
libf2c.lib(s_cat1.obj) : error LNK2019: unresolved external symbol _memset referenced in function _s_cat
libf2c.lib(s_copy1.obj) : error LNK2001: unresolved external symbol _memset
libf2c.lib(util1.obj) : error LNK2001: unresolved external symbol _memset
libf2c.lib(pow_dd1.obj) : error LNK2019: unresolved external symbol _pow referenced in function _pow_dd
libf2c.lib(open1.obj) : error LNK2001: unresolved external symbol __errno
libf2c.lib(wrtfmt1.obj) : error LNK2019: unresolved external symbol __errno referenced in function _mv_cur
libf2c.lib(endfile1.obj) : error LNK2001: unresolved external symbol __errno
libf2c.lib(sfe1.obj) : error LNK2001: unresolved external symbol __errno
libf2c.lib(fmt1.obj) : error LNK2001: unresolved external symbol __errno
libf2c.lib(wsfe1.obj) : error LNK2001: unresolved external symbol __errno
libf2c.lib(err1.obj) : error LNK2001: unresolved external symbol __errno
libf2c.lib(wrtfmt1.obj) : error LNK2001: unresolved external symbol _fprintf
libf2c.lib(fmt1.obj) : error LNK2019: unresolved external symbol _fprintf referenced in function _op_gen
libf2c.lib(f77_aloc1.obj) : error LNK2001: unresolved external symbol _fprintf
libf2c.lib(err1.obj) : error LNK2001: unresolved external symbol _fprintf
libf2c.lib(sig_die1.obj) : error LNK2001: unresolved external symbol _fprintf
libf2c.lib(wrtfmt1.obj) : error LNK2001: unresolved external symbol ___iob_func
libf2c.lib(fmt1.obj) : error LNK2019: unresolved external symbol ___iob_func referenced in function _op_gen
libf2c.lib(f77_aloc1.obj) : error LNK2001: unresolved external symbol ___iob_func
libf2c.lib(err1.obj) : error LNK2001: unresolved external symbol ___iob_func
libf2c.lib(sig_die1.obj) : error LNK2001: unresolved external symbol ___iob_func
libf2c.lib(wsfe1.obj) : error LNK2019: unresolved external symbol _fflush referenced in function _xw_end
libf2c.lib(sig_die1.obj) : error LNK2001: unresolved external symbol _fflush
libf2c.lib(close1.obj) : error LNK2001: unresolved external symbol _fflush
libf2c.lib(i_nint1.obj) : error LNK2019: unresolved external symbol _floor referenced in function _i_nint
libf2c.lib(f77_aloc1.obj) : error LNK2019: unresolved external symbol _malloc referenced in function _F77_aloc
libf2c.lib(open1.obj) : error LNK2001: unresolved external symbol _malloc
libf2c.lib(err1.obj) : error LNK2019: unresolved external symbol _isatty referenced in function _f__canseek
OLDNAMES.lib(isatty.obj) : error LNK2001: unresolved external symbol _isatty
libf2c.lib(err1.obj) : error LNK2019: unresolved external symbol _fileno referenced in function _f__canseek
OLDNAMES.lib(fileno.obj) : error LNK2001: unresolved external symbol _fileno
libf2c.lib(err1.obj) : error LNK2019: unresolved external symbol _perror referenced in function _f__fatal
libf2c.lib(err1.obj) : error LNK2019: unresolved external symbol _fseek referenced in function _f__nowreading
libf2c.lib(open1.obj) : error LNK2001: unresolved external symbol _fseek
libf2c.lib(endfile1.obj) : error LNK2001: unresolved external symbol _fseek
libf2c.lib(err1.obj) : error LNK2019: unresolved external symbol _freopen referenced in function _f__nowreading
libf2c.lib(endfile1.obj) : error LNK2001: unresolved external symbol _freopen
libf2c.lib(err1.obj) : error LNK2019: unresolved external symbol _ftell referenced in function _f__nowreading
libf2c.lib(endfile1.obj) : error LNK2001: unresolved external symbol _ftell
libf2c.lib(open1.obj) : error LNK2019: unresolved external symbol _putc referenced in function _f__putbuf
libf2c.lib(open1.obj) : error LNK2019: unresolved external symbol _strlen referenced in function _f__putbuf
libf2c.lib(wref1.obj) : error LNK2001: unresolved external symbol _strlen
libf2c.lib(open1.obj) : error LNK2019: unresolved external symbol _fputs referenced in function _f__putbuf
libf2c.lib(open1.obj) : error LNK2019: unresolved external symbol _rewind referenced in function _f_open
libf2c.lib(endfile1.obj) : error LNK2001: unresolved external symbol _rewind
libf2c.lib(open1.obj) : error LNK2019: unresolved external symbol _strcpy referenced in function _f_open
libf2c.lib(wref1.obj) : error LNK2001: unresolved external symbol _strcpy
libf2c.lib(open1.obj) : error LNK2019: unresolved external symbol _fclose referenced in function _f_open
libf2c.lib(close1.obj) : error LNK2001: unresolved external symbol _fclose
libf2c.lib(endfile1.obj) : error LNK2001: unresolved external symbol _fclose
libf2c.lib(open1.obj) : error LNK2019: unresolved external symbol _fopen referenced in function _f_open
libf2c.lib(endfile1.obj) : error LNK2001: unresolved external symbol _fopen
libf2c.lib(open1.obj) : error LNK2019: unresolved external symbol _tmpfile referenced in function _f_open
libf2c.lib(endfile1.obj) : error LNK2001: unresolved external symbol _tmpfile
libf2c.lib(open1.obj) : error LNK2019: unresolved external symbol _access referenced in function _f_open
OLDNAMES.lib(access.obj) : error LNK2001: unresolved external symbol _access
libf2c.lib(open1.obj) : error LNK2019: unresolved external symbol _sprintf referenced in function _f_open
libf2c.lib(wref1.obj) : error LNK2001: unresolved external symbol _sprintf
libf2c.lib(endfile1.obj) : error LNK2001: unresolved external symbol _sprintf
libf2c.lib(open1.obj) : error LNK2019: unresolved external symbol _strncmp referenced in function _f_open
libf2c.lib(open1.obj) : error LNK2019: unresolved external symbol ___security_cookie referenced in function _f_open
libf2c.lib(wref1.obj) : error LNK2001: unresolved external symbol ___security_cookie
libf2c.lib(endfile1.obj) : error LNK2001: unresolved external symbol ___security_cookie
libf2c.lib(open1.obj) : error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function _f_open
libf2c.lib(wref1.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
libf2c.lib(endfile1.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
libf2c.lib(sig_die1.obj) : error LNK2019: unresolved external symbol _exit referenced in function _sig_die
libf2c.lib(exit_1.obj) : error LNK2001: unresolved external symbol _exit
libf2c.lib(sig_die1.obj) : error LNK2019: unresolved external symbol _abort referenced in function _sig_die
libf2c.lib(sig_die1.obj) : error LNK2019: unresolved external symbol _signal referenced in function _sig_die
libf2c.lib(close1.obj) : error LNK2019: unresolved external symbol _remove referenced in function _f_clos
libf2c.lib(wref1.obj) : error LNK2019: unresolved external symbol _atoi referenced in function _wrt_E
libf2c.lib(wref1.obj) : error LNK2019: unresolved external symbol _isdigit referenced in function _wrt_E
libf2c.lib(endfile1.obj) : error LNK2019: unresolved external symbol _fwrite referenced in function _copy
libf2c.lib(endfile1.obj) : error LNK2019: unresolved external symbol _fread referenced in function _copy
OLDNAMES.lib(isatty.obj) : error LNK2001: unresolved external symbol __isatty
OLDNAMES.lib(fileno.obj) : error LNK2001: unresolved external symbol __fileno
OLDNAMES.lib(access.obj) : error LNK2001: unresolved external symbol __access
lmdemo.exe : fatal error LNK1120: 195 unresolved externals
mbadawi23
 
Posts: 11
Joined: Fri Feb 06, 2009 1:16 pm

Re: Building levmar.lib with CLAPACK for Windows: Unresolved ext

Postby Julie » Fri Sep 11, 2009 11:51 am

No you cannot ignore both library, just ignore /NODEFAULTLIB:LIBCMT
also I am not sure you need the cblaswrap.lib as it seems it creates some error in your link (just try with and without)
Julie
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado

Re: Building levmar.lib with CLAPACK for Windows: Unresolved ext

Postby mbadawi23 » Fri Sep 11, 2009 12:44 pm

Well I got a different output this time for a change:
Code: Select all
   cl /nologo  /I. /MD /W3 /EHsc /O2  /c lmdemo.c
lmdemo.c
   cl /nologo lmdemo.obj /link /subsystem:console /opt:ref /libpath:C:\MB\ExternalLibraries\levmar\levmar-2.3\LIB /libpath:. /NODEFAULTLIB:MSVCRT /out:lmdemo.exe levmar.lib clapack.lib BLAS.lib libf2c.lib
   
lmdemo.obj : warning LNK4217: locally defined symbol _free imported in function _main
levmar.lib(lm.obj) : warning LNK4049: locally defined symbol _free imported
levmar.lib(misc.obj) : warning LNK4049: locally defined symbol _free imported
levmar.lib(Axb.obj) : warning LNK4049: locally defined symbol _free imported
lmdemo.obj : warning LNK4217: locally defined symbol _printf imported in function _main
lmdemo.obj : warning LNK4217: locally defined symbol _exit imported in function _main
levmar.lib(lm.obj) : warning LNK4049: locally defined symbol _exit imported
levmar.lib(misc.obj) : warning LNK4049: locally defined symbol _exit imported
levmar.lib(Axb.obj) : warning LNK4049: locally defined symbol _exit imported
lmdemo.obj : warning LNK4217: locally defined symbol _fprintf imported in function _main
levmar.lib(lm.obj) : warning LNK4049: locally defined symbol _fprintf imported
levmar.lib(misc.obj) : warning LNK4049: locally defined symbol _fprintf imported
levmar.lib(Axb.obj) : warning LNK4049: locally defined symbol _fprintf imported
lmdemo.obj : warning LNK4217: locally defined symbol ___iob_func imported in function _main
levmar.lib(lm.obj) : warning LNK4049: locally defined symbol ___iob_func imported
levmar.lib(misc.obj) : warning LNK4049: locally defined symbol ___iob_func imported
levmar.lib(Axb.obj) : warning LNK4049: locally defined symbol ___iob_func imported
lmdemo.obj : warning LNK4217: locally defined symbol _malloc imported in function _main
levmar.lib(lm.obj) : warning LNK4049: locally defined symbol _malloc imported
levmar.lib(misc.obj) : warning LNK4049: locally defined symbol _malloc imported
levmar.lib(Axb.obj) : warning LNK4049: locally defined symbol _malloc imported
levmar.lib(lm.obj) : warning LNK4217: locally defined symbol __finite imported in function _slevmar_der
levmar.lib(misc.obj) : error LNK2019: unresolved external symbol _sgemm_ referenced in function _slevmar_trans_mat_mat_mult
levmar.lib(misc.obj) : error LNK2019: unresolved external symbol _dgemm_ referenced in function _dlevmar_trans_mat_mat_mult
lmdemo.exe : fatal error LNK1120: 2 unresolved externals


I'm thinking that this may be a wrapper related problem.
mbadawi23
 
Posts: 11
Joined: Fri Feb 06, 2009 1:16 pm

Re: Building levmar.lib with CLAPACK for Windows: Unresolved ext

Postby Julie » Fri Sep 11, 2009 1:20 pm

Yep, actually only one problem is remaining., the call to sgemm and dgemm. The rest of the output are warnings
levmar.lib(misc.obj) : error LNK2019: unresolved external symbol _dgemm_ referenced in function _dlevmar_trans_mat_mat_mult

Do you have the actual line in the levmar library wher it call dgemm?
dgemm may have to be redefined.
Also if you want performance you definitely do not want to use the reference BLAS, but an optimized blas (MKL, ACML, GOTO BLAS, ATLAS)

Julie
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado

Re: Building levmar.lib with CLAPACK for Windows: Unresolved ext

Postby mbadawi23 » Fri Sep 11, 2009 1:44 pm

According to the output file there are two functions slevmar_trans_mat_mat_mult() and dlevmar_trans_mat_mat_mult():
Code: Select all
levmar.lib(misc.obj) : error LNK2019: unresolved external symbol _sgemm_ referenced in function _slevmar_trans_mat_mat_mult
levmar.lib(misc.obj) : error LNK2019: unresolved external symbol _dgemm_ referenced in function _dlevmar_trans_mat_mat_mult

But I can't find function definitions, I only see declarations in misc.h line 57:
Code: Select all
/* blocking-based matrix multiply */
extern void slevmar_trans_mat_mat_mult(float *a, float *b, int n, int m);
extern void dlevmar_trans_mat_mat_mult(double *a, double *b, int n, int m);

These are defined as externs so I can't find where they are first defined and I'm not able to reference on that searching online.

Yes, I do want performance. I have tried GotoBLAS with CLAPACK on my linux machine and worked great.. But I had a lot of trouble building on cygwin so I decided just to get this to work first then try again with GotoBLAS.
I was thinking of building on linux then cross-compiling with minGW for Windows, but I'm not experienced with minGW. What are your thoughts on that?

UPDATE: I just came across this code in misc_core.c:
Code: Select all
#ifdef HAVE_LAPACK
#define LEVMAR_PSEUDOINVERSE LM_ADD_PREFIX(levmar_pseudoinverse)
static int LEVMAR_PSEUDOINVERSE(LM_REAL *A, LM_REAL *B, int m);

/* BLAS matrix multiplication & LAPACK SVD routines */
#ifdef LM_BLAS_PREFIX
#define GEMM LM_CAT_(LM_BLAS_PREFIX, LM_ADD_PREFIX(LM_CAT_(gemm, LM_BLAS_SUFFIX)))
#else
#define GEMM LM_ADD_PREFIX(LM_CAT_(gemm, LM_BLAS_SUFFIX))
#endif
/* C := alpha*op( A )*op( B ) + beta*C */
extern void GEMM(char *transa, char *transb, int *m, int *n, int *k,
          LM_REAL *alpha, LM_REAL *a, int *lda, LM_REAL *b, int *ldb, LM_REAL *beta, LM_REAL *c, int *ldc);

I think it may have something to do what we're seeing.
mbadawi23
 
Posts: 11
Joined: Fri Feb 06, 2009 1:16 pm

Re: Building levmar.lib with CLAPACK for Windows: Unresolved ext

Postby Julie » Fri Sep 11, 2009 1:55 pm

First get GOTO under Windows and link with it instead of the Ref BLAS.
There is a nice thread from a user that explains how to do it: viewtopic.php?f=2&t=1595

Also you can try the CMAKE package for CLAPACK available at http://www.netlib.org/clapack, it will build the CLAPACK package for any platform you want (mingw, Cygwin)

Personally I would stay under LINUX or OS/X. ;-)
Julie
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado

Re: Building levmar.lib with CLAPACK for Windows: Unresolved ext

Postby Julie » Fri Sep 11, 2009 3:01 pm

By the way, did you include the following in your code?
Code: Select all
#include "f2c.h"
#include "blaswrap.h"
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado

Re: Building levmar.lib with CLAPACK for Windows: Unresolved ext

Postby jschnitz » Wed Jul 14, 2010 9:02 pm

Hi,
is there any news about this problem?
I have exactly the same issue, it also gives me those errors when compiling:
Code: Select all
levmar.lib(misc.obj) : error LNK2019: unresolved external symbol _sgemm_ referenced in function _slevmar_trans_mat_mat_mult
levmar.lib(misc.obj) : error LNK2019: unresolved external symbol _dgemm_ referenced in function _dlevmar_trans_mat_mat_mult

I am using Windows XP 64bit.

I'd appreciate any help a lot. Thanks!
jschnitz
 
Posts: 1
Joined: Wed Jul 14, 2010 8:56 pm

Re: Building levmar.lib with CLAPACK for Windows: Unresolved ext

Postby mbadawi23 » Thu Jul 22, 2010 3:47 pm

Man! that was a long time ago. I think what I did is I figured a way to use GOTOblas on Windows.

If you can tell me more about what you are trying to do I may be able to help.
mbadawi23
 
Posts: 11
Joined: Fri Feb 06, 2009 1:16 pm

Re: Building levmar.lib with CLAPACK for Windows: Unresolved

Postby misterdidz » Thu Dec 23, 2010 3:57 pm

a bit late but for the others:

add this linking library: BLAS_nowrap.lib

ie: LAPACKLIBS=clapack.lib blas.lib BLAS_nowrap.lib libf2c.lib

if you perform a search in BLAS_nowrap.lib you'll find that it has been compiled with sgemm.obj
misterdidz
 
Posts: 2
Joined: Thu Dec 23, 2010 3:50 pm

Re: Building levmar.lib with CLAPACK for Windows: Unresolved

Postby misterdidz » Thu Dec 23, 2010 3:59 pm

my post didnt go thru so this is a second try:

add this linking library and you're good to go: BLAS_nowrap.lib

do a seach in this library and you'll find it has been compiled with sgemm.obj
misterdidz
 
Posts: 2
Joined: Thu Dec 23, 2010 3:50 pm


Return to Windows

Who is online

Users browsing this forum: No registered users and 3 guests