wxwidgets dll problems

whatazor dannox at gmail.com
Sun Jul 1 10:43:55 PDT 2007


Hi,
I try to convert a project to make dll instead of dll. A part of this
involve wxwidgets.
I've read several documents or posts on web, and from many linking
error I reduce
to 3 link errors.

Before I want to make a question. If I have a project that depends
from a library (like wxwidgets) and I want to make a dll for this
project, is it more convenient for me to make the dll of the project
and link statically the library or make project and library like dll?
And what are the difference in the first or the second case?

Now the specific questions:

file1.obj : error LNK2001: unresolved external symbol "class wxPoint
const wxDefaultPosition" (?wxDefaultPosition@@3VwxPoint@@B)
file1.obj : error LNK2001: unresolved external symbol "char const *
const wxEmptyString" (?wxEmptyString@@3PBDB)
file2.obj : error LNK2001: unresolved external symbol "char const *
const wxEmptyString" (?wxEmptyString@@3PBDB)
file1.obj : error LNK2001: unresolved external symbol "public: static
unsigned int const wxStringBase::npos" (?npos at wxStringBase@@2IB)
file3.obj : error LNK2001: unresolved external symbol "public: static
unsigned int const wxStringBase::npos" (?npos at wxStringBase@@2IB)
c:\test\myProject.dll : fatal error LNK1120: 3 unresolved externals

These are the errors I don't know to solve. Any ideas?

Thank you very much,

w







More information about the wx-users mailing list