Need help with 2.6.3 MSW DLL
Tim Stahlhut
stahta01 at highstream.net
Tue Apr 3 16:41:21 PDT 2007
Mickey Mestel wrote:
> hi,
>
> on XP, with VS2005. have successfully built and use static versions of widgets with VS2005, but when i build the dll's, i'm getting the following on linking my app:
>
> Sandbox.obj : error LNK2001: unresolved external symbol "class wxCSConv & wxConvISO8859_1" (?wxConvISO8859_1@@3AAVwxCSConv@@A)
>
> Sandbox.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxFrameNameStr" (?wxFrameNameStr@@3PB_WB)
>
> Sandbox.obj : error LNK2001: unresolved external symbol "class wxColour * wxLIGHT_GREY" (?wxLIGHT_GREY@@3PAVwxColour@@A)
>
> Sandbox.obj : error LNK2001: unresolved external symbol "int const wxEVT_TIMER" (?wxEVT_TIMER@@3HB)
>
> Sandbox.obj : error LNK2001: unresolved external symbol "int const wxEVT_COMMAND_MENU_SELECTED" (?wxEVT_COMMAND_MENU_SELECTED@@3HB)
>
> Sandbox.obj : error LNK2001: unresolved external symbol "int const wxEVT_RIGHT_DOWN" (?wxEVT_RIGHT_DOWN@@3HB)
>
> this is just a sample, i'm coming up with about 54 unresolved externals.
>
> i first build the dll's from the converted wx.dsw, (VC6 to VS2005). then reading in the install notes i saw that there is a wx_dll.dsw, and that the dll's needed to be built in a specific order. converted the wx_dll.dsw and built the dll's, and no difference.
>
> any thoughts? it looks like i'm just missing a define or something, but i can't find it.
>
> thanks,
>
> mickm
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
> <META content="MSHTML 6.00.6000.16414" name=GENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=#ffffff>
> <DIV><FONT face=Arial size=2>hi,</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT> </DIV>
> <DIV><FONT face=Arial size=2> on XP, with VS2005. have
> successfully built and use static versions of widgets with VS2005, but when i
> build the dll's, i'm getting the following on linking my app:</FONT></DIV>
> <DIV><FONT face=Arial size=2></FONT> </DIV>
> <DIV><FONT size=1>
> <P>Sandbox.obj : error LNK2001: unresolved external symbol "class wxCSConv &
> wxConvISO8859_1" (?wxConvISO8859_1@@3AAVwxCSConv@@A)</P>
> <P>Sandbox.obj : error LNK2001: unresolved external symbol "wchar_t const *
> const wxFrameNameStr" (?wxFrameNameStr@@3PB_WB)</P>
> <P>Sandbox.obj : error LNK2001: unresolved external symbol "class wxColour *
> wxLIGHT_GREY" (?wxLIGHT_GREY@@3PAVwxColour@@A)</P>
> <P>Sandbox.obj : error LNK2001: unresolved external symbol "int const
> wxEVT_TIMER" (?wxEVT_TIMER@@3HB)</P>
> <P>Sandbox.obj : error LNK2001: unresolved external symbol "int const
> wxEVT_COMMAND_MENU_SELECTED" (?wxEVT_COMMAND_MENU_SELECTED@@3HB)</P>
> <P>Sandbox.obj : error LNK2001: unresolved external symbol "int const
> wxEVT_RIGHT_DOWN" (<A
> href="mailto:?wxEVT_RIGHT_DOWN@@3HB">?wxEVT_RIGHT_DOWN@@3HB</A>)</P>
> <P><FONT face=Arial size=2> this is just a sample, i'm coming
> up with about 54 unresolved externals.</FONT></P>
> <P><FONT face=Arial size=2> i first build the dll's from the
> converted wx.dsw, (VC6 to VS2005). then reading in the install notes i saw
> that there is a wx_dll.dsw, and that the dll's needed to be built in a specific
> order. converted the wx_dll.dsw and built the dll's, and no
> difference.</FONT></P>
> <P><FONT face=Arial size=2> any thoughts? it looks like
> i'm just missing a define or something, but i can't find it.</FONT></P>
> <P><FONT face=Arial size=2> thanks,</FONT></P>
> <P><FONT face=Arial size=2>
> mickm</FONT></P></FONT></DIV></BODY></HTML>
>
Try using the suggested way to build wxWidgets.
See docs\msw\install.txt
Tim S
cd build\msw
CALL "%VS80COMNTOOLS%vsvars32.bat"
nmake -f makefile.vc SHARED=1 BUILD=release MONOLITHIC=1 clean
nmake -f makefile.vc SHARED=1 BUILD=release MONOLITHIC=1
More information about the wx-users
mailing list