Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8452389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:29:14+00:00 2026-06-10T11:29:14+00:00

I will not paste the whole program, but just the included files and the

  • 0

I will not paste the whole program, but just the included files and the errors, as I am very sure, the error lies there itself!

Files included in VS 2010

#include <cstdlib>
#include <windows.h>
#include "iostream"
#include "conio.h"
#include "vector"
#include "math.h"
#include <string.h>
#include <bitset>

Files included in Visual C++ 6.0

#include <cstdlib>
#include <windows.h>
#include "iostream"
#include "conio.h"
#include "vector"
#include "math.h"
#include <string.h>
#include <bitset>
#include <String>

Well, there is just one difference, I added #include <String> in Visual C++ 2006, this particular file reduced the error which read as

error C2678: binary ‘!=’ : no operator defined which takes a left-hand operand of type () ‘class std::basic_string,class std::allocator >’
(or there is no acceptable conversion)

The other major errors I am still facing in VS2006 are

Line : str.append(to_string((long double)(value)));

Error: error C2065: 'to_string' : undeclared identifier

Line: vector <vector <float>> distOfSectionPoint, momentAtSectionPoint, preFinalMoment, finalMoments, momentAtSectionPtOnPtLoadProfile ;

Error: error C2208: 'class std::vector' : no members defined using this type

Can anyone explain what goes wrong in Visual C++ 2006??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:29:15+00:00Added an answer on June 10, 2026 at 11:29 am

    Assuming to_string is std::to_string, then that’s a C++11 function which won’t be available in older compilers. You could cobble together something roughly equivalent, like

    template <typename T>
    std::string nonstd::to_string(T const & t) {
        std::ostringstream s;
        s << t;
        // For bonus points, add some error checking here
        return s.str();
    }
    

    The error involving vector is caused by the two closing angle-brackets, which older compilers would interpret as a single >> token. Add a space between them:

    vector<vector<float> >
                        ^
    

    It’s not quite clear which compiler you’re using, since there was no Visual C++ 2006. If you actually mean Visual C++ 6.0 (from 1998), then you’re probably doomed. There have been two major language revisions since then, making it very difficult to write code supported by both that compiler, and modern compilers. If you mean 2005 or 2008, then just be careful to avoid C++11 features.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hope this question will not be rejected as there is no code. But
By default it will not print out anything until the whole page has finished
I'am using the below code to copy paste..but it doesnt copy the whole context
There is very simple task I want to do, that somehow makes the program
My host will not allow me to change the default folder of my primary
I do not understand why the dialog will not work for width in Firefox
The following example will not compile for me: #include <iostream> #include <functional> #include <string>
this code will not pass the query string to default3.aspx on Image Button ..
My jar will not run after I compiled it. I use this ant build
Hi im working on a trigger that will not allow inserts/updates when the newly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.