Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Building/executing wxWidgets in Linux?

I've installed wxWidgets installed on the desktop and I have a .cpp file already. The .cpp file is also on the desktop. I'm trying to run it using the command: g++ sample.cpp `wx-config --cxxflags --libs` -o test

However, I keep getting the error: g++: error: wx-config --cxflags --libs: No such file or directory

It seems to be that the .cpp isn't in the correct place. Where should it be?

1 Answer

Relevance
  • Anonymous
    6 years ago
    Favourite answer

    I think you must have confused configure options with GCC.

    AFAIK you just link the wxWidgets library with -l<the library name for wxWidgets> option in g++.

Still have questions? Get answers by asking now.