Linker Error using wxString with C++ Builder

Gary gapjunk at gmail.com
Sun Apr 13 09:23:15 PDT 2008




I'm trying to link my program with the wx libraries, but it appears
I'm not.  I'm uncertain which files should be linked in.


On Apr 13, 9:07 am, Vadim Zeitlin <va... at wxwidgets.org> wrote:
> On Sun, 13 Apr 2008 09:04:46 -0700 (PDT) Gary <gapj... at gmail.com> wrote:
>
> G> I'm using Borlands C++ Builder 5 and want to include the wxString
> G> class.  I have the following code:
> G>
> G> #include <wx/string.h>
> G> wxString Test="Test";
> G>
> G> and I get the following linker Errors
> G>
> G> [Linker Error] Unresolved external 'wxStringBase::npos' referenced
> G> from START.OBJ
> G> [Linker Error] Unresolved external 'wxStringBase::InitWith(const char
> G> *, unsigned int, unsigned int)' referenced from START.OBJ
>
>  Well, do you link your program with wx libraries?
>
>  Maybe the best would be to start with the makefile or project file (I
> don't know what do you use) of the minimal sample and adjust them to your
> own program. If you want something more automatic, you could look into
> bakefile (http://www.bakefile.org/).
>
>  Regards,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
>                http://www.tt-solutions.com/



More information about the wx-users mailing list