wxWidgets libraries not found? (Issue #22560)

789 views
Skip to first unread message

pigLoveRabbit

unread,
Jun 21, 2022, 10:38:53 PM6/21/22
to wx-...@googlegroups.com, Subscribed

Describe the problem
I have compiled the libray via

nmake /f makefile.vc BUILD=release TARGET_CPU=X64

image
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

  • wxWidgets version you use: 3.1.7
  • wxWidgets port you use: wxMSW
  • OS and its version: Windows 10.0
  • Compiler being used: MSVS 2022


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22560@github.com>

VZ

unread,
Jun 22, 2022, 5:41:07 AM6/22/22
to wx-...@googlegroups.com, Subscribed

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.Message ID: <wxWidgets/wxWidgets/issues/22560/1162880522@github.com>

VZ

unread,
Jun 22, 2022, 5:41:10 AM6/22/22
to wx-...@googlegroups.com, Subscribed

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.Message ID: <wxWidgets/wxWidgets/issue/22560/issue_event/6854731359@github.com>

pigLoveRabbit

unread,
Jun 22, 2022, 10:20:06 PM6/22/22
to wx-...@googlegroups.com, Subscribed

@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.Message ID: <wxWidgets/wxWidgets/issues/22560/1163849589@github.com>

VZ

unread,
Jun 23, 2022, 7:52:47 AM6/23/22
to wx-...@googlegroups.com, Subscribed

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.Message ID: <wxWidgets/wxWidgets/issues/22560/1164313382@github.com>

pigLoveRabbit

unread,
Jun 24, 2022, 9:23:10 PM6/24/22
to wx-...@googlegroups.com, Subscribed

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.Message ID: <wxWidgets/wxWidgets/issues/22560/1166164111@github.com>

VZ

unread,
Jun 25, 2022, 8:36:34 AM6/25/22
to wx-...@googlegroups.com, Subscribed

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.Message ID: <wxWidgets/wxWidgets/issues/22560/1166274832@github.com>

Saad Mohammed

unread,
Dec 29, 2024, 8:35:17 AM12/29/24
to wx-...@googlegroups.com, Subscribed

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.Message ID: <wxWidgets/wxWidgets/issues/22560/2564727752@github.com>

VZ

unread,
Dec 29, 2024, 8:47:55 AM12/29/24
to wx-...@googlegroups.com, Subscribed

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.Message ID: <wxWidgets/wxWidgets/issues/22560/2564731235@github.com>

Taylancan

unread,
Dec 29, 2024, 6:21:48 PM12/29/24
to wx-...@googlegroups.com, Subscribed

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.Message ID: <wxWidgets/wxWidgets/issues/22560/2564864604@github.com>

Reply all
Reply to author
Forward
0 new messages