I installed wxWidgets 3.0.3 using the command sequence for my Ubuntu 16.04 OS (xenial) using these instructions:
http://codelite.org/LiteEditor/WxWidgets303BinariesI am using wxWidgets 3.0.3 because that was the latest and greatest when the project was started on a Windows 7 Machine. On that Windows 7 machine I tried to upgrade to wxWidgets 3.0.4 and got a lot of errors I did not have time to deal with. Now attempting to migrate it to my Ubuntu machine using Code::Blocks 17.12 with wxWidgets 3.0.3
Now in Ubuntu Code::Blocks does not know where wxWidgets is. All wxWigets classes got undefined errors. So I followed the instructions at:
https://wiki.wxwidgets.org/Wx-ConfigAs I understand them. To do this I went to Project => Build Options => Compiler Flags . In this tab I right clicked and selected "New Flag". I selected the General Category. In the Name field I entered: "wxWidgets". In the Compiler flags field I entered `wx-config --cxxflags`. And in the Linker flags field I entered: `wx-config --libs`
When attempted to compile I got the error:
wx-config No such file or directory
So I executed this command on and got this respoonse:
which wx-config
/usr/local/bin/wx-config
And then put the path in the flags such that I have now for those two flags:
Compiler flags: `/usr/local/bin/wx-config --cxxflags`
Linker Flags: `/usr/local/bin/wx-config --libs`
And got the same error. Then I tried exchanging ` for ' so that now I have:
Compiler flags: '/usr/local/bin/wx-config --cxxflags'
Linker Flags: '/usr/local/bin/wx-config --libs'
And I got the compile error:
error ld returned 1 exit status
I do not know where to go with this from here. Do I have the wx-config flags entered correctly? If they are what is to be done about the "ld returned 1" error?