linker error MS Visual C++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rknowles

    #1

    linker error MS Visual C++

    while trying to compile a relatively simple project, I recieved the error:
    " error LNK2001: unresolved external symbol "class
    std::basic_ostr eam<char,struct std::char_trait s<char>......"

    I checked MSDN and found the page stating that this error is generated by
    design. If I want to avoid getting that error I should remove the /GZ
    argument from the compiler switches in the project.

    I went to Project Settings->C/C++->Project Options and removed the argument
    but, I still get the message. Any suggestions from anyone?

    Thanks in advance.
    Roger


  • ksukhonosenko@yandex.ru

    #2
    Re: linker error MS Visual C++

    Hi!

    Give us full error output & compiler & linker switches.

    Kirill

    Comment

    • Jim Langston

      #3
      Re: linker error MS Visual C++

      "rknowles" <rknowles@mchsi .comwrote in message
      news:38kSg.2088 89$1i1.99954@at tbi_s72...
      while trying to compile a relatively simple project, I recieved the error:
      " error LNK2001: unresolved external symbol "class
      std::basic_ostr eam<char,struct std::char_trait s<char>......"
      >
      I checked MSDN and found the page stating that this error is generated by
      design. If I want to avoid getting that error I should remove the /GZ
      argument from the compiler switches in the project.
      >
      I went to Project Settings->C/C++->Project Options and removed the
      argument but, I still get the message. Any suggestions from anyone?
      >
      Thanks in advance.
      Roger
      You seem to be using an ostream wrong. You are trying to do something that
      isn't done the way you are trying to do it. I hate these types of errors
      because they are extremely hard to decipher what the actual error is. What
      you'll need to do is give us the line of code that this error is occuring
      on, with any supporting code (if you are trying to output something from a
      class we'll probably need to see the class definition also, etc...).


      Comment

      Working...