User forums > Help

Newbie here, wanting help, please move my post to correct forum if not allowed

(1/3) > >>

caffycaffy4414:
Hi. I am a literal noob when it comes to code::blocks so please feel free to move my post elsewhere (tell me where?).
All I want to know is, why is my file not saving when I try and save it. I have a YouTube video here explaining my problem within 90 seconds.

https://www.youtube.com/watch?v=CL7ryEZ3VvA

My code is very basic, it is this

#include <stdio.h>
#include <stdlib.h>

int main()
{
    printf("There once was a man named Paul\n");
    printf("He was 66 years old\n");
    printf("He really liked the name Paul\n");
    printf("He did not like being 66\n");
    return 0;
}

Yet instead, it brings up my old code and will not save or therefore run, this new one. Can anyone help?

Thank you so much in advance.
Catherine.

Miguel Gimenez:
Post a full rebuild log (see this link).

Are you using a local folder (in the video looks like you are using the OneDrive folder)?

caffycaffy4414:
I am running Code::Blocks version Code::Blocks 20.03 on MyOperatingSystem
Microsoft Windows 11 Home Version 10.0.22621 Build 22621. The compiler I use is GNU GCC Compiler.

When I ... attempt to save the current code I have made and then try to 'Build and Run', it should bring up what I have typed (being 'There once was a man named Paul
He was 66 years old
He really liked the name Paul
He did not being 66'),
#include <stdio.h>
#include <stdlib.h>

int main()
{
    char characterName [] = "Paul";
    int characterAge = 66;
    printf("There once was a man named %s\n", characterName);
    printf("He was 66 years old\n");
    printf("He really liked the name Paul\n");
    printf("He did not like being 66\n");
    return 0;

 but instead it comes up with a triangle shape that I originally created using basic code, instead.

Build log:
#include <stdio.h>
#include <stdlib.h>

int main()
{
    char characterName [] = "Paul";
    int characterAge = 66;
    printf("There once was a man named %s\n", characterName);
    printf("He was 66 years old\n");
    printf("He really liked the name Paul\n");
    printf("He did not like being 66\n");
    return 0;
}


Crash report:
(I am not sure how to find this, as it did not crash on me).

    (Although the following is not necessary, showing that you
     have tried increases the probability of a response.)
I have already tried ...
Saving the file I am currently on and then clicking 'Build and run' but it did not work.
Help please?

I am using a One Drive folder yes, but on windows 11, I don't know how to not use onedrives folders. You'll see in the screenshot I have attempted to save elsewhere (for example on my DOCUMENTS instead of on my desktop this time), but it still saves to OneDrive. I have tried disabling OneDrive but it does not work. Sorry, I really am a newbie.

But any help would be great, thank you.

caffycaffy4414:
Excuse the fact the files are called 'GIRAFFE' etc. by the way, this was me copying a YouTube video which used Giraffe as the file name. TIA.

caffycaffy4414:
Update: I have of course, worked out how to not save to OneDrive. I shouldve known this originally, seeing as I have been working with computers extensively for about 26 years now. Oops. Anyway here is the file path now (see picture please).

Navigation

[0] Message Index

[#] Next page

Go to full version