link error

Anonymous
2003-04-03
2003-04-29
  • Anonymous - 2003-04-03

    I'm getting the following link error when linking with cppunitd.lib:

    error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (??6std@@YAAAV?$basic_ostream@DU?$cha
    r_traits@D@std@@@0@AAV10@PBD@Z) already defined...
    fatal error LNK1169: one or more multiply defined symbols found

    If I try the /force link option or linking with cppunitd_dll.lib, then I get an access violation.

    My application uses Visibroker and RogueWave.

    Does anyone have any suggestions.

    Thanks in advance.
    abrewing

     
    • Anonymous - 2003-04-29

      I have the same error. How do I get rid of that? Is there any way to get STL out of the cppunitd.lib or to disable it's usage from there?

      Thanks beforehand,
      Rubs.

       
    • Ingo Steinhaeuser

      Are you compiling using the same configuration (DEBUG, RELEASE, whatever...) you compiled cppunitd.lib with?
      If not, doing so might solve the problem...

      Greeting,

      I.Steinhaeuser

       

Log in to post a comment.