Re: No RibbonBar in CLion on MacOS14.7

Vadim Zeitlin <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Fri, 7 Mar 2025 00:22:34 -0800 (PST) Christian Homeier wrote:

CH> Hello to all of you,
CH> 
CH> I have problems to integrate a wxRibbonBar() in my Project. When trying to 
CH> build I ran into this Error:
CH> 
CH> Undefined symbols for architecture x86_64:
CH>   "wxRibbonBar::wxRibbonBar()", referenced from:
CH>       PjmFrame::PjmFrame() in pjm_frame.cpp.o

 You need to link with the ribbon library.

CH> With the Sample-Projekt it´s the same, BUT if I build the Sample WITHOUT my 
CH> CLion IDE, using the MAKEFILE of the Sample in a terminal it compiles and 
CH> ran.
CH> 
CH> Can anyone here tell me what I´m doing wrong?

 I don't know how do you specify the link options in your project in this
IDE, but you must use the equivalent of `wx-config --libs` output, whether
directly (if the IDE supports running commands) or as a copy. To use
wxRibbonBar, you need to change this to be `wx-config --libs std,ribbon`
instead.

 Good luck,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              https://www.tt-solutions.com/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZ8rSKAAKCRAG6kHeT2we
huImAJ9OrNvV4PnIYUmVXyfmg35qwxylwACeJowaNHg9ZV6STFUYjKNCcR5uvVo=
=1kjD
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.