Am I using gcc in a wrong way? Any help would be greatly appreciated!g++ src/*.cpp `wx-config --cxxflags --libs std --static` -o target/debug/main
Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
2 posts • Page 1 of 1
I was developing a GUI-App but when I started using wxRibbon I was getting undefined references to wxRibbon component member functions. As a compiler I am using g++ 7.4.0 on Ubuntu 18.04. What is weird is that the declarations of the ribbon components don't produce any errors, just the member functions! To check that it wasn't because of my code I loaded up the 'Ribbon' sample provided by wxWidgets. It worked using the provided make-file with cmake (which internally uses g++ because that's the only compiler I have installed) but with my compile command I got the same errors. Here it is:
I work under Windows only, so i don't know too much about wx-config, but try experimenting with different parameters for "wx-config --libs", e.g. "wx-config --libs all". The ribbon component lives in its own library, i guess it's not included in the standard libs.
Use the source, Luke!