Code Blocks - qPCR4vir/nana-docs GitHub Wiki
The nana codeblocks library build is released untested.
v1.7.0 does work using codeblocks v17.12 upgraded with g++ v8.2 on Windows. Detailed procedure below.
v1.7.1 is untested,
v1.7.2 is broken. See https://github.com/cnjinhao/nana/issues/471
v1.7.2 hotfix is OK
The bundled compiler with C::B v17.12 is badly out of date and nana will not build successfully. I use MSYS2 ( http://www.msys2.org/ ) but reportedly nuwen MinGW ( https://nuwen.net/mingw.html ) also works and it looks to be an easier installation.
- Click menu Settings->Compiler... to open Global compiler settings dialog. Then, select Search directories->Compiler tab.
- Add "NanaPath/include".
- And then, switch to the "Linker" and add "NanaPath/build/codeblocks".
-
Open the "NanaPath/build/codeblocks/nana.cbp"
-
Open "Project->Build options...->Compiler settings->Compiler flags", and enable "-std=c++11"
-
Open "Project->Build options...->Search Directories->Compiler", and add
$(#nana) and $ (#boost). These are called global variables - the first time they are needed you will be prompted to enter the installation folders for nana and boost. -
Build. The library will be "NanaPath/build/codeblocks/libnana.a"
- Create a project, then open "Project->Build options...->Compiler settings->Compiler flags", and enable "-std=c++11".
- Switch the tab to "Linker settings" in "Project build options", and add these libraries
nana gdi32 comdlg32 stdc++fs