Right i'm back. I was trying things at work but didn't have time to compile wxwidgets so i used the pre compiled version. That is what i was using in the last message. I am now using the uncomplied version of wxwidgets.
Code Blocks 16.01 with the TDM-GCC : codeblocks-16.01mingw-setup.exe this one. And i am using WX Widgets 3.0.2.
I have set a global variable for C:\Program Files (x86)\CodeBlocks\MinGW
I have just done a fresh install of wxwidgets and compiled it with this at the command line.
Code: Select all
mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 UNICODE=1 SHARED=0 USE_OPENGL=1 CXXFLAGS="-std=gnu++11 -fno-keep-inline-dllexport"
At first i was getting a c++11 error using a method on one of the wikis, then came across this. I added MONOLITHIC as from what i had read this seemed needed. I am a complete beginner at his and am learning as i go along. It seems to compile ok without errors.
I have copied the setup.h file, i don't get any errors on this, i did at first.
When i create a project, i select wxwidgets 3, point it at the wxwidgets folder, i have selected use DLL, build as monolithic and unicode and also precompiled headers. I get an error straight away about matching Release configuration.
I have the c++ flag set in the complier setting. When i compile it all i get is this
Code: Select all
||=== Build: release in rfew (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lwxmsw30u|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 4 second(s)) ===|
In the compiler settings i have set a flag to c++1, auto detected the compiler -works fine for console- and under Search Directory/Complier i have added C:\wxWidgets-3.0.2. not really sure about that last one it was a bit of a guess.
A bit stuck. Thanks in advance for your help
