Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wxWidgets Compilation Error

47 views
Skip to first unread message

Heitber Andres Montilla Ramirez

unread,
May 28, 2020, 12:41:24 AM5/28/20
to
hey friends, i have a problem i´m making a wxWidgets app but when i compile there are five errors that appear:

ld.exe____cannot find -lwxmswd_core
ld.exe____cannot find -lwxbased
ld.exe____cannot find -lwxpngd
ld.exe____cannot find -lwxzlibd

i tried to add those in the linker settings but don't work.
how i may solve this problem i'm using codeblocks 17.12 and wxwidgets 3.0.4

red floyd

unread,
May 28, 2020, 1:47:25 PM5/28/20
to
What is your question about C++?

Mr Flibble

unread,
May 28, 2020, 1:51:35 PM5/28/20
to
Indeed. wxWidgets is MFC and MFC isn't C++; MFC is a "bag of shite".

/Flibble

--
"Snakes didn't evolve, instead talking snakes with legs changed into snakes." - Rick C. Hodgin

“You won’t burn in hell. But be nice anyway.” – Ricky Gervais

“I see Atheists are fighting and killing each other again, over who doesn’t believe in any God the most. Oh, no..wait.. that never happens.” – Ricky Gervais

"Suppose it's all true, and you walk up to the pearly gates, and are confronted by God," Byrne asked on his show The Meaning of Life. "What will Stephen Fry say to him, her, or it?"
"I'd say, bone cancer in children? What's that about?" Fry replied.
"How dare you? How dare you create a world to which there is such misery that is not our fault. It's not right, it's utterly, utterly evil."
"Why should I respect a capricious, mean-minded, stupid God who creates a world that is so full of injustice and pain. That's what I would say."

Alf P. Steinbach

unread,
May 28, 2020, 3:37:44 PM5/28/20
to
Find those libraries.

Possibly you may have to build them.

Then make sure that the the binaries are in folders that the linker
searches for libraries. One easy way is to place them together with
other library binaries that you know are found. One feels-more-right way
is to check the documentation (or output from `g++ -v --help`) to find
the option and/or environment variable that specifies those folders.

- Alf

Paavo Helde

unread,
May 28, 2020, 4:31:13 PM5/28/20
to
28.05.2020 20:51 Mr Flibble kirjutas:
>
> Indeed. wxWidgets is MFC and MFC isn't C++;

Curiously, this reminds me something about apples and fruits. But
anyway, you are wrong here; wxWidgets is not MFC, it is only inspired by
MFC. Should we say it's an abstraction of MFC?

You are right in that MFC is not C++. It is a C++ library.


Mr Flibble

unread,
May 28, 2020, 6:26:01 PM5/28/20
to
On 28/05/2020 21:31, Paavo Helde wrote:
> 28.05.2020 20:51 Mr Flibble kirjutas:
>>
>> Indeed. wxWidgets is MFC and MFC isn't C++;
>
> Curiously, this reminds me something about apples and fruits. But anyway, you are wrong here; wxWidgets is not MFC, it is only inspired by MFC. Should we say it's an abstraction of MFC?

Anything inspired by a "bag of shite" is a "bag of shite".

> You are right in that MFC is not C++. It is a C++ library.

I am sure it wouldn't be too hard to find some C++ non-conformance in the MFC "bag of shite" given how crap the M$ C++ compiler is.

Cholo Lennon

unread,
May 28, 2020, 7:02:07 PM5/28/20
to
On 28/5/20 14:51, Mr Flibble wrote:
> On 28/05/2020 18:48, red floyd wrote:
>> On 5/27/2020 9:41 PM, Heitber Andres Montilla Ramirez wrote:
>>> hey friends, i have a problem i´m making a wxWidgets app but when i
>>> compile there are five errors that appear:
>>>
>>> ld.exe____cannot find -lwxmswd_core
>>> ld.exe____cannot find -lwxbased
>>> ld.exe____cannot find -lwxpngd
>>> ld.exe____cannot find -lwxzlibd
>>>
>>> i tried to add those in the linker settings but don't work.
>>> how i may solve this problem i'm using codeblocks 17.12 and wxwidgets
>>> 3.0.4
>>>
>>
>> What is your question about C++?
>
> Indeed. wxWidgets is MFC and MFC isn't C++; MFC is a "bag of shite".

Well, maybe MFC is awful for today standards, but remember that the
library dates from Win 3.x epoch. In those ancient times OOP and
specially inheritance were a trendy boom... and of course C++ (and VC++
compiler) was not what it's today. The good thing about MFC was that it
was very easy to migrate applications from Win 3.x to Win 95/98 and
later to Win XP/2000 (at least in my experience).

Of course, when other lightweight and modern GUI libraries appeared like
WTL, I left MFC behind... well, due to MS winding ideas about GUI
programming (hello new WinUI, OMG another framework again!) I left
Windows GUI programming, but this is another story.

Regards


--
Cholo Lennon
Bs.As.
ARG

Öö Tiib

unread,
May 29, 2020, 3:20:14 AM5/29/20
to
The core issue is that human operator is slow. Most time consuming
part is when user has to navigate back-and forth in forest of
inconveniently designed GUI for to get some common use-case covered.

GUI is often designed inconveniently because actual nuances of
end-user needs get often lost or initially misunderstood by
programmer. What is self-evident for one is unclear to other.

In C++ code the GUI is tree of data members. The data members
of classes can be tricky, time-consuming and error-prone to rearrange.
It really does not matter if such data member is made using
inheritance or CRTP of its base class. In script-based GUI that
is way simpler and so it wins.

Therefore the winner seems to be entirely text-parsing-based
run-time binding like HTML. That is way less efficient than both
CRTP of WTL or run-time polymorphic base classes of MFC whose
differences do not matter at all.

Paavo Helde

unread,
May 29, 2020, 3:43:46 AM5/29/20
to
29.05.2020 01:25 Mr Flibble kirjutas:
> On 28/05/2020 21:31, Paavo Helde wrote:
>> 28.05.2020 20:51 Mr Flibble kirjutas:
>>>
>>> Indeed. wxWidgets is MFC and MFC isn't C++;
>>
>> Curiously, this reminds me something about apples and fruits. But
>> anyway, you are wrong here; wxWidgets is not MFC, it is only inspired
>> by MFC. Should we say it's an abstraction of MFC?
>
> Anything inspired by a "bag of shite" is a "bag of shite".
>
>> You are right in that MFC is not C++. It is a C++ library.
>
> I am sure it wouldn't be too hard to find some C++ non-conformance in
> the MFC "bag of shite" given how crap the M$ C++ compiler is.

I'm sure it is not too hard to find some C++ non-conformance in any
medium or large C++ project.

In MFC there are some functions like CWnd::GetSafeHwnd() whose
functionality depends on whether this==nullptr. Any application relying
on this is non-conforming. I don't know if MFC itself relies on such
things internally or not.

BTW, MSVC was crap 20 years ago. Nowadays it has become pretty decent.

Miguel Giménez

unread,
May 29, 2020, 5:18:21 AM5/29/20
to
Read this link:

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

and then post the results in forums.codeblocks.org

My bet is you are trying to use debug libraries while you only have
release ones.

--
Saludos
Miguel Giménez

taliadon

unread,
Jun 6, 2020, 9:20:37 PM6/6/20
to
On 28/05/2020 18:51, Mr Flibble wrote:
> On 28/05/2020 18:48, red floyd wrote:
>> On 5/27/2020 9:41 PM, Heitber Andres Montilla Ramirez wrote:
>>> hey friends, i have a problem i´m making a wxWidgets app but when i
>>> compile there are five errors that appear:
>>>
>>> ld.exe____cannot find -lwxmswd_core
>>> ld.exe____cannot find -lwxbased
>>> ld.exe____cannot find -lwxpngd
>>> ld.exe____cannot find -lwxzlibd
>>>
>>> i tried to add those in the linker settings but don't work.
>>> how i may solve this problem i'm using codeblocks 17.12 and wxwidgets
>>> 3.0.4
>>>
>>
>> What is your question about C++?
>
> Indeed. wxWidgets is MFC and MFC isn't C++; MFC is a "bag of shite".
>
> /Flibble
>

wxWidgets (msw) is not MFC, it's WIN32.
0 new messages