aortizb
unread,Sep 22, 2009, 2:44:08 AM9/22/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to matrixprogramming
Hello all,
I am trying to compute the inverse of a matrix with lapack. I am
getting some link errors. The code is:
---------------------------------------------------------------------------------------
#include <iostream>
#include <string>
#include <vector>
using namespace std;
extern "C" int dpotrf_(char *uplo, int *n, double *a, int *lda, int
*info);
extern "C" int dpotri_(char *uplo, int *n, double *a, int *lda, int
*info);
int main()
{
int n = 2;
int info;
char uplo = 'u';
vector< vector<double> > a(2,vector<double>(2));
a[0][0] = 1;
a[0][1] = 1;
a[1][0] = 1;
a[1][1] = 1.000000001;
dpotrf_(&uplo,&n,&a[0][0],&n,&info);
if (info != 0)
cout << "Error in dpotrf(): Flag is " << info << endl;
dpotri_(&uplo,&n,&a[0][0],&n,&info);
if (info != 0)
cout << "Error in dpotri(): Flag is " << info << endl;
vector< vector<double> > ainv(2,vector<double>(2));
for (int i = 0; i < n; i++)
for (int j = 0; j < i-1; j++)
ainv[i][j] = a[j][i];
for (int i = 0; i < 2; i++)
{
for (int j = 0; j < 2; j++)
cout << ainv[i][j] << " ";
cout << endl;
}
return 0;
}
-------------------------------------------------------------
I am using the precompiled libraries of lapack and f2c that comes with
TAUCS (liblapack.lib and vcf2c.lib).
Can i get some help/guidance with the following errors?.
Thanks.
Alejandro.
1>------ Rebuild All started: Project: test_clapack, Configuration:
Debug Win32 ------
1>Deleting intermediate and output files for project 'test_clapack',
configuration 'Debug|Win32'
1>Compiling...
1>clapack_example.cpp
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external
symbol ___security_cookie
1>clapack_example.obj : error LNK2019: unresolved external symbol
___security_cookie referenced in function _main
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
___security_cookie
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
___security_cookie
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol ___security_cookie
1>clapack_example.obj : error LNK2019: unresolved external symbol
___CxxFrameHandler3 referenced in function __ehhandler$_main
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
___CxxFrameHandler3
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
___CxxFrameHandler3
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol ___CxxFrameHandler3
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external
symbol @__security_check_cookie@4
1>clapack_example.obj : error LNK2019: unresolved external symbol
@__security_check_cookie@4 referenced in function __ehhandler$_main
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
@__security_check_cookie@4
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
@__security_check_cookie@4
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol @__security_check_cookie@4
1>clapack_example.obj : error LNK2001: unresolved external symbol
__fltused
1>clapack_example.obj : error LNK2019: unresolved external symbol
__RTC_CheckEsp referenced in function _main
1>clapack_example.obj : error LNK2019: unresolved external symbol
@_RTC_CheckStackVars@8 referenced in function _main
1>clapack_example.obj : error LNK2001: unresolved external symbol
__RTC_Shutdown
1>clapack_example.obj : error LNK2001: unresolved external symbol
__RTC_InitBase
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol
__CxxThrowException@8
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol __CxxThrowException@8
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol
__CxxThrowException@8
1>libcpmtd.lib(iosptrs.obj) : error LNK2019: unresolved external
symbol __CxxThrowException@8 referenced in function "void __cdecl
std::`dynamic initializer for 'initlocks''(void)" (??
__Einitlocks@std@@YAXXZ)
1>clapack_example.obj : error LNK2001: unresolved external symbol
__CxxThrowException@8
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
__CxxThrowException@8
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol
__CxxThrowException@8
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
__CxxThrowException@8
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol
"const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol "const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol
"const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external
symbol "const type_info::`vftable'" (??_7type_info@@6B@)
1>clapack_example.obj : error LNK2001: unresolved external symbol
"const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
"const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol
"const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
"const type_info::`vftable'" (??_7type_info@@6B@)
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::exception::exception(class std::exception
const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol "public: __thiscall std::exception::exception(class
std::exception const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::exception::exception(class std::exception
const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(iosptrs.obj) : error LNK2019: unresolved external
symbol "public: __thiscall std::exception::exception(class
std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) referenced
in function "void __cdecl `dynamic atexit destructor for
'init_atexit''(void)" (??__Finit_atexit@@YAXXZ)
1>clapack_example.obj : error LNK2001: unresolved external symbol
"public: __thiscall std::exception::exception(class std::exception
const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::exception::exception(class std::exception
const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::exception::exception(class std::exception
const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::exception::exception(class std::exception
const &)" (??0exception@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::exception::exception(char const * const
&)" (??0exception@std@@QAE@ABQBD@Z)
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol "public: __thiscall std::exception::exception(char const *
const &)" (??0exception@std@@QAE@ABQBD@Z)
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::exception::exception(char const * const
&)" (??0exception@std@@QAE@ABQBD@Z)
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external
symbol "public: __thiscall std::exception::exception(char const *
const &)" (??0exception@std@@QAE@ABQBD@Z)
1>clapack_example.obj : error LNK2019: unresolved external symbol
"public: __thiscall std::exception::exception(char const * const
&)" (??0exception@std@@QAE@ABQBD@Z) referenced in function "public:
__thiscall std::bad_alloc::bad_alloc(char const *)" (??
0bad_alloc@std@@QAE@PBD@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::exception::exception(char const * const
&)" (??0exception@std@@QAE@ABQBD@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::exception::exception(char const * const
&)" (??0exception@std@@QAE@ABQBD@Z)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::exception::exception(char const * const
&)" (??0exception@std@@QAE@ABQBD@Z)
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol
"public: virtual char const * __thiscall std::exception::what(void)
const " (?what@exception@std@@UBEPBDXZ)
1>libcpmtd.lib(locale0.obj) : error LNK2019: unresolved external
symbol "public: virtual char const * __thiscall std::exception::what
(void)const " (?what@exception@std@@UBEPBDXZ) referenced in function
"public: virtual __thiscall std::locale::facet::~facet(void)" (??
1facet@locale@std@@UAE@XZ)
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol
"public: virtual char const * __thiscall std::exception::what(void)
const " (?what@exception@std@@UBEPBDXZ)
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external
symbol "public: virtual char const * __thiscall std::exception::what
(void)const " (?what@exception@std@@UBEPBDXZ)
1>clapack_example.obj : error LNK2001: unresolved external symbol
"public: virtual char const * __thiscall std::exception::what(void)
const " (?what@exception@std@@UBEPBDXZ)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
"public: virtual char const * __thiscall std::exception::what(void)
const " (?what@exception@std@@UBEPBDXZ)
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol
"public: virtual char const * __thiscall std::exception::what(void)
const " (?what@exception@std@@UBEPBDXZ)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
"public: virtual char const * __thiscall std::exception::what(void)
const " (?what@exception@std@@UBEPBDXZ)
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol
"public: virtual __thiscall std::exception::~exception(void)" (??
1exception@std@@UAE@XZ)
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol "public: virtual __thiscall std::exception::~exception
(void)" (??1exception@std@@UAE@XZ)
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol
"public: virtual __thiscall std::exception::~exception(void)" (??
1exception@std@@UAE@XZ)
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external
symbol "public: virtual __thiscall std::exception::~exception
(void)" (??1exception@std@@UAE@XZ)
1>clapack_example.obj : error LNK2019: unresolved external symbol
"public: virtual __thiscall std::exception::~exception(void)" (??
1exception@std@@UAE@XZ) referenced in function "public: virtual
__thiscall std::bad_alloc::~bad_alloc(void)" (??
1bad_alloc@std@@UAE@XZ)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
"public: virtual __thiscall std::exception::~exception(void)" (??
1exception@std@@UAE@XZ)
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol
"public: virtual __thiscall std::exception::~exception(void)" (??
1exception@std@@UAE@XZ)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
"public: virtual __thiscall std::exception::~exception(void)" (??
1exception@std@@UAE@XZ)
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol
"void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>libcpmtd.lib(locale0.obj) : error LNK2019: unresolved external
symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
referenced in function "public: static class std::locale __cdecl
std::locale::empty(void)" (?empty@locale@std@@SA?AV12@XZ)
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol
"void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external
symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>clapack_example.obj : error LNK2001: unresolved external symbol
"void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
"void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol
"void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
"void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
1>clapack_example.obj : error LNK2019: unresolved external symbol
__invalid_parameter referenced in function "public: double &
__thiscall std::vector<double,class std::allocator<double> >::operator
[](unsigned int)" (??A?$vector@NV?$allocator@N@std@@@std@@QAEAANI@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
__invalid_parameter
1>clapack_example.obj : error LNK2019: unresolved external symbol
__CrtDbgReportW referenced in function "public: double & __thiscall
std::vector<double,class std::allocator<double> >::operator[](unsigned
int)" (??A?$vector@NV?$allocator@N@std@@@std@@QAEAANI@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
__CrtDbgReportW
1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external
symbol __CrtDbgReportW
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external
symbol __CrtDbgReportW
1>clapack_example.obj : error LNK2019: unresolved external symbol
"public: __thiscall std::exception::exception(void)" (??
0exception@std@@QAE@XZ) referenced in function "public: __thiscall
std::runtime_error::runtime_error(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)" (??
0runtime_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?
$allocator@D@2@@1@@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::exception::exception(void)" (??
0exception@std@@QAE@XZ)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::exception::exception(void)" (??
0exception@std@@QAE@XZ)
1>clapack_example.obj : error LNK2019: unresolved external symbol
_strlen referenced in function "public: static unsigned int __cdecl
std::char_traits<char>::length(char const *)" (?length@?
$char_traits@D@std@@SAIPBD@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
_strlen
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
_strlen
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol _strlen
1>libcpmtd.lib(xmutex.obj) : error LNK2001: unresolved external symbol
_free
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol _free
1>libcpmtd.lib(ios.obj) : error LNK2001: unresolved external symbol
_free
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external
symbol _free
1>clapack_example.obj : error LNK2019: unresolved external symbol
_free referenced in function "void __cdecl std::_DebugHeapDelete<class
std::locale::facet>(class std::locale::facet *)" (??
$_DebugHeapDelete@Vfacet@locale@std@@@std@@YAXPAVfacet@locale@0@@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
_free
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol
_free
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
_free
1>clapack_example.obj : error LNK2019: unresolved external symbol
"public: __thiscall std::bad_cast::bad_cast(char const *)" (??
0bad_cast@std@@QAE@PBD@Z) referenced in function "class
std::num_put<char,class std::ostreambuf_iterator<char,struct
std::char_traits<char> > > const & __cdecl std::use_facet<class
std::num_put<char,class std::ostreambuf_iterator<char,struct
std::char_traits<char> > > >(class std::locale const &)" (??
$use_facet@V?$num_put@DV?$ostreambuf_iterator@DU?
$char_traits@D@std@@@std@@@std@@@std@@YAABV?$num_put@DV?
$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@0@ABVlocale@0@@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::bad_cast::bad_cast(char const *)" (??
0bad_cast@std@@QAE@PBD@Z)
1>clapack_example.obj : error LNK2001: unresolved external symbol
"public: virtual __thiscall std::bad_cast::~bad_cast(void)" (??
1bad_cast@std@@UAE@XZ)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
"public: virtual __thiscall std::bad_cast::~bad_cast(void)" (??
1bad_cast@std@@UAE@XZ)
1>clapack_example.obj : error LNK2001: unresolved external symbol
"public: __thiscall std::bad_cast::bad_cast(class std::bad_cast const
&)" (??0bad_cast@std@@QAE@ABV01@@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
"public: __thiscall std::bad_cast::bad_cast(class std::bad_cast const
&)" (??0bad_cast@std@@QAE@ABV01@@Z)
1>clapack_example.obj : error LNK2019: unresolved external symbol
"void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) referenced
in function "double * __cdecl std::_Allocate<double>(unsigned
int,double *)" (??$_Allocate@N@std@@YAPANIPAN@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
"void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
"void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
1>clapack_example.obj : error LNK2019: unresolved external symbol
_sprintf_s referenced in function "protected: virtual class
std::ostreambuf_iterator<char,struct std::char_traits<char> >
__thiscall std::num_put<char,class
std::ostreambuf_iterator<char,struct std::char_traits<char> > >::do_put
(class std::ostreambuf_iterator<char,struct std::char_traits<char>
>,class std::ios_base &,char,long)const " (?do_put@?$num_put@DV?
$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MBE?AV?
$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AAVios_base@2@DJ@Z)
1>clapack_example.obj : error LNK2019: unresolved external symbol
_strcspn referenced in function "private: class
std::ostreambuf_iterator<char,struct std::char_traits<char> > __cdecl
std::num_put<char,class std::ostreambuf_iterator<char,struct
std::char_traits<char> > >::_Fput(class
std::ostreambuf_iterator<char,struct std::char_traits<char> >,class
std::ios_base &,char,char const *,unsigned int,unsigned int,unsigned
int,unsigned int)const " (?_Fput@?$num_put@DV?$ostreambuf_iterator@DU?
$char_traits@D@std@@@std@@@std@@ABA?AV?$ostreambuf_iterator@DU?
$char_traits@D@std@@@2@V32@AAVios_base@2@DPBDIIII@Z)
1>clapack_example.obj : error LNK2019: unresolved external symbol
_memchr referenced in function "private: class
std::ostreambuf_iterator<char,struct std::char_traits<char> > __cdecl
std::num_put<char,class std::ostreambuf_iterator<char,struct
std::char_traits<char> > >::_Fput(class
std::ostreambuf_iterator<char,struct std::char_traits<char> >,class
std::ios_base &,char,char const *,unsigned int,unsigned int,unsigned
int,unsigned int)const " (?_Fput@?$num_put@DV?$ostreambuf_iterator@DU?
$char_traits@D@std@@@std@@@std@@ABA?AV?$ostreambuf_iterator@DU?
$char_traits@D@std@@@2@V32@AAVios_base@2@DPBDIIII@Z)
1>clapack_example.obj : error LNK2019: unresolved external symbol
_localeconv referenced in function "private: class
std::ostreambuf_iterator<char,struct std::char_traits<char> > __cdecl
std::num_put<char,class std::ostreambuf_iterator<char,struct
std::char_traits<char> > >::_Fput(class
std::ostreambuf_iterator<char,struct std::char_traits<char> >,class
std::ios_base &,char,char const *,unsigned int,unsigned int,unsigned
int,unsigned int)const " (?_Fput@?$num_put@DV?$ostreambuf_iterator@DU?
$char_traits@D@std@@@std@@@std@@ABA?AV?$ostreambuf_iterator@DU?
$char_traits@D@std@@@2@V32@AAVios_base@2@DPBDIIII@Z)
1>clapack_example.obj : error LNK2019: unresolved external symbol
_memmove_s referenced in function "private: class
std::ostreambuf_iterator<char,struct std::char_traits<char> > __cdecl
std::num_put<char,class std::ostreambuf_iterator<char,struct
std::char_traits<char> > >::_Iput(class
std::ostreambuf_iterator<char,struct std::char_traits<char> >,class
std::ios_base &,char,char *,unsigned int)const " (?_Iput@?$num_put@DV?
$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@ABA?AV?
$ostreambuf_iterator@DU?
$char_traits@D@std@@@2@V32@AAVios_base@2@DPADI@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
_memmove_s
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
_memmove_s
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol _memmove_s
1>clapack_example.obj : error LNK2019: unresolved external symbol
_memset referenced in function "public: static char * __cdecl
std::char_traits<char>::assign(char *,unsigned int,char)" (?assign@?
$char_traits@D@std@@SAPADPADID@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
_memset
1>clapack_example.obj : error LNK2019: unresolved external symbol
_memcpy_s referenced in function "public: static char * __cdecl
std::char_traits<char>::_Copy_s(char *,unsigned int,char const
*,unsigned int)" (?_Copy_s@?$char_traits@D@std@@SAPADPADIPBDI@Z)
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
_memcpy_s
1>libcpmtd.lib(string.obj) : error LNK2001: unresolved external symbol
_memcpy_s
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol _memcpy_s
1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
1>liblapack.lib(zlauum.obj) : error LNK2001: unresolved external
symbol _xerbla_
1>liblapack.lib(ztrtri.obj) : error LNK2001: unresolved external
symbol _xerbla_
1>liblapack.lib(dpotri.obj) : error LNK2019: unresolved external
symbol _xerbla_ referenced in function _dpotri_
1>liblapack.lib(dpotrf.obj) : error LNK2001: unresolved external
symbol _xerbla_
1>liblapack.lib(dlauum.obj) : error LNK2001: unresolved external
symbol _xerbla_
1>liblapack.lib(dtrtri.obj) : error LNK2001: unresolved external
symbol _xerbla_
1>liblapack.lib(zlauum.obj) : error LNK2001: unresolved external
symbol _lsame_
1>liblapack.lib(ztrtri.obj) : error LNK2001: unresolved external
symbol _lsame_
1>liblapack.lib(dpotri.obj) : error LNK2019: unresolved external
symbol _lsame_ referenced in function _dpotri_
1>liblapack.lib(dpotrf.obj) : error LNK2001: unresolved external
symbol _lsame_
1>liblapack.lib(dlauum.obj) : error LNK2001: unresolved external
symbol _lsame_
1>liblapack.lib(dtrtri.obj) : error LNK2001: unresolved external
symbol _lsame_
1>liblapack.lib(ATL_dlauumCL.obj) : error LNK2001: unresolved external
symbol _cblas_dsyrk
1>liblapack.lib(ATL_dlauumCU.obj) : error LNK2001: unresolved external
symbol _cblas_dsyrk
1>liblapack.lib(ATL_dpotrfL.obj) : error LNK2019: unresolved external
symbol _cblas_dsyrk referenced in function _ATL_dpotrfL
1>liblapack.lib(ATL_dpotrfU.obj) : error LNK2001: unresolved external
symbol _cblas_dsyrk
1>liblapack.lib(ATL_dlauumRL.obj) : error LNK2001: unresolved external
symbol _cblas_dsyrk
1>liblapack.lib(ATL_dlauumRU.obj) : error LNK2001: unresolved external
symbol _cblas_dsyrk
1>liblapack.lib(ATL_dtrtriRU.obj) : error LNK2001: unresolved external
symbol _cblas_dtrsm
1>liblapack.lib(ATL_dtrtriCU.obj) : error LNK2001: unresolved external
symbol _cblas_dtrsm
1>liblapack.lib(ATL_dpotrfL.obj) : error LNK2019: unresolved external
symbol _cblas_dtrsm referenced in function _ATL_dpotrfL
1>liblapack.lib(ATL_dpotrfU.obj) : error LNK2001: unresolved external
symbol _cblas_dtrsm
1>liblapack.lib(ATL_dtrtriRL.obj) : error LNK2001: unresolved external
symbol _cblas_dtrsm
1>liblapack.lib(ATL_dtrtriCL.obj) : error LNK2001: unresolved external
symbol _cblas_dtrsm
1>liblapack.lib(ATL_dpotrfL.obj) : error LNK2019: unresolved external
symbol _sqrt referenced in function _ATL_dpotrfL
1>liblapack.lib(ATL_dpotrfU.obj) : error LNK2001: unresolved external
symbol _sqrt
1>liblapack.lib(ATL_dlauumRL.obj) : error LNK2019: unresolved external
symbol _cblas_dtrmm referenced in function _ATL_dlauumRL
1>liblapack.lib(ATL_dlauumRU.obj) : error LNK2001: unresolved external
symbol _cblas_dtrmm
1>liblapack.lib(ATL_dlauumCL.obj) : error LNK2001: unresolved external
symbol _cblas_dtrmm
1>liblapack.lib(ATL_dlauumCU.obj) : error LNK2001: unresolved external
symbol _cblas_dtrmm
1>liblapack.lib(ATL_zlauumRL.obj) : error LNK2019: unresolved external
symbol _cblas_ztrmm referenced in function _ATL_zlauumRL
1>liblapack.lib(ATL_zlauumRU.obj) : error LNK2001: unresolved external
symbol _cblas_ztrmm
1>liblapack.lib(ATL_zlauumCL.obj) : error LNK2001: unresolved external
symbol _cblas_ztrmm
1>liblapack.lib(ATL_zlauumCU.obj) : error LNK2001: unresolved external
symbol _cblas_ztrmm
1>liblapack.lib(ATL_zlauumRL.obj) : error LNK2019: unresolved external
symbol _cblas_zherk referenced in function _ATL_zlauumRL
1>liblapack.lib(ATL_zlauumRU.obj) : error LNK2001: unresolved external
symbol _cblas_zherk
1>liblapack.lib(ATL_zlauumCL.obj) : error LNK2001: unresolved external
symbol _cblas_zherk
1>liblapack.lib(ATL_zlauumCU.obj) : error LNK2001: unresolved external
symbol _cblas_zherk
1>liblapack.lib(ATL_ztrtriRL.obj) : error LNK2019: unresolved external
symbol _cblas_ztrsm referenced in function _ATL_ztrtriRL
1>liblapack.lib(ATL_ztrtriCL.obj) : error LNK2001: unresolved external
symbol _cblas_ztrsm
1>liblapack.lib(ATL_ztrtriRU.obj) : error LNK2001: unresolved external
symbol _cblas_ztrsm
1>liblapack.lib(ATL_ztrtriCU.obj) : error LNK2001: unresolved external
symbol _cblas_ztrsm
1>liblapack.lib(ATL_ztrtriRL.obj) : error LNK2019: unresolved external
symbol _ATL_zcplxinvert referenced in function _ATL_ztrtriRL
1>liblapack.lib(ATL_ztrtriCL.obj) : error LNK2001: unresolved external
symbol _ATL_zcplxinvert
1>liblapack.lib(ATL_ztrtriRU.obj) : error LNK2001: unresolved external
symbol _ATL_zcplxinvert
1>liblapack.lib(ATL_ztrtriCU.obj) : error LNK2001: unresolved external
symbol _ATL_zcplxinvert
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external
symbol _atexit
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external
symbol _atexit
1>libcpmtd.lib(cout.obj) : error LNK2019: unresolved external symbol
_atexit referenced in function "void __cdecl `dynamic initializer for
'initlocks''(void)" (??__Einitlocks@@YAXXZ)
1>libcpmtd.lib(xdebug.obj) : error LNK2001: unresolved external symbol
_atexit
1>libcpmtd.lib(xlock.obj) : error LNK2001: unresolved external symbol
_atexit
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol _atexit
1>libcpmtd.lib(cout.obj) : error LNK2019: unresolved external symbol
___iob_func referenced in function "void __cdecl std::`dynamic
initializer for 'fout''(void)" (??__Efout@std@@YAXXZ)
1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external
symbol ___iob_func
1>libcpmtd.lib(cout.obj) : error LNK2019: unresolved external symbol
_fwrite referenced in function "protected: virtual int __thiscall
std::basic_filebuf<char,struct std::char_traits<char> >::overflow
(int)" (?overflow@?$basic_filebuf@DU?
$char_traits@D@std@@@std@@MAEHH@Z)
1>libcpmtd.lib(cout.obj) : error LNK2019: unresolved external symbol
_fputc referenced in function "bool __cdecl std::_Fputc<char>
(char,struct _iobuf *)" (??$_Fputc@D@std@@YA_NDPAU_iobuf@@@Z)
1>libcpmtd.lib(cout.obj) : error LNK2019: unresolved external symbol
_ungetc referenced in function "bool __cdecl std::_Ungetc<char>(char
const &,struct _iobuf *)" (??$_Ungetc@D@std@@YA_NABDPAU_iobuf@@@Z)
1>libcpmtd.lib(cout.obj) : error LNK2019: unresolved external symbol
_fgetc referenced in function "protected: virtual int __thiscall
std::basic_filebuf<char,struct std::char_traits<char> >::uflow
(void)" (?uflow@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ)
1>libcpmtd.lib(cout.obj) : error LNK2019: unresolved external symbol
_fgetpos referenced in function "protected: virtual class
std::fpos<int> __thiscall std::basic_filebuf<char,struct
std::char_traits<char> >::seekoff(long,int,int)" (?seekoff@?
$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z)
1>libcpmtd.lib(cout.obj) : error LNK2019: unresolved external symbol
_fseek referenced in function "protected: virtual class std::fpos<int>
__thiscall std::basic_filebuf<char,struct std::char_traits<char>
>::seekoff(long,int,int)" (?seekoff@?$basic_filebuf@DU?
$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@JHH@Z)
1>libcpmtd.lib(cout.obj) : error LNK2019: unresolved external symbol
_fsetpos referenced in function "protected: virtual class
std::fpos<int> __thiscall std::basic_filebuf<char,struct
std::char_traits<char> >::seekpos(class std::fpos<int>,int)" (?
seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?
$fpos@H@2@V32@H@Z)
1>libcpmtd.lib(cout.obj) : error LNK2019: unresolved external symbol
_setvbuf referenced in function "protected: virtual class
std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall
std::basic_filebuf<char,struct std::char_traits<char> >::setbuf(char
*,int)" (?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEPAV?
$basic_streambuf@DU?$char_traits@D@std@@@2@PADH@Z)
1>libcpmtd.lib(cout.obj) : error LNK2019: unresolved external symbol
_fflush referenced in function "protected: virtual int __thiscall
std::basic_filebuf<char,struct std::char_traits<char> >::sync(void)" (?
sync@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEHXZ)
1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external
symbol _fflush
1>libcpmtd.lib(cout.obj) : error LNK2019: unresolved external symbol
_fclose referenced in function "public: class
std::basic_filebuf<char,struct std::char_traits<char> > * __thiscall
std::basic_filebuf<char,struct std::char_traits<char> >::close
(void)" (?close@?$basic_filebuf@DU?
$char_traits@D@std@@@std@@QAEPAV12@XZ)
1>libcpmtd.lib(cout.obj) : error LNK2019: unresolved external symbol
"void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z) referenced in
function "protected: void __thiscall std::ctype<char>::_Tidy(void)" (?
_Tidy@?$ctype@D@std@@IAEXXZ)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol
__malloc_dbg referenced in function "void * __cdecl operator new
(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??
2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external
symbol __malloc_dbg
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol
"public: __thiscall std::exception::exception(char const * const
&,int)" (??0exception@std@@QAE@ABQBDH@Z) referenced in function
"public: __thiscall std::bad_alloc::bad_alloc(void)" (??
0bad_alloc@std@@QAE@XZ)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol
__free_dbg referenced in function "void __cdecl operator delete(void
*,struct std::_DebugHeapTag_t const &,char *,int)" (??
3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external
symbol __free_dbg
1>libcpmtd.lib(stdthrow.obj) : error LNK2019: unresolved external
symbol _abort referenced in function "void __cdecl std::_Debug_message
(char const *,char const *)" (?_Debug_message@std@@YAXPBD0@Z)
1>libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external
symbol _abort
1>libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external
symbol _abort
1>libcpmtd.lib(stdthrow.obj) : error LNK2019: unresolved external
symbol _fputs referenced in function "void __cdecl std::_Debug_message
(char const *,char const *)" (?_Debug_message@std@@YAXPBD0@Z)
1>libcpmtd.lib(uncaught.obj) : error LNK2019: unresolved external
symbol "bool __cdecl __uncaught_exception(void)" (?
__uncaught_exception@@YA_NXZ) referenced in function "bool __cdecl
std::uncaught_exception(void)" (?uncaught_exception@std@@YA_NXZ)
1>libcpmtd.lib(locale0.obj) : error LNK2019: unresolved external
symbol _setlocale referenced in function "public: static void __cdecl
std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)" (?
_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z)
1>libcpmtd.lib(xwctomb.obj) : error LNK2019: unresolved external
symbol ____mb_cur_max_l_func referenced in function __Wcrtomb
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external
symbol ____mb_cur_max_l_func
1>libcpmtd.lib(xwctomb.obj) : error LNK2019: unresolved external
symbol __errno referenced in function __Wcrtomb
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external
symbol __errno
1>libcpmtd.lib(xwctomb.obj) : error LNK2019: unresolved external
symbol ____lc_codepage_func referenced in function __Wcrtomb
1>libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external
symbol ____lc_codepage_func
1>libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external
symbol ____lc_codepage_func
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external
symbol ____lc_codepage_func
1>libcpmtd.lib(xwctomb.obj) : error LNK2019: unresolved external
symbol ____lc_handle_func referenced in function __Wcrtomb
1>libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external
symbol ____lc_handle_func
1>libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external
symbol ____lc_handle_func
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external
symbol ____lc_handle_func
1>libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external
symbol ___crtLCMapStringA referenced in function __Tolower
1>libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external
symbol ___crtLCMapStringA
1>libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external
symbol ___pctype_func referenced in function __Tolower
1>libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external
symbol ___pctype_func
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external
symbol ___pctype_func
1>libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external
symbol _isupper referenced in function __Tolower
1>libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external
symbol _memcpy referenced in function __Getctype
1>libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external
symbol __calloc_dbg referenced in function __Getctype
1>libcpmtd.lib(_toupper.obj) : error LNK2019: unresolved external
symbol _islower referenced in function __Toupper
1>libcpmtd.lib(xmbtowc.obj) : error LNK2019: unresolved external
symbol __free_locale referenced in function __GetLocaleForCP
1>libcpmtd.lib(xmbtowc.obj) : error LNK2019: unresolved external
symbol __create_locale referenced in function __CreateLocForCP
1>libcpmtd.lib(xmbtowc.obj) : error LNK2019: unresolved external
symbol __ui64toa_s referenced in function __CreateLocForCP
1>D:\UC DAVIS\Research\cpp\example_clapack\Debug\test_clapack.exe :
fatal error LNK1120: 75 unresolved externals
1>Build log was saved at "file://d:\UC DAVIS\Research\cpp
\example_clapack\Debug\BuildLog.htm"
1>test_clapack - 223 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========