From: Victor O. <vi...@cs...> - 2007-01-31 22:58:03
|
Hi, I've been having some trouble linking the blitz library to the project examples included in the file. I'm using VS.NET 2005 and the solution is written for VS 2003. I just used a project conversion without altering anything else. Apparently, the library compiles fine, but linking the examples is a problem. Here are the linker errors I received. Thanks a lot Victor Ochoa Ph.D. Candidate Computer Science Department University of Alberta D:\Libraries\Blitz\blitz/array/storage.h(106) : warning C4805: '&' : unsafe mix of type 'bool' and type 'int' in operation D:\Libraries\Blitz\blitz/array/storage.h(103) : while compiling class template member function 'bool blitz::GeneralArrayStorage<N_rank>::allRanksStoredAscending(void) const' with [ N_rank=1 ] D:\Libraries\Blitz\blitz/array/storage.h(201) : see reference to class template instantiation 'blitz::GeneralArrayStorage<N_rank>' being compiled with [ N_rank=1 ] D:\Libraries\Blitz\blitz/array/storage.h(106) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) D:\Libraries\Blitz\blitz/array/storage.h(106) : warning C4805: '&' : unsafe mix of type 'bool' and type 'int' in operation D:\Libraries\Blitz\blitz/array/storage.h(103) : while compiling class template member function 'bool blitz::GeneralArrayStorage<N_rank>::allRanksStoredAscending(void) const' with [ N_rank=2 ] D:\Libraries\Blitz\blitz/array/storage.h(204) : see reference to class template instantiation 'blitz::GeneralArrayStorage<N_rank>' being compiled with [ N_rank=2 ] D:\Libraries\Blitz\blitz/array/storage.h(106) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) D:\Libraries\Blitz\blitz/array/storage.h(106) : warning C4805: '&' : unsafe mix of type 'bool' and type 'int' in operation D:\Libraries\Blitz\blitz/array/storage.h(103) : while compiling class template member function 'bool blitz::GeneralArrayStorage<N_rank>::allRanksStoredAscending(void) const' with [ N_rank=3 ] D:\Libraries\Blitz\blitz/array/storage.h(207) : see reference to class template instantiation 'blitz::GeneralArrayStorage<N_rank>' being compiled with [ N_rank=3 ] D:\Libraries\Blitz\blitz/array/storage.h(106) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) D:\Libraries\Blitz\blitz/array/fastiter.h(195) : warning C4996: 'sprintf' was declared deprecated D:\Microsoft Visual Studio\VC\include\stdio.h(345) : see declaration of 'sprintf' Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' D:\Libraries\Blitz\blitz/array/fastiter.h(176) : while compiling class template member function 'void blitz::FastArrayIterator<P_numtype,N_rank>::prettyPrint(std::string &,blitz::prettyPrintFormat &) const' with [ P_numtype=int, N_rank=1 ] D:\Libraries\Blitz\blitz/array/asexpr.h(85) : see reference to class template instantiation 'blitz::FastArrayIterator<P_numtype,N_rank>' being compiled with [ P_numtype=int, N_rank=1 ] ..\..\testsuite\arrayresize.cpp(22) : see reference to class template instantiation 'blitz::BzBinaryExprResult<OP,O1,O2>' being compiled with [ OP=blitz::Equal, O1=blitz::Array<int,1>, O2=std::complex<long double> ] Linking... blitz.lib(globals.obj) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl blitz::operator<<<int>(class std::basic_ostream<char,struct std::char_traits<char> > &,class blitz::Vector<int> const &)" (??$?6H@blitz@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV12@ABV?$ Vector@H@0@@Z) already defined in arrayresize.obj blitz.lib(globals.obj) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl blitz::operator<<<float>(class std::basic_ostream<char,struct std::char_traits<char> > &,class blitz::Vector<float> const &)" (??$?6M@blitz@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV12@ABV?$ Vector@M@0@@Z) already defined in arrayresize.obj blitz.lib(globals.obj) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl blitz::operator<<<double>(class std::basic_ostream<char,struct std::char_traits<char> > &,class blitz::Vector<double> const &)" (??$?6N@blitz@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV12@ABV?$ Vector@N@0@@Z) already defined in arrayresize.obj Release/arrayresize.exe : fatal error LNK1169: one or more multiply defined symbols found Build log was saved at "file://d:\Libraries\Blitz\Blitz-Testsuite\arrayresize\Release\BuildLog.htm" arrayresize - 4 error(s), 7 warning(s) |