Prev: Unexpected loose of CaptureMouse()
Next: wxWidget programming serial I/O devices across platforms
From: Vadim Zeitlin on 31 Dec 2007 11:43 On Mon, 31 Dec 2007 10:00:14 +0100 Steven Van Ingelgem <steven(a)vaningelgem.be> wrote: SVI> I decided to check on this and here are my findings: SVI> SVI> * the visual studio project files should use dependencies. This is unfortunately impossible because of a strange (I'd say completely broken) way MSVC IDE treats dependencies on the static libraries: it implicitly links the project depending on a static library with this library and this completely breaks everything for the static build. Vaclav, if you're reading this, could you please add an entry about this to the MSW FAQ? I'd do it myself but I think you have more information about the problem than I do. SVI> * core, dll, debug I got the same errors as Bob ( both unicode and SVI> ansi build). I don't get them neither with 7.1 nor 8. I really have no idea about what is going on here. The only difference I see is that I'm using wx from svn (2.8 branch) but this really shouldn't matter. All I did was to open wx_dll.dsp in MSVC8 IDE, answer "Yes To All" to the conversion question message box and then built base and core in the "DLL Debug" configuration. I have no explanation as to why it works for me (and plenty of others) but not some other others. SVI> * core, dll, universal unicode debug : SVI> ..\..\src\generic\listctrl.cpp(774) : warning C4251: SVI> 'wxListMainWindow::m_aColWidths' : class 'ColWidthArray' needs to have SVI> dll-interface to be used by clients of class 'wxListMainWindow' SVI> ..\..\src\generic\listctrl.cpp(125) : see declaration of 'ColWidthArray' SVI> SVI> * base, dll, unicode release : ..\..\src\msw\thread.cpp(545) : warning SVI> C4535: calling _set_se_translator() requires /EHa This is harmless. SVI> * qa, dll, (unicode) debug : 13 errors SVI> SVI> * odbc, DLL Universal Unicode Release : wxVariant errors What are the errors? SVI> When I did the same for trunk, I got this: SVI> SVI> 104 failed SVI> 40 build SVI> SVI> all the failed displayed this kind of message: SVI> SVI> Creating ..\..\lib\vc_lib\mswunivu\wx\setup.h SVI> The system cannot find the file specified. SVI> Project : error PRJ0019: A tool returned an error code from "Creating SVI> ..\..\lib\vc_lib\mswunivu\wx\setup.h" This is almost certainly due to the absence of include/wx/univ/setup.h. You need to copy setup0.h to setup.h, just as with the MSW version. Regards, VZ -- TT-Solutions: wxWidgets consultancy and technical support http://www.tt-solutions.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: "Steven Van Ingelgem" on 31 Dec 2007 12:28 On Dec 31, 2007 5:43 PM, Vadim Zeitlin <vadim(a)wxwidgets.org> wrote: > SVI> * core, dll, debug I got the same errors as Bob ( both unicode and > SVI> ansi build). I upgraded a few days ago to Windows XP, SP2 (UK edition) + MS Visual Studio 2005 Std Edition (UK edition). So everything is cleanly installed (inside a VMware on Linux). I used the one you can download from the website. Maybe you could retry it with that version also? What I also meant here is the wx_dll, and then "Unicode Debug" or normal "Debug", not the "DLL Debug"/"DLL Unicode Debug". Sorry for the miscommunication. > SVI> * qa, dll, (unicode) debug : 13 errors > SVI> > SVI> * odbc, DLL Universal Unicode Release : wxVariant errors I will write them from home (I am now at my parents for the world becoming yet another few years older). > This is almost certainly due to the absence of include/wx/univ/setup.h. > You need to copy setup0.h to setup.h, just as with the MSW version. I just exported my SVN trunk to a separate directory. So everything was perfectly clean. Thus I wouldn't have a setup.h anywhere. Isn't it possible to create this like in the config scripts (if exist ...)? Also why would 40 succeed and 104 not? I didn't copy any file, even not for the 40 ones which succeeded (or are those the wxpng, wxtiff, .... libraries?). I'll write you back about the errors later on... --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: "Steven Van Ingelgem" on 31 Dec 2007 20:07 Ok, the other errors were probably because I loaded up both the static as well as the dynamic build and they got somehow screwed up. Here is where the errors are happening: Project: qa, Configuration: DLL Unicode Debug Win32 ------ Project: qa, Configuration: DLL Debug Win32 ------ debugrpt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall wxStackFrameBase::GetLine(void)const " (__imp_?GetLine(a)wxStackFrameBase@@QBEIXZ) referenced in function "protected: virtual void __thiscall XmlStackWalker::OnStackFrame(class wxStackFrame const &)" (?OnStackFrame(a)XmlStackWalker@@MAEXABVwxStackFrame@@@Z) debugrpt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxStackFrameBase::GetFileName(void)const " (__imp_?GetFileName(a)wxStackFrameBase@@QBE?AVwxString@@XZ) referenced in function "protected: virtual void __thiscall XmlStackWalker::OnStackFrame(class wxStackFrame const &)" (?OnStackFrame(a)XmlStackWalker@@MAEXABVwxStackFrame@@@Z) debugrpt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall wxStackFrameBase::HasSourceLocation(void)const " (__imp_?HasSourceLocation(a)wxStackFrameBase@@QBE_NXZ) referenced in function "protected: virtual void __thiscall XmlStackWalker::OnStackFrame(class wxStackFrame const &)" (?OnStackFrame(a)XmlStackWalker@@MAEXABVwxStackFrame@@@Z) debugrpt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall wxStackFrameBase::GetOffset(void)const " (__imp_?GetOffset(a)wxStackFrameBase@@QBEIXZ) referenced in function "protected: virtual void __thiscall XmlStackWalker::OnStackFrame(class wxStackFrame const &)" (?OnStackFrame(a)XmlStackWalker@@MAEXABVwxStackFrame@@@Z) debugrpt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class wxString __thiscall wxStackFrameBase::GetName(void)const " (__imp_?GetName(a)wxStackFrameBase@@QBE?AVwxString@@XZ) referenced in function "protected: virtual void __thiscall XmlStackWalker::OnStackFrame(class wxStackFrame const &)" (?OnStackFrame(a)XmlStackWalker@@MAEXABVwxStackFrame@@@Z) debugrpt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall wxStackFrameBase::GetLevel(void)const " (__imp_?GetLevel(a)wxStackFrameBase@@QBEIXZ) referenced in function "protected: virtual void __thiscall XmlStackWalker::OnStackFrame(class wxStackFrame const &)" (?OnStackFrame(a)XmlStackWalker@@MAEXABVwxStackFrame@@@Z) debugrpt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall wxStackWalker::Walk(unsigned int,unsigned int)" (__imp_?Walk(a)wxStackWalker@@UAEXII@Z) referenced in function "public: virtual bool __thiscall wxDebugReport::AddContext(enum wxDebugReport::Context)" (?AddContext(a)wxDebugReport@@UAE_NW4Context@1@@Z) debugrpt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall wxStackWalker::WalkFromException(void)" (__imp_?WalkFromException(a)wxStackWalker@@UAEXXZ) referenced in function "public: virtual bool __thiscall wxDebugReport::AddContext(enum wxDebugReport::Context)" (?AddContext(a)wxDebugReport@@UAE_NW4Context@1@@Z) debugrpt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxStackWalker::wxStackWalker(char const *)" (__imp_??0wxStackWalker@@QAE(a)PBD@Z) referenced in function "public: __thiscall XmlStackWalker::XmlStackWalker(class wxXmlNode *)" (??0XmlStackWalker@@QAE(a)PAVwxXmlNode@@@Z) debugrpt.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall wxStackWalker::Walk(unsigned int,unsigned int)" (?Walk(a)wxStackWalker@@UAEXII@Z) debugrpt.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall wxStackWalker::WalkFromException(void)" (?WalkFromException(a)wxStackWalker@@UAEXXZ) debugrpt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall wxStackWalker::~wxStackWalker(void)" (__imp_??1wxStackWalker@@UAE(a)XZ) referenced in function "public: virtual __thiscall XmlStackWalker::~XmlStackWalker(void)" (??1XmlStackWalker@@UAE(a)XZ) ...\..\lib\vc_dll\wxmsw28d_qa_vc_custom.dll : fatal error LNK1120: 12 unresolved externals Project: core, Configuration: DLL Debug Win32 ------ Project: core, Configuration: DLL Unicode Debug Win32 ------ ==> Errors of Bob What I did: download the wxMSW sources from the website. Extract them to c:\tmp, loaded up wx_dll & said yes to all. then build -> batch build, select all & build... --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
|
Pages: 1 Prev: Unexpected loose of CaptureMouse() Next: wxWidget programming serial I/O devices across platforms |