Author Topic: How to compile a program with wxWidgets AUI in CB  (Read 5874 times)

Offline kagi3624

  • Single posting newcomer
  • *
  • Posts: 7
How to compile a program with wxWidgets AUI in CB
« on: October 19, 2021, 11:57:43 am »
I can compile my wxWidget program from terminal with
Code
g++ myprog.cpp `wx-config --cxxflags --libs std,aui` -o prog

How and where can I edit code::blocks so I can add std,aui to the linker?

Side note: I can compile a wxWidgets project as long as I don't use AUI with code::blocks
« Last Edit: October 19, 2021, 01:19:38 pm by kagi3624 »

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
Re: How to compile a program with wxWidgets AUI in CB
« Reply #1 on: October 19, 2021, 01:10:07 pm »
You can add this to the linker options:
Code
`wx-config --libs std,aui`

Offline kagi3624

  • Single posting newcomer
  • *
  • Posts: 7
Re: How to compile a program with wxWidgets AUI in CB
« Reply #2 on: October 19, 2021, 01:19:56 pm »
thx!

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
Re: How to compile a program with wxWidgets AUI in CB
« Reply #3 on: October 19, 2021, 02:22:53 pm »
Add the
Code
--cxxflags
part also, I missed it.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7665
    • My Best Post
Re: How to compile a program with wxWidgets AUI in CB
« Reply #4 on: October 19, 2021, 06:04:09 pm »
Add the
Code
--cxxflags
part also, I missed it.

Remember this part need to be in the compiler section.
I think under other or extra; been to long since I opened CB.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org