Menu

C++ newbie question

Alec Munro
2008-10-15
2013-04-29
  • Alec Munro

    Alec Munro - 2008-10-15

    Hi All,

    I'm trying to use CBString in a C++ project (Visual C++ 2005), and I'm getting this when I try to build:

    error LNK2019: unresolved external symbol "public: virtual __thiscall Bstrlib::CBString::~CBString(void)" (??1CBString@Bstrlib@@UAE@XZ) ...

    All I've done so far is declared a method with CBString arguments in my header file, and added a basic implementation of that method in my main .cpp file. In the header file, I've got the following:

    #include "bstrlib\bstrwrap.h"

    I'm sure this is something stupid on my part.

    Thanks. :)

     
    • anitzzenna

      anitzzenna - 2008-10-15

      You'll need to link the functions in bstrlib.c and bstrwrap.cpp into your program. The easiest way is just to add those two files to your project's source files, but you could also build them into a library and link that separately.

       
    • Alec Munro

      Alec Munro - 2008-10-16

      Thanks, that was it.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.