version problem!

This is a discussion on version problem! within the C++ Programming forums, part of the General Programming Boards category; hi all, i had done all my coding in visual 2005 express edition,but when i try to compile the same ...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    78

    Smile version problem!

    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?

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    I can only suggest you post the full error text here.
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    78
    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)

  4. #4
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    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)
    Attached Files Attached Files
    Last edited by cpjust; 02-19-2008 at 10:26 PM.

  5. #5
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Here are some more:
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    Note that the error is being discussed here:

    visual studio 2006 problem

  7. #7
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    And more (why can't we attach more than 5 files at a time?)
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    Perhaps a zip would work better?

  9. #9
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Last one:
    Attached Files Attached Files

  10. #10
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Daved View Post
    Perhaps a zip would work better?
    I tried. The damn thing doesn't allow zip files.

  11. #11
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,452
    Quote Originally Posted by cpjust View Post
    VC++ 6.0 sucks.
    Even after installing WinSDK?
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  12. #12
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    Just rename it .txt and it will be fine if you mention that it is a zip file in the post.

  13. #13
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Daved View Post
    Just rename it .txt and it will be fine if you mention that it is a zip file in the post.
    People wouldn't have to cheat like that in the first place if they got rid of the .zip restriction.
    Maybe one of these days I'll put the files up on one of those free websites...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. How to set File Version of VC++ 6 dll
    By mercury529 in forum Windows Programming
    Replies: 3
    Last Post: 12-08-2006, 01:49 PM
  3. small reference problem
    By DavidP in forum C++ Programming
    Replies: 6
    Last Post: 06-21-2004, 07:29 PM
  4. Problem with destructors.
    By Hulag in forum C++ Programming
    Replies: 7
    Last Post: 06-11-2004, 12:30 PM
  5. Replies: 5
    Last Post: 12-03-2003, 04:47 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21