Hello,I wanted to use SeqAn without the provided build system for just a couple functions in a Project. Im using Visual Studio 11 right now and according to this site:
http://trac.seqan.de/wiki/BuildManual/IntegrationWithYourOwnBuildSystemall I need to do is include the seqan/include directory which I have done to a new Project. To test it Im using this file:
#include <iostream> #include <seqan/sequence.h> // CharString, ... #include <seqan/file.h> // to stream a CharString into cout int main(int, char const **) { std::cout << "Hello World!" << std::endl; seqan::CharString mySeqanString = "Hello SeqAn!"; std::cout << mySeqanString << std::endl; return 1; }Unfortunatly I get a lot of errors on build time. I attached the output to this message. If I build the "first_app" using the provided build system it builds fine, but for now Id rather juts use Seqan in my already started project and the prospect of just adding seqan to my includes seemes really nice.
Any help would be appreciated. Matthias Loose
1>------ Build started: Project: ConsoleApplication1, Configuration: Release Win32 ------ 1> seqtest.cpp 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(572): error C2664: 'GetTempPathW' : cannot convert parameter 2 from 'char [1000]' to 'LPWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(583): error C2664: 'GetTempFileNameW' : cannot convert parameter 1 from 'char [1000]' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(591): error C2664: 'DeleteFileW' : cannot convert parameter 1 from 'char [1000]' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(594): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> D:\Microsoft Visual Studio 11.0\VC\include\string.h(115) : see declaration of 'strcat' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(641): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> D:\Microsoft Visual Studio 11.0\VC\include\string.h(110) : see declaration of 'strcpy' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(717): error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'const char *' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2782: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem)' : template parameter '_Elem' is ambiguous 1> D:\Microsoft Visual Studio 11.0\VC\include\string(155) : see declaration of 'std::operator +' 1> could be 'WCHAR *' 1> or 'char' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2782: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const _Elem *)' : template parameter '_Elem' is ambiguous 1> D:\Microsoft Visual Studio 11.0\VC\include\string(145) : see declaration of 'std::operator +' 1> could be 'WCHAR' 1> or 'char' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\string(135) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem *,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'const _Elem *' from 'std::basic_string<_Elem,_Traits,_Alloc>' 1> with 1> [ 1> _Elem=char, 1> _Traits=std::char_traits<char>, 1> _Alloc=std::allocator<char> 1> ] 1> D:\Microsoft Visual Studio 11.0\VC\include\string(125) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\string(111) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(std::basic_string<_Elem,_Traits,_Alloc> &&,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\string(101) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,std::basic_string<_Elem,_Traits,_Alloc> &&)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &&' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\string(91) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2782: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem)' : template parameter '_Elem' is ambiguous 1> D:\Microsoft Visual Studio 11.0\VC\include\string(77) : see declaration of 'std::operator +' 1> could be 'WCHAR *' 1> or 'char' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2782: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem *)' : template parameter '_Elem' is ambiguous 1> D:\Microsoft Visual Studio 11.0\VC\include\string(63) : see declaration of 'std::operator +' 1> could be 'WCHAR' 1> or 'char' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\string(49) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const _Elem *,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'const _Elem *' from 'std::basic_string<_Elem,_Traits,_Alloc>' 1> with 1> [ 1> _Elem=char, 1> _Traits=std::char_traits<char>, 1> _Alloc=std::allocator<char> 1> ] 1> D:\Microsoft Visual Studio 11.0\VC\include\string(35) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::basic_string<_Elem,_Traits,_Alloc> std::operator +(const std::basic_string<_Elem,_Traits,_Alloc> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\string(21) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::_Vb_iterator<_Alloc> std::operator +(_Alloc::difference_type,std::_Vb_iterator<_Alloc>)' : could not deduce template argument for 'std::_Vb_iterator<_Alloc>' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\vector(2204) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::_Vb_const_iterator<_Alloc> std::operator +(_Alloc::difference_type,std::_Vb_const_iterator<_Alloc>)' : could not deduce template argument for 'std::_Vb_const_iterator<_Alloc>' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\vector(2097) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::_Vector_iterator<_Myvec> std::operator +(_Vector_iterator<_Myvec>::difference_type,std::_Vector_iterator<_Myvec>)' : could not deduce template argument for 'std::_Vector_iterator<_Myvec>' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\vector(409) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::_Vector_const_iterator<_Myvec> std::operator +(_Vector_const_iterator<_Myvec>::difference_type,std::_Vector_const_iterator<_Myvec>)' : could not deduce template argument for 'std::_Vector_const_iterator<_Myvec>' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\vector(278) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::_String_iterator<_Mystr> std::operator +(_String_iterator<_Mystr>::difference_type,std::_String_iterator<_Mystr>)' : could not deduce template argument for 'std::_String_iterator<_Mystr>' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\xstring(420) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::_String_const_iterator<_Mystr> std::operator +(_String_const_iterator<_Mystr>::difference_type,std::_String_const_iterator<_Mystr>)' : could not deduce template argument for 'std::_String_const_iterator<_Mystr>' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\xstring(288) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::move_iterator<_RanIt> std::operator +(_Diff,const std::move_iterator<_RanIt> &)' : could not deduce template argument for 'const std::move_iterator<_RanIt> &' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\xutility(1947) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::_Array_iterator<_Ty,_Size> std::operator +(_Array_iterator<_Ty,_Size>::difference_type,std::_Array_iterator<_Ty,_Size>)' : could not deduce template argument for 'std::_Array_iterator<_Ty,_Size>' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\xutility(1801) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::_Array_const_iterator<_Ty,_Size> std::operator +(_Array_const_iterator<_Ty,_Size>::difference_type,std::_Array_const_iterator<_Ty,_Size>)' : could not deduce template argument for 'std::_Array_const_iterator<_Ty,_Size>' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\xutility(1662) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::reverse_iterator<_RanIt> std::operator +(_Diff,const std::reverse_iterator<_RanIt> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\xutility(1226) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2784: 'std::_Revranit<_RanIt,_Base> std::operator +(_Diff,const std::_Revranit<_RanIt,_Base> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'WCHAR [260]' 1> D:\Microsoft Visual Studio 11.0\VC\include\xutility(1031) : see declaration of 'std::operator +' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(722): error C2676: binary '+' : 'std::basic_string<_Elem,_Traits,_Alloc>' does not define this operator or a conversion to a type acceptable to the predefined operator 1> with 1> [ 1> _Elem=char, 1> _Traits=std::char_traits<char>, 1> _Alloc=std::allocator<char> 1> ] 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(723): error C2664: 'DeleteFileW' : cannot convert parameter 1 from 'const char *' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(729): error C2664: 'RemoveDirectoryW' : cannot convert parameter 1 from 'const char *' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(1560): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> D:\Microsoft Visual Studio 11.0\VC\include\string.h(115) : see declaration of 'strcat' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(1561): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> D:\Microsoft Visual Studio 11.0\VC\include\string.h(115) : see declaration of 'strcat' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/basic/debug_test_system.h(1562): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> D:\Microsoft Visual Studio 11.0\VC\include\string.h(115) : see declaration of 'strcat' 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/system/system_mutex.h(74): warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning) 1>D:\DEVELOPMENT\cpp-vs\seqan\include\seqan/system/system_event.h(103): warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========