Describe the problem
I have compiled the libray via
nmake /f makefile.vc BUILD=release TARGET_CPU=X64

however, I got the error to run my hello world program:
C:\Program Files\wxWidgets-3.1.7\wxwidgets.props(117,5): error : wxWidgets libraries not found under "C:\Program Files\wxWidgets-3.1.7\lib\vc{,143,14x}_x64_{lib,dll}".
Platform and version information
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
You're probably not building your application in x64|Release configuration. If you want to build it in other configurations, e.g. a 32-bit or a debug one, you need to build wxWidgets in the corresponding configuration as well.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #22560 as not planned.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@vadz yes, I forget to set Release, however, I still got the error:
1>main.obj : error LNK2001: unresolved external symbol "public: static class wxString __cdecl wxString::FormatV(class wxString const &,char *)" (?FormatV@wxString@@SA?AV1@AEBV1@PEAD@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: static class wxString __cdecl wxString::FromAscii(char const *)" (?FromAscii@wxString@@SA?AV1@PEBD@Z)
1>main.obj : error LNK2001: unresolved external symbol "private: static struct wxString::SubstrBufFromType<class wxScopedCharTypeBuffer<wchar_t> > __cdecl wxString::ConvertStr(char const *,unsigned __int64,class wxMBConv const &)" (?ConvertStr@wxString@@CA?AU?$SubstrBufFromType@V?$wxScopedCharTypeBuffer@_W@@@1@PEBD_KAEBVwxMBConv@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: static unsigned long __cdecl wxThread::GetCurrentId(void)" (?GetCurrentId@wxThread@@SAKXZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual __cdecl wxNodeBase::~wxNodeBase(void)" (??1wxNodeBase@@UEAA@XZ)
1>main.obj : error LNK2001: unresolved external symbol "public: __cdecl wxNodeBase::wxNodeBase(class wxListBase *,class wxNodeBase *,class wxNodeBase *,void *,class wxListKey const &)" (??0wxNodeBase@@QEAA@PEAVwxListBase@@PEAV0@1PEAXAEBVwxListKey@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "void __cdecl wxOnAssert(char const *,int,char const *,char const *,char const *)" (?wxOnAssert@@YAXPEBDH000@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: __cdecl wxMenuBar::wxMenuBar(void)" (??0wxMenuBar@@QEAA@XZ)
1>main.obj : error LNK2001: unresolved external symbol "class wxLongLongNative __cdecl wxGetUTCTimeMillis(void)" (?wxGetUTCTimeMillis@@YA?AVwxLongLongNative@@XZ)
1>main.obj : error LNK2001: unresolved external symbol "public: static unsigned __int64 const wxString::npos" (?npos@wxString@@2_KB)
1>main.obj : error LNK2001: unresolved external symbol "public: static bool __cdecl wxAppConsoleBase::CheckBuildOptions(char const *,char const *)" (?CheckBuildOptions@wxAppConsoleBase@@SA_NPEBD0@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxAppConsoleBase::OnAssert(wchar_t const *,int,wchar_t const *,wchar_t const *)" (?OnAssert@wxAppConsoleBase@@UEAAXPEB_WH00@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxAppConsoleBase::OnAssertFailure(wchar_t const *,int,wchar_t const *,wchar_t const *,wchar_t const *)" (?OnAssertFailure@wxAppConsoleBase@@UEAAXPEB_WH000@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxAppConsoleBase::ExitMainLoop(void)" (?ExitMainLoop@wxAppConsoleBase@@UEAAXXZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual int __cdecl wxAppConsoleBase::MainLoop(void)" (?MainLoop@wxAppConsoleBase@@UEAAHXZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl wxAppConsoleBase::Dispatch(void)" (?Dispatch@wxAppConsoleBase@@UEAA_NXZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl wxAppConsoleBase::Pending(void)" (?Pending@wxAppConsoleBase@@UEAA_NXZ)
1>main.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl wxAppConsoleBase::ProcessPendingEvents(void)" (?ProcessPendingEvents@wxAppConsoleBase@@UEAAXXZ)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
It seems that you're not linking with wxBase. If you use wxwidgets.props based approach, this should normally happen automatically due to pragmas in include/msvc/wx/setup.h, I don't know why it doesn't happen in your case. If you haven't modified anything, it ought to work.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I have found the reason, I need to change subsystem Console to Window.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Just for the record, if anybody else finds this issue in the future: changing the subsystem is the right thing to do, but it can not, on its own, fix the errors above.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I am getting the same error
"Severity Code Description Project File Line Suppression State Details
Error wxWidgets libraries not found under "H:\Saad\Liberary\wxWidgets-3.1.5\lib\vc{,143,14x}_x64_{lib,dll}". FirstGUI H:\Saad\Liberary\wxWidgets-3.1.5\wxwidgets.props 117"
Even after doing all the things.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I have no idea what "all the things" are but you need to build the library for the same platform/configuration you're using to build your application. If you did it, the libraries should be there, in the expected directory.
Also consider using 3.2 instead of the old unstable 3.1.5 version, it really makes no sense to still use it today.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
did you think about using cmake or the make?
I managed to build the minimal with linking all the library manually, but for the whole library, it is too much.
I am about creating a tutorial on GitHub:
https://github.com/Taylancan/wxTest
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()