41
General (but related to Code::Blocks) / Re: Compilation Error on CodeBlocks
« Last post by MortenMacFly on September 24, 2023, 07:26:41 pm »...fixed in revision 13360. Sorry about that, I forgot to select one file on the initial commit
The new Release 20.03 is out! You can download binaries for Windows and many major Linux distros here .
I am running Code::Blocks version 16.01 on windows 10. The compiler I use is GNU GCC Compiler. Version, I am not sure. When I try to compile a multiple-source file program, it just could not compile. I tried saving both source files on the same directory but it could not work. I have attached the build logs and build messages on this post. Any help?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
int main()
{
printf("Hello world!\n");
printf("Sqrt2=%f\n",sqrt(2.0));
double two = 2.001;
printf("Sqrt2.001=%f\n",sqrt(two));
char goodby[100];
goodby[10] = 0;
char hello[100];
strcpy(hello,"hello");
hello[5] = 0;
strcpy(goodby, hello);
printf("goodby=%s",goodby);
return 0;
}