Hello,
i am new to Code::Blocks so please be gentle :lol:
i have a vc++6 project (complex one) and would like to port it to code::blocks. i have imported .dsw file and there were one warning thrown saying failed to import *any* projects. this didnt make sense hence ignored it.
I select the default compiler and the debugger as settings-> Compiler and debugger settings -> Microsoft visual c++ 2005/2008. I can see all the files and and also c::b allows me to find definitions etc...
how ever when i try to build the project i get lots of errors!!!!! same project i can build vc++6 without any problems.
||=== xxxxxxx, Win32 Debug ===|
c:\program files\microsoft visual studio\vc98\include\ocidl.h|4675|error C4430: missing type specifier - int assumed. Note: C++ does not support default-int|
c:\program files\microsoft visual studio\vc98\atl\include\atlbase.h|769|error C2065: 'T' : undeclared identifier|
c:\program files\microsoft visual studio\vc98\atl\include\atlbase.h|816|error C2061: syntax error : identifier 'T'|
c:\program files\microsoft visual studio\vc98\atl\include\atlbase.h|818|error C2065: 'ppT' : undeclared identifier|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2282|warning C4346: 'ATL::CComObjectRootEx<ThreadModel>::ATL::CComObjectRootEx<ThreadModel>::_ThreadModel::AutoCriticalSection' : dependent name is not a type|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2282|error C2146: syntax error : missing ';' before identifier '_CritSec'|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2282|error C4430: missing type specifier - int assumed. Note: C++ does not support default-int|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2299|error C2146: syntax error : missing ';' before identifier 'm_critsec'|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2299|error C4430: missing type specifier - int assumed. Note: C++ does not support default-int|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2299|error C4430: missing type specifier - int assumed. Note: C++ does not support default-int|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2632|warning C4346: 'contained::_ThreadModel::ThreadModelNoCS' : dependent name is not a type|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2632|error C2923: 'ATL::CComObjectRootEx' : 'contained::_ThreadModel::ThreadModelNoCS' is not a valid template type argument for parameter 'ThreadModel'|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2633|error C2955: 'ATL::CComObjectRootEx' : use of class template requires template argument list|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2724|warning C4346: 'contained::_ThreadModel::ThreadModelNoCS' : dependent name is not a type|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2724|error C2923: 'ATL::CComObjectRootEx' : 'contained::_ThreadModel::ThreadModelNoCS' is not a valid template type argument for parameter 'ThreadModel'|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2725|error C2955: 'ATL::CComObjectRootEx' : use of class template requires template argument list|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2851|warning C4346: 'contained::_ThreadModel::ThreadModelNoCS' : dependent name is not a type|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2851|error C2923: 'ATL::CComObjectRootEx' : 'contained::_ThreadModel::ThreadModelNoCS' is not a valid template type argument for parameter 'ThreadModel'|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|2852|error C2955: 'ATL::CComObjectRootEx' : use of class template requires template argument list|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|3259|error C2065: 'j' : undeclared identifier|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|3983|warning C4346: 'ATL::IDispEventImpl<nID,T,pdiid,plibid,wMajor,wMinor,tihclass>::_tihclass' : dependent name is not a type|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|3983|error C2143: syntax error : missing ';' before 'ATL::IDispEventImpl<nID,T,pdiid,plibid,wMajor,wMinor,tihclass>::_tih'|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|3983|error C4430: missing type specifier - int assumed. Note: C++ does not support default-int|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|3983|error C2888: 'IDispEventImpl<nID,T,pdiid,plibid,wMajor,wMinor,tihclass>::_tihclass _tihclass' : symbol cannot be defined within namespace 'ATL'|
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h|3983|fatal error C1903: unable to recover from previous error(s); stopping compilation|
||=== Build finished: 20 errors, 5 warnings ===|
can somebody help me to figure out the problem.
thanks
ooo7