hi all,
i had done all my coding in visual 2005 express edition,but when i try to compile the same in visual studio 6, i am getting errors for "vector functions".
Can anyone suggest some solution?
Printable View
hi all,
i had done all my coding in visual 2005 express edition,but when i try to compile the same in visual studio 6, i am getting errors for "vector functions".
Can anyone suggest some solution?
I can only suggest you post the full error text here.
ERROR TEST::
Code:
--------------------Configuration: RunnerBlade - Win32 Debug--------------------
Compiling...
runner_blade.cpp
c:\program files\microsoft visual studio\vc98\include\vector(48) : warning C4786: '??0?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAE@IABV
?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@ABV?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@1@@Z' : identifier was truncated to '255' characters in the browser information
d:\backup_qi-287\geconfidential\rajesh\hitachi_runner_blade\code_runner_blade\runnerblade\deffile.h(36) : see reference to class template instantiation 'std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::alloca
tor<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(61) : warning C4786: '??0?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAE@PBV?
$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@0ABV?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@1@@Z' : identifier was truncated to '255' characters in the browser information
d:\backup_qi-287\geconfidential\rajesh\hitachi_runner_blade\code_runner_blade\runnerblade\deffile.h(36) : see reference to class template instantiation 'std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::alloca
tor<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(103) : warning C4786: '?rbegin@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QA
E?AV?$reverse_iterator@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@AAV12@PAV12@H@2@XZ' : identifier was truncated to '255' characters in the browser information
d:\backup_qi-287\geconfidential\rajesh\hitachi_runner_blade\code_runner_blade\runnerblade\deffile.h(36) : see reference to class template instantiation 'std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::alloca
tor<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(105) : warning C4786: '?rbegin@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QB
E?AV?$reverse_iterator@PBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@ABV12@PBV12@H@2@XZ' : identifier was truncated to '255' characters in the browser information
d:\backup_qi-287\geconfidential\rajesh\hitachi_runner_blade\code_runner_blade\runnerblade\deffile.h(36) : see reference to class template instantiation 'std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::alloca
tor<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(107) : warning C4786: '?rend@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAE?
AV?$reverse_iterator@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@AAV12@PAV12@H@2@XZ' : identifier was truncated to '255' characters in the browser information
d:\backup_qi-287\geconfidential\rajesh\hitachi_runner_blade\code_runner_blade\runnerblade\deffile.h(36) : see reference to class template instantiation 'std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::alloca
tor<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >' being compiled
c:\program files\microsoft visual studio\vc98\include\vector(108) : warning C4786: '?rend@?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QBE?
AV?$reverse_iterator@PBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@ABV12@PBV12@H@2@XZ' : identifier was truncated to '255' characters in the browser information
d:\backup_qi-287\geconfidential\rajesh\hitachi_runner_blade\code_runner_blade\runnerblade\deffile.h(36) : see reference to class template instantiation 'std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::alloca
tor<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >' being compiled
d:\apps\ugs\nx 4.0\ugopen\uf_retiring.h(3982) : error C2955: 'vector' : use of class template requires template argument list
c:\program files\microsoft visual studio\vc98\include\vector(244) : see declaration of 'vector'
d:\apps\ugs\nx 4.0\ugopen\uf_modl.h(4497) : error C2955: 'vector' : use of class template requires template argument list
c:\program files\microsoft visual studio\vc98\include\vector(244) : see declaration of 'vector'
defGeometry.cpp
D:\Backup_QI-287\GEConfidential\rajesh\Hitachi_runner_blade\code_runner_blade\RunnerBlade\defGeometry.cpp(97) : error C2664: '__thiscall std::vector<struct point,class std::allocator<struct point> >::std::vector<struct point,class std::allocator<str
uct point> >(unsigned int,const struct point &,const class std::allocator<struct point> &)' : cannot convert parameter 1 from 'class std::reverse_iterator<struct point *,struct point,struct point &,struct point *,int>' to 'unsigned int'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Backup_QI-287\GEConfidential\rajesh\Hitachi_runner_blade\code_runner_blade\RunnerBlade\defGeometry.cpp(98) : error C2664: '__thiscall std::vector<struct point,class std::allocator<struct point> >::std::vector<struct point,class std::allocator<str
uct point> >(unsigned int,const struct point &,const class std::allocator<struct point> &)' : cannot convert parameter 1 from 'class std::reverse_iterator<struct point *,struct point,struct point &,struct point *,int>' to 'unsigned int'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Error executing cl.exe.
Creating browse info file...
RunnerBlade.exe - 4 error(s), 6 warning(s)
VC++ 6.0 sucks. The STL on 6.0 is broken. I created a bunch of header wrappers that should get rid of most of the warnings using #pragma statements.
Here are some of them... (Note: these shouldn't be required on VC++ versions higher than 6.0)
Here are some more:
Note that the error is being discussed here:
http://cboard.cprogramming.com/showthread.php?t=99276
And more (why can't we attach more than 5 files at a time?)
Perhaps a zip would work better?
Last one:
Just rename it .txt and it will be fine if you mention that it is a zip file in the post.