Archive: Error compiling NSIS Menu


Error compiling NSIS Menu
Just want to report the error i get when i try to compile NSIS Menu, I installed wxWidget and ran wxbuild.bat and then launched the nsis compilation with scons and i receive the following message:

cl /nologo /O1 /W3 /MD /GX /TP /IC:\wxWidgets-2.8.0\include /IC:\wxWidgets-2.8.0
\lib\vc_libnsis\msw /c "Contrib\NSIS Menu\nsismenu\nsismenu.cpp" "/Fobuild\relea
se\NSIS Menu\nsismenu\nsismenu.obj"
nsismenu.cpp
cl /nologo /O1 /W3 /MD /GX /TP /IC:\wxWidgets-2.8.0\include /IC:\wxWidgets-2.8.0
\lib\vc_libnsis\msw /c "Contrib\NSIS Menu\nsismenu\nslinks.cpp" "/Fobuild\releas
e\NSIS Menu\nsismenu\nslinks.obj"
nslinks.cpp
rc /IC:\wxWidgets-2.8.0\include /IC:\wxWidgets-2.8.0\lib\vc_libnsis\msw "/fobuil
d\release\NSIS Menu\nsismenu-rc.res" "Contrib\NSIS Menu\nsismenu\nsismenu.rc"
"C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\bin\Win64\li
nk.exe" /nologo /opt:nowin98 /map "/OUT:build\release\NSIS Menu\NSIS.exe" /LIBPA
TH:C:\wxWidgets-2.8.0\lib\vc_libnsis advapi32.lib comctl32.lib gdi32.lib shell32
.lib user32.lib wxbase28.lib wxmsw28_core.lib wxmsw28_html.lib "build\release\NS
IS Menu\nsismenu\nsismenu.obj" "build\release\NSIS Menu\nsismenu\nslinks.obj" "b
uild\release\NSIS Menu\nsismenu-rc.res"
wxbase28.lib(baselib_object.obj) : warning LNK4078: multiple '.CRT' sections fou
nd with different attributes (40300040)
nsismenu.obj : error LNK2001: unresolved external symbol "protected: virtual voi
d __thiscall wxWindow::DoSetToolTip(class wxToolTip *)" (?DoSetToolTip@wxWindow@
@MAEXPAVwxToolTip@@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual void _
_thiscall wxWindowBase::GetPositionConstraint(int *,int *)const " (?GetPositionC
onstraint@wxWindowBase@@UBEXPAH0@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual void _
_thiscall wxWindowBase::GetClientSizeConstraint(int *,int *)const " (?GetClientS
izeConstraint@wxWindowBase@@UBEXPAH0@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual void _
_thiscall wxWindowBase::GetSizeConstraint(int *,int *)const " (?GetSizeConstrain
t@wxWindowBase@@UBEXPAH0@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual void _
_thiscall wxWindowBase::MoveConstraint(int,int)" (?MoveConstraint@wxWindowBase@@
UAEXHH@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual void _
_thiscall wxWindowBase::SetSizeConstraint(int,int,int,int)" (?SetSizeConstraint@
wxWindowBase@@UAEXHHHH@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual bool _
_thiscall wxWindowBase::DoPhase(int)" (?DoPhase@wxWindowBase@@UAE_NH@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual bool _
_thiscall wxWindowBase::LayoutPhase2(int *)" (?LayoutPhase2@wxWindowBase@@UAE_NP
AH@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual bool _
_thiscall wxWindowBase::LayoutPhase1(int *)" (?LayoutPhase1@wxWindowBase@@UAE_NP
AH@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual void _
_thiscall wxWindowBase::SetConstraintSizes(bool)" (?SetConstraintSizes@wxWindowB
ase@@UAEX_N@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual void _
_thiscall wxWindow::SetDropTarget(class wxDropTarget *)" (?SetDropTarget@wxWindo
w@@UAEXPAVwxDropTarget@@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual class
wxString __thiscall wxWindowBase::GetHelpTextAtPoint(class wxPoint const &,enum
wxHelpEvent::Origin)const " (?GetHelpTextAtPoint@wxWindowBase@@UBE?AVwxString@@A
BVwxPoint@@W4Origin@wxHelpEvent@@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual bool _
_thiscall wxWindow::UnregisterHotKey(int)" (?UnregisterHotKey@wxWindow@@UAE_NH@Z
)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual bool _
_thiscall wxWindow::RegisterHotKey(int,int,int)" (?RegisterHotKey@wxWindow@@UAE_
NHHH@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "protected: virtual voi
d __thiscall wxFrame::PositionToolBar(void)" (?PositionToolBar@wxFrame@@MAEXXZ)
nsismenu.obj : error LNK2001: unresolved external symbol "protected: virtual voi
d __thiscall wxFrame::PositionStatusBar(void)" (?PositionStatusBar@wxFrame@@MAEX
XZ)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual void _
_thiscall wxFrameBase::SetToolBar(class wxToolBar *)" (?SetToolBar@wxFrameBase@@
UAEXPAVwxToolBar@@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual class
wxToolBar * __thiscall wxFrameBase::OnCreateToolBar(long,int,class wxString cons
t &)" (?OnCreateToolBar@wxFrameBase@@UAEPAVwxToolBar@@JHABVwxString@@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual class
wxToolBar * __thiscall wxFrame::CreateToolBar(long,int,class wxString const &)"
(?CreateToolBar@wxFrame@@UAEPAVwxToolBar@@JHABVwxString@@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual void _
_thiscall wxFrameBase::SetStatusWidths(int,int const * const)" (?SetStatusWidths
@wxFrameBase@@UAEXHQBH@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual void _
_thiscall wxFrameBase::SetStatusText(class wxString const &,int)" (?SetStatusTex
t@wxFrameBase@@UAEXABVwxString@@H@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual void _
_thiscall wxFrameBase::SetStatusBar(class wxStatusBar *)" (?SetStatusBar@wxFrame
Base@@UAEXPAVwxStatusBar@@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual class
wxStatusBar * __thiscall wxFrame::OnCreateStatusBar(int,long,int,class wxString
const &)" (?OnCreateStatusBar@wxFrame@@UAEPAVwxStatusBar@@HJHABVwxString@@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual class
wxStatusBar * __thiscall wxFrameBase::CreateStatusBar(int,long,int,class wxStrin
g const &)" (?CreateStatusBar@wxFrameBase@@UAEPAVwxStatusBar@@HJHABVwxString@@@Z
)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual bool _
_thiscall wxApp::OnExceptionInMainLoop(void)" (?OnExceptionInMainLoop@wxApp@@UAE
_NXZ)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual void _
_thiscall wxAppConsole::HandleEvent(class wxEvtHandler *,void (__thiscall wxEvtH
andler::*)(class wxEvent &),class wxEvent &)const " (?HandleEvent@wxAppConsole@@
UBEXPAVwxEvtHandler@@P82@AEXAAVwxEvent@@@Z1@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual bool _
_thiscall wxAppConsole::OnCmdLineError(class wxCmdLineParser &)" (?OnCmdLineErro
r@wxAppConsole@@UAE_NAAVwxCmdLineParser@@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual bool _
_thiscall wxAppConsole::OnCmdLineHelp(class wxCmdLineParser &)" (?OnCmdLineHelp@
wxAppConsole@@UAE_NAAVwxCmdLineParser@@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual bool _
_thiscall wxAppBase::OnCmdLineParsed(class wxCmdLineParser &)" (?OnCmdLineParsed
@wxAppBase@@UAE_NAAVwxCmdLineParser@@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual void _
_thiscall wxAppBase::OnInitCmdLine(class wxCmdLineParser &)" (?OnInitCmdLine@wxA
ppBase@@UAEXAAVwxCmdLineParser@@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: __thiscall exc
eption::exception(class exception const &)" (??0exception@@QAE@ABV0@@Z)
nslinks.obj : error LNK2001: unresolved external symbol "public: __thiscall exce
ption::exception(class exception const &)" (??0exception@@QAE@ABV0@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: __thiscall bad
_cast::bad_cast(class bad_cast const &)" (??0bad_cast@@QAE@ABV0@@Z)
nslinks.obj : error LNK2001: unresolved external symbol "public: __thiscall bad_
cast::bad_cast(class bad_cast const &)" (??0bad_cast@@QAE@ABV0@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual __this
call bad_cast::~bad_cast(void)" (??1bad_cast@@UAE@XZ)
nslinks.obj : error LNK2001: unresolved external symbol "public: virtual __thisc
all bad_cast::~bad_cast(void)" (??1bad_cast@@UAE@XZ)
nsismenu.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
public: __thiscall bad_cast::bad_cast(char const *)" (__imp_??0bad_cast@@QAE@PBD
@Z) referenced in function "class std::ctype<char> const & __cdecl std::use_face
t<class std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@
std@@@std@@YAABV?$ctype@D@0@ABVlocale@0@@Z)
nslinks.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) p
ublic: __thiscall bad_cast::bad_cast(char const *)" (__imp_??0bad_cast@@QAE@PBD@
Z)
nslinks.obj : error LNK2001: unresolved external symbol "public: virtual void __
thiscall wxHtmlCell::OnMouseClick(class wxWindow *,int,int,class wxMouseEvent co
nst &)" (?OnMouseClick@wxHtmlCell@@UAEXPAVwxWindow@@HHABVwxMouseEvent@@@Z)
nslinks.obj : error LNK2001: unresolved external symbol "public: virtual class w
xCursor __thiscall wxHtmlCell::GetCursor(void)const " (?GetCursor@wxHtmlCell@@UB
E?AVwxCursor@@XZ)
build\release\NSIS Menu\NSIS.exe : fatal error LNK1120: 36 unresolved externals
scons: *** [build\release\NSIS Menu\NSIS.exe] Error 1120
scons: building terminated because of errors.
D:\Scripts NSIS\NSIS-20070303>

Does C:\wxWidgets-2.8.0\include contain setup.h? Try moving it, if it does.


I a a setup.h file, i try to replace it with the one provided woth the nsis sources, but i still can't compile...

I'll try to remove it completly to see if it works better :(


If i remove the setup.h file i still get the same error...


Did you rebuild NSIS Menu after moving away that setup.h?

The only thing I can think of is that the other setup.h in include/wx is getting precedence over the one in vc_libnsis because it's passed before it in the command line. In my directory, I don't have that setup.h.

wxWidgets itself was built correctly. It's the NSIS Menu itself that doesn't find the correct setup.h and therefore tries to link to non-compiled objects in wxWidgets.


i will try to find what's the problem...


I try to replace the include/wx/setup.h with the one included in the nsis package in Contrib/Nsis Menu/wx, but i got the same error...
Search continues...


Try using cl.exe's /E or /P option to preprocess to stdout or file. This way, you can see exactly which files it reads.


I still get problem to compile NSIS Menu, i tried to modify wxbuild.bat to get it work correctly, here is my wxbuild.bat:

if not exist "%WXWIN%\build\msw\makefile.vc" goto error
set OLDCD=%CD%
cd "%WXWIN%\build\msw"
copy /y "%WXWIN%\include\wx\msw\setup.h" "%OLDCD%\old_setup.h"
copy /y "%OLDCD%\setup.h" "%WXWIN%\include\wx\msw\setup.h"
rd /S "%WXWIN%\lib\vc_libnsis"
rd /S "%WXWIN%\build\msw\vc_mswnsis"
start /D"%WXWIN%\build\msw" nmake -f makefile.vc CFG=nsis BUILD=release RUNTIME_LIBS=dynamic SHARED=0 UNICODE=0 WXUNIV=0 USE_OPENGL=0 USE_ODBC=0 USE_HTML=1 USE_XRC=0
copy /y "%OLDCD%\old_setup.h" "%WXWIN%\include\wx\msw\setup.h"
cd "%OLDCD%"
goto done
:error
echo WXWIN is not properly set
:done
I thinkthat the librairies are correctly compiled, but when i launch scons, i still get the same errors:

nsismenu.obj : error LNK2001: unresolved external symbol "public: __thiscall bad
_cast::bad_cast(class bad_cast const &)" (??0bad_cast@@QAE@ABV0@@Z)
nslinks.obj : error LNK2001: unresolved external symbol "public: __thiscall bad_
cast::bad_cast(class bad_cast const &)" (??0bad_cast@@QAE@ABV0@@Z)
nsismenu.obj : error LNK2001: unresolved external symbol "public: virtual __this
call bad_cast::~bad_cast(void)" (??1bad_cast@@UAE@XZ)
nslinks.obj : error LNK2001: unresolved external symbol "public: virtual __thisc
all bad_cast::~bad_cast(void)" (??1bad_cast@@UAE@XZ)
nsismenu.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
public: __thiscall bad_cast::bad_cast(char const *)" (__imp_??0bad_cast@@QAE@PBD
@Z) referenced in function "class std::ctype<char> const & __cdecl std::use_face
t<class std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@
std@@@std@@YAABV?$ctype@D@0@ABVlocale@0@@Z)
nslinks.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) p
ublic: __thiscall bad_cast::bad_cast(char const *)" (__imp_??0bad_cast@@QAE@PBD@
Z)
wxbase28.lib(baselib_filename.obj) : error LNK2019: unresolved external symbol _
_imp__CoCreateInstance@20 referenced in function "public: bool __thiscall wxFile
Name::GetShortcutTarget(class wxString const &,class wxString &,class wxString *
)" (?GetShortcutTarget@wxFileName@@QAE_NABVwxString@@AAV2@PAV2@@Z)
wxmsw28_core.lib(corelib_app.obj) : error LNK2019: unresolved external symbol __
imp__OleUninitialize@0 referenced in function "void __cdecl wxOleUninitialize(vo
id)" (?wxOleUninitialize@@YAXXZ)
wxmsw28_core.lib(corelib_clipbrd.obj) : error LNK2001: unresolved external symbo
l __imp__OleUninitialize@0
wxmsw28_core.lib(corelib_app.obj) : error LNK2019: unresolved external symbol __
imp__OleInitialize@4 referenced in function "bool __cdecl wxOleInitialize(void)"
(?wxOleInitialize@@YA_NXZ)
wxmsw28_core.lib(corelib_clipbrd.obj) : error LNK2001: unresolved external symbo
l __imp__OleInitialize@4
wxmsw28_core.lib(corelib_droptgt.obj) : error LNK2019: unresolved external symbo
l __imp__RegisterDragDrop@8 referenced in function "public: bool __thiscall wxDr
opTarget::Register(void *)" (?Register@wxDropTarget@@QAE_NPAX@Z)
wxmsw28_core.lib(corelib_droptgt.obj) : error LNK2019: unresolved external symbo
l __imp__CoLockObjectExternal@12 referenced in function "public: bool __thiscall
wxDropTarget::Register(void *)" (?Register@wxDropTarget@@QAE_NPAX@Z)
wxmsw28_core.lib(corelib_droptgt.obj) : error LNK2019: unresolved external symbo
l __imp__RevokeDragDrop@4 referenced in function "public: void __thiscall wxDrop
Target::Revoke(void *)" (?Revoke@wxDropTarget@@QAEXPAX@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_get_io_ptr referenced in function _wx_PNG_stream_reader
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_write_end referenced in function "public: virtual bool __thiscall wxPNGHa
ndler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile@wxPNGHa
ndler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_write_rows referenced in function "public: virtual bool __thiscall wxPNGH
andler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile@wxPNGH
andler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_set_packing referenced in function "public: virtual bool __thiscall wxPNG
Handler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile@wxPNG
Handler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_set_shift referenced in function "public: virtual bool __thiscall wxPNGHa
ndler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile@wxPNGHa
ndler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_write_info referenced in function "public: virtual bool __thiscall wxPNGH
andler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile@wxPNGH
andler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_set_sBIT referenced in function "public: virtual bool __thiscall wxPNGHan
dler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile@wxPNGHan
dler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_set_IHDR referenced in function "public: virtual bool __thiscall wxPNGHan
dler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile@wxPNGHan
dler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_set_write_fn referenced in function "public: virtual bool __thiscall wxPN
GHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile@wxPN
GHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_destroy_write_struct referenced in function "public: virtual bool __thisc
all wxPNGHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveF
ile@wxPNGHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_create_info_struct referenced in function "public: virtual bool __thiscal
l wxPNGHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFil
e@wxPNGHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_create_write_struct referenced in function "public: virtual bool __thisca
ll wxPNGHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFi
le@wxPNGHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_destroy_read_struct referenced in function "public: virtual bool __thisca
ll wxPNGHandler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?Loa
dFile@wxPNGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_read_end referenced in function "public: virtual bool __thiscall wxPNGHan
dler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@wxPNG
Handler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_read_image referenced in function "public: virtual bool __thiscall wxPNGH
andler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@wxP
NGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_set_filler referenced in function "public: virtual bool __thiscall wxPNGH
andler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@wxP
NGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_get_valid referenced in function "public: virtual bool __thiscall wxPNGHa
ndler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@wxPN
GHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_set_strip_16 referenced in function "public: virtual bool __thiscall wxPN
GHandler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@w
xPNGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_set_expand referenced in function "public: virtual bool __thiscall wxPNGH
andler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@wxP
NGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_get_IHDR referenced in function "public: virtual bool __thiscall wxPNGHan
dler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@wxPNG
Handler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_read_info referenced in function "public: virtual bool __thiscall wxPNGHa
ndler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@wxPN
GHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_set_read_fn referenced in function "public: virtual bool __thiscall wxPNG
Handler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@wx
PNGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagpng.obj) : error LNK2019: unresolved external symbo
l _png_create_read_struct referenced in function "public: virtual bool __thiscal
l wxPNGHandler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?Load
File@wxPNGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_resync_to_restart referenced in function "void __cdecl wx_jpeg_io_src(s
truct jpeg_decompress_struct *,class wxInputStream &)" (?wx_jpeg_io_src@@YAXPAUj
peg_decompress_struct@@AAVwxInputStream@@@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_read_scanlines referenced in function "public: virtual bool __thiscall
wxJPEGHandler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadF
ile@wxJPEGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_finish_decompress referenced in function "public: virtual bool __thisca
ll wxJPEGHandler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?Lo
adFile@wxJPEGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_start_decompress referenced in function "public: virtual bool __thiscal
l wxJPEGHandler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?Loa
dFile@wxJPEGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_read_header referenced in function "public: virtual bool __thiscall wxJ
PEGHandler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile
@wxJPEGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_CreateDecompress referenced in function "public: virtual bool __thiscal
l wxJPEGHandler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?Loa
dFile@wxJPEGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_destroy_decompress referenced in function "public: virtual bool __thisc
all wxJPEGHandler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?L
oadFile@wxJPEGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_std_error referenced in function "public: virtual bool __thiscall wxJPE
GHandler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@w
xJPEGHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_finish_compress referenced in function "public: virtual bool __thiscall
wxJPEGHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFil
e@wxJPEGHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_write_scanlines referenced in function "public: virtual bool __thiscall
wxJPEGHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFil
e@wxJPEGHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_start_compress referenced in function "public: virtual bool __thiscall
wxJPEGHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile
@wxJPEGHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_set_quality referenced in function "public: virtual bool __thiscall wxJ
PEGHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile@wx
JPEGHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_set_defaults referenced in function "public: virtual bool __thiscall wx
JPEGHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile@w
xJPEGHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_CreateCompress referenced in function "public: virtual bool __thiscall
wxJPEGHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile
@wxJPEGHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagjpeg.obj) : error LNK2019: unresolved external symb
ol _jpeg_destroy_compress referenced in function "public: virtual bool __thiscal
l wxJPEGHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFi
le@wxJPEGHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol _TIFFClientOpen referenced in function "struct tiff * __cdecl TIFFwxOpen(clas
s wxInputStream &,char const *,char const *)" (?TIFFwxOpen@@YAPAUtiff@@AAVwxInpu
tStream@@PBD1@Z)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol _TIFFReadRGBAImage referenced in function "public: virtual bool __thiscall wx
TIFFHandler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFil
e@wxTIFFHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol __TIFFfree referenced in function "public: virtual bool __thiscall wxTIFFHand
ler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@wxTIFF
Handler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol __TIFFmalloc referenced in function "public: virtual bool __thiscall wxTIFFHa
ndler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@wxTI
FFHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol _TIFFGetField referenced in function "public: virtual bool __thiscall wxTIFFH
andler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@wxT
IFFHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol _TIFFClose referenced in function "public: virtual bool __thiscall wxTIFFHand
ler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile@wxTIFF
Handler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol _TIFFSetDirectory referenced in function "public: virtual bool __thiscall wxT
IFFHandler::LoadFile(class wxImage *,class wxInputStream &,bool,int)" (?LoadFile
@wxTIFFHandler@@UAE_NPAVwxImage@@AAVwxInputStream@@_NH@Z)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol _TIFFReadDirectory referenced in function "public: virtual int __thiscall wxT
IFFHandler::GetImageCount(class wxInputStream &)" (?GetImageCount@wxTIFFHandler@
@UAEHAAVwxInputStream@@@Z)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol _TIFFWriteScanline referenced in function "public: virtual bool __thiscall wx
TIFFHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile@w
xTIFFHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol _TIFFDefaultStripSize referenced in function "public: virtual bool __thiscall
wxTIFFHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFil
e@wxTIFFHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol _TIFFScanlineSize referenced in function "public: virtual bool __thiscall wxT
IFFHandler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile@wx
TIFFHandler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol _TIFFSetField referenced in function "public: virtual bool __thiscall wxTIFFH
andler::SaveFile(class wxImage *,class wxOutputStream &,bool)" (?SaveFile@wxTIFF
Handler@@UAE_NPAVwxImage@@AAVwxOutputStream@@_N@Z)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol _TIFFSetErrorHandler referenced in function "public: __thiscall wxTIFFHandler
::wxTIFFHandler(void)" (??0wxTIFFHandler@@QAE@XZ)
wxmsw28_core.lib(corelib_imagtiff.obj) : error LNK2019: unresolved external symb
ol _TIFFSetWarningHandler referenced in function "public: __thiscall wxTIFFHandl
er::wxTIFFHandler(void)" (??0wxTIFFHandler@@QAE@XZ)
wxmsw28_core.lib(corelib_colordlg.obj) : error LNK2019: unresolved external symb
ol __imp__ChooseColorA@4 referenced in function "public: virtual int __thiscall
wxColourDialog::ShowModal(void)" (?ShowModal@wxColourDialog@@UAEHXZ)
wxmsw28_core.lib(corelib_fontdlg.obj) : error LNK2019: unresolved external symbo
l __imp__ChooseFontA@4 referenced in function "public: virtual int __thiscall wx
FontDialog::ShowModal(void)" (?ShowModal@wxFontDialog@@UAEHXZ)
wxmsw28_core.lib(corelib_oleutils.obj) : error LNK2019: unresolved external symb
ol __imp__SysAllocString@4 referenced in function "public: wchar_t * __thiscall
wxBasicString::Get(void)const " (?Get@wxBasicString@@QBEPA_WXZ)
wxmsw28_core.lib(corelib_oleutils.obj) : error LNK2019: unresolved external symb
ol __imp__SysStringLen@4 referenced in function "class wxString __cdecl wxConver
tStringFromOle(wchar_t *)" (?wxConvertStringFromOle@@YA?AVwxString@@PA_W@Z)
wxmsw28_core.lib(corelib_clipbrd.obj) : error LNK2019: unresolved external symbo
l __imp__OleSetClipboard@4 referenced in function "public: virtual void __thisca
ll wxClipboard::Clear(void)" (?Clear@wxClipboard@@UAEXXZ)
wxmsw28_core.lib(corelib_clipbrd.obj) : error LNK2019: unresolved external symbo
l __imp__OleIsCurrentClipboard@4 referenced in function "public: virtual void __
thiscall wxClipboard::Clear(void)" (?Clear@wxClipboard@@UAEXXZ)
wxmsw28_core.lib(corelib_clipbrd.obj) : error LNK2019: unresolved external symbo
l __imp__OleFlushClipboard@0 referenced in function "public: virtual bool __this
call wxClipboard::Flush(void)" (?Flush@wxClipboard@@UAE_NXZ)
wxmsw28_core.lib(corelib_clipbrd.obj) : error LNK2019: unresolved external symbo
l __imp__ReleaseStgMedium@4 referenced in function "public: virtual bool __thisc
all wxClipboard::GetData(class wxDataObject &)" (?GetData@wxClipboard@@UAE_NAAVw
xDataObject@@@Z)
wxmsw28_core.lib(corelib_dataobj.obj) : error LNK2001: unresolved external symbo
l __imp__ReleaseStgMedium@4
wxmsw28_core.lib(corelib_clipbrd.obj) : error LNK2019: unresolved external symbo
l __imp__OleGetClipboard@4 referenced in function "public: virtual bool __thisca
ll wxClipboard::GetData(class wxDataObject &)" (?GetData@wxClipboard@@UAE_NAAVwx
DataObject@@@Z)
wxmsw28_core.lib(corelib_filedlg.obj) : error LNK2019: unresolved external symbo
l __imp__CommDlgExtendedError@0 referenced in function "bool __cdecl DoShowCommF
ileDialog(struct tagOFNA *,long,unsigned long *)" (?DoShowCommFileDialog@@YA_NPA
UtagOFNA@@JPAK@Z)
wxmsw28_core.lib(corelib_filedlg.obj) : error LNK2019: unresolved external symbo
l __imp__GetOpenFileNameA@4 referenced in function "bool __cdecl DoShowCommFileD
ialog(struct tagOFNA *,long,unsigned long *)" (?DoShowCommFileDialog@@YA_NPAUtag
OFNA@@JPAK@Z)
wxmsw28_core.lib(corelib_filedlg.obj) : error LNK2019: unresolved external symbo
l __imp__GetSaveFileNameA@4 referenced in function "bool __cdecl DoShowCommFileD
ialog(struct tagOFNA *,long,unsigned long *)" (?DoShowCommFileDialog@@YA_NPAUtag
OFNA@@JPAK@Z)
wxmsw28_core.lib(corelib_printdlg.obj) : error LNK2019: unresolved external symb
ol __imp__PrintDlgA@4 referenced in function "public: virtual bool __thiscall wx
WindowsPrintNativeData::TransferFrom(class wxPrintData const &)" (?TransferFrom@
wxWindowsPrintNativeData@@UAE_NABVwxPrintData@@@Z)
wxmsw28_core.lib(corelib_dcprint.obj) : error LNK2001: unresolved external symbo
l __imp__PrintDlgA@4
wxmsw28_core.lib(corelib_printdlg.obj) : error LNK2019: unresolved external symb
ol __imp__PageSetupDlgA@4 referenced in function "public: virtual int __thiscall
wxWindowsPageSetupDialog::ShowModal(void)" (?ShowModal@wxWindowsPageSetupDialog
@@UAEHXZ)
build\release\NSIS Menu\NSIS.exe : fatal error LNK1120: 76 unresolved externals
scons: *** [build\release\NSIS Menu\NSIS.exe] Error 1120
scons: building terminated because of errors.
D:\Scripts NSIS\NSIS-20070315>
if i use the command line SKIPUTILS="NSIS Menu" all is compiled without errors...

What's the actual cl command line before the errors?


Try the latest wxbuild.bat. First delete all the build files from wxWidgets (lib\vc_libnsis and build\msw\vc_mswnsis). It will now correctly change the directory, even when it's on a different drive. That solved the same problem in another case.