Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: kagi3624 on October 19, 2021, 11:57:43 am

Title: How to compile a program with wxWidgets AUI in CB
Post by: kagi3624 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
Title: Re: How to compile a program with wxWidgets AUI in CB
Post by: Miguel Gimenez on October 19, 2021, 01:10:07 pm
You can add this to the linker options:
Code
`wx-config --libs std,aui`
Title: Re: How to compile a program with wxWidgets AUI in CB
Post by: kagi3624 on October 19, 2021, 01:19:56 pm
thx!
Title: Re: How to compile a program with wxWidgets AUI in CB
Post by: Miguel Gimenez on October 19, 2021, 02:22:53 pm
Add the
Code
--cxxflags
part also, I missed it.
Title: Re: How to compile a program with wxWidgets AUI in CB
Post by: stahta01 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.