<br>Hi Mostafizur,<br><br><br> ITK (any version) does not support Visual Studio 10 yet.<br><br><br>There were some structural changes made to Visual Studio 10,<br>that require CMake to manage the configuration process in a<br>
way different from what is done with Visual Studio 9.<br><br><br>We will have Visual Studio 10 support for ITK in our top priorities<br>for the development cycle of ITK 3.19.<br><br><br><br> Regards,<br><br><br> Luis<br>
<br><br><br>---------------------------------------------------------------------------------------<br><div class="gmail_quote">On Mon, Apr 19, 2010 at 4:42 PM, Md Rahman <span dir="ltr"><<a href="mailto:rahman@sfu.ca">rahman@sfu.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi ,<br>
<br>
I was trying to compile the Hello World program using the latest version of ITK release and MS Visual Studio 10 trial version. Then I was getting the following error--<br>
LINK : fatal error LNK1104: cannot open file "ITKCommon.lib"<br>
<br>
Every time I was building the project using only Debug mode. Then I realized that I had to open and compile the ITK.sln file from the binary directory. But when I tried to compile the ITK.sln, it fails to build and giving me errors like--<br>
<br>
"""<br>
<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2146: syntax error : missing ';' before identifier 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT'<br>
28> c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(636) : see reference to class template instantiation 'itk::hashtable<Value,Key,HashFcn,ExtractKey,EqualKey,Alloc>' being compiled<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2433: 'itk::==' : 'friend' not permitted on data declarations<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2365: 'itk::operator ==' : redefinition; previous definition was 'function'<br>
28> c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(354) : see declaration of 'itk::operator =='<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2091: function returns function<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): warning C4183: 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT': missing return type; assumed to be a member function returning 'int'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(1154): error C2953: 'std::identity' : class template has already been defined<br>
28> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(66) : see declaration of 'std::identity'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2146: syntax error : missing ';' before identifier 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT'<br>
28> c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(230) : see reference to class template instantiation 'itk::hash_map<Key,T,HashFcn,EqualKey,Alloc>' being compiled<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2433: 'itk::==' : 'friend' not permitted on data declarations<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2365: 'itk::operator ==' : redefinition; previous definition was 'function'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2091: function returns function<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): warning C4183: 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT': missing return type; assumed to be a member function returning 'int'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(292): error C2146: syntax error : missing ';' before identifier 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT'<br>
28> c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(327) : see reference to class template instantiation 'itk::hash_multimap<Key,T,HashFcn,EqualKey,Alloc>' being compiled<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(292): error C2433: 'itk::==' : 'friend' not permitted on data declarations<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(292): error C2365: 'itk::operator ==' : redefinition; previous definition was 'function'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(292): error C2091: function returns function<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(292): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(292): warning C4183: 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT': missing return type; assumed to be a member function returning 'int'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2146: syntax error : missing ';' before identifier 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT'<br>
28> c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(138) : see reference to class template instantiation 'itk::hashtable<Value,Key,HashFcn,ExtractKey,EqualKey,Alloc>' being compiled<br>
28> with<br>
28> [<br>
28> Value=std::pair<const unsigned long,unsigned long>,<br>
28> Key=unsigned long,<br>
28> HashFcn=itk::hash<unsigned long>,<br>
28> ExtractKey=std::select1st<std::pair<const unsigned long,unsigned long>>,<br>
28> EqualKey=std::equal_to<unsigned long>,<br>
28> Alloc=std::allocator<char><br>
28> ]<br>
28> c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itkEquivalencyTable.h(61) : see reference to class template instantiation 'itk::hash_map<Key,T,HashFcn>' being compiled<br>
28> with<br>
28> [<br>
28> Key=unsigned long,<br>
28> T=unsigned long,<br>
28> HashFcn=itk::hash<unsigned long><br>
28> ]<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2433: 'itk::==' : 'friend' not permitted on data declarations<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2365: 'itk::operator ==' : redefinition; previous definition was 'function'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2091: function returns function<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): warning C4183: 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT': missing return type; assumed to be a member function returning 'int'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2146: syntax error : missing ';' before identifier 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2433: 'itk::==' : 'friend' not permitted on data declarations<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2365: 'itk::operator ==' : redefinition; previous definition was 'function'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2091: function returns function<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): warning C4183: 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT': missing return type; assumed to be a member function returning 'int'<br>
<br>
"""<br>
<br>
<br>
And<br>
<br>
"""<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2146: syntax error : missing ';' before identifier 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT'<br>
28> c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(636) : see reference to class template instantiation 'itk::hashtable<Value,Key,HashFcn,ExtractKey,EqualKey,Alloc>' being compiled<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2433: 'itk::==' : 'friend' not permitted on data declarations<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2365: 'itk::operator ==' : redefinition; previous definition was 'function'<br>
28> c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(354) : see declaration of 'itk::operator =='<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2091: function returns function<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): warning C4183: 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT': missing return type; assumed to be a member function returning 'int'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(1154): error C2953: 'std::identity' : class template has already been defined<br>
28> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(66) : see declaration of 'std::identity'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2146: syntax error : missing ';' before identifier 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT'<br>
28> c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(230) : see reference to class template instantiation 'itk::hash_map<Key,T,HashFcn,EqualKey,Alloc>' being compiled<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2433: 'itk::==' : 'friend' not permitted on data declarations<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2365: 'itk::operator ==' : redefinition; previous definition was 'function'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2091: function returns function<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): warning C4183: 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT': missing return type; assumed to be a member function returning 'int'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(292): error C2146: syntax error : missing ';' before identifier 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT'<br>
28> c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(327) : see reference to class template instantiation 'itk::hash_multimap<Key,T,HashFcn,EqualKey,Alloc>' being compiled<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(292): error C2433: 'itk::==' : 'friend' not permitted on data declarations<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(292): error C2365: 'itk::operator ==' : redefinition; previous definition was 'function'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(292): error C2091: function returns function<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(292): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(292): warning C4183: 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT': missing return type; assumed to be a member function returning 'int'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2146: syntax error : missing ';' before identifier 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT'<br>
28> c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(138) : see reference to class template instantiation 'itk::hashtable<Value,Key,HashFcn,ExtractKey,EqualKey,Alloc>' being compiled<br>
28> with<br>
28> [<br>
28> Value=std::pair<const unsigned long,unsigned long>,<br>
28> Key=unsigned long,<br>
28> HashFcn=itk::hash<unsigned long>,<br>
28> ExtractKey=std::select1st<std::pair<const unsigned long,unsigned long>>,<br>
28> EqualKey=std::equal_to<unsigned long>,<br>
28> Alloc=std::allocator<char><br>
28> ]<br>
28> c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itkOneWayEquivalencyTable.h(61) : see reference to class template instantiation 'itk::hash_map<Key,T,HashFcn>' being compiled<br>
28> with<br>
28> [<br>
28> Key=unsigned long,<br>
28> T=unsigned long,<br>
28> HashFcn=itk::hash<unsigned long><br>
28> ]<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2433: 'itk::==' : 'friend' not permitted on data declarations<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2365: 'itk::operator ==' : redefinition; previous definition was 'function'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C2091: function returns function<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hashtable.h(474): warning C4183: 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT': missing return type; assumed to be a member function returning 'int'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2146: syntax error : missing ';' before identifier 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2433: 'itk::==' : 'friend' not permitted on data declarations<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2365: 'itk::operator ==' : redefinition; previous definition was 'function'<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C2091: function returns function<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
28>c:\users\rajib\documents\downloads\insighttoolkit-3.18.0\insighttoolkit-3.18.0\code\common\itk_hash_map.h(188): warning C4183: 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT': missing return type; assumed to be a member function returning 'int'<br>
<br>
"""<br>
<br>
<br>
The all other builds are successful. I'm quite new with ITK. So, I'm not quite sure whether I'm doing anything wrong, or the problem with the latest release of ITK, or with the latest realease of MS VS 10 (trial version).<br>
<br>
<br>
This is my first e-mail to this group and extremely sorry for such a weird one.<br>
<br>
<br>
Any help will be greatly appreciated.<br>
<br>
Thanks and Regards,<br>
<br>
Md. Mostafizur Rahman (Rajib)<br>
Department of Computing Science<br>
Simon Fraser University<br>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>