Lets try to fix this:
1) Use projects. Codeblocks is made to use Projects, where it stores what compiler to use, the right compiler settings and so on. If you don't use projects you can't debug your program and you will run into many other issues. If you don't use projects where should codeblocks decide what compiler he is using?
2)
fix the building message like this:
||=== Build file: "no target" in "no project" (compiler: unknown) ===|
seems it does not recognise the GCC6.2.0 i used
make the codeblocks to detect the compiler version which is working now...in case i want to change another compile version
Please use code tags for buil log. It is difficult to differentiate between your message and the build log.
Also, if you have compiling problems please read and follow this:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F3) Use a new tiopic. This has nothing to do with the nightly directly, but how you use codeblocks
4)
//MSVC++ 14.0 _MSC_VER == 1900 (Visual Studio 2015)
//MSVC++ 12.0 _MSC_VER == 1800 (Visual Studio 2013)
//MSVC++ 11.0 _MSC_VER == 1700 (Visual Studio 2012)
//MSVC++ 10.0 _MSC_VER == 1600 (Visual Studio 2010)
//MSVC++ 9.0 _MSC_VER == 1500 (Visual Studio 2008)
//MSVC++ 8.0 _MSC_VER == 1400 (Visual Studio 2005)
//MSVC++ 7.1 _MSC_VER == 1310 (Visual Studio 2003)
//MSVC++ 7.0 _MSC_VER == 1300
//MSVC++ 6.0 _MSC_VER == 1200
//MSVC++ 5.0 _MSC_VER == 1100
#ifdef __GNUC__
printf("\nCompiled by gcc-%d.%d.%d\n", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
#elif _MSC_VER
// printf("\nCompiled by %d\n", _MSC_VER);
if (_MSC_VER == 1900)
printf("\nCompiled by VC2015\n");
else if (_MSC_VER == 1800)
printf("\nCompiled by VC2013\n");
else if (_MSC_VER == 1700)
printf("\nCompiled by VC2012\n");
else if (_MSC_VER == 1600)
printf("\nCompiled by VC2010\n");
else if (_MSC_VER == 1500)
printf("\nCompiled by VC2008\n");
else if (_MSC_VER == 1400)
printf("\nCompiled by VC2005\n");
else if (_MSC_VER == 1310)
printf("\nCompiled by VC2003\n");
else if (_MSC_VER == 1200)
printf("\nCompiled by VC6.0");
else
printf("\nCompiled by Other VC compiler\n");
#endif // __GNUC__
#ifdef __GLIBC__
printf("Glibc version :%d \n", __GLIBC__);//C Libraries
#elif __GLIBCXX__
printf("Glibc version :%d \n", __GLIBCXX__);//C++ Libraries
#endif // __GLIBC__
Is this code from you? Do you want to run this code?