Code::Blocks Forums

User forums => Help => Topic started by: Soros on June 30, 2021, 08:36:10 am

Title: "Hello World". Error: No such file or directory
Post by: Soros on June 30, 2021, 08:36:10 am
Hello. I wrote project that used "usb.c" file. This project done and removed.
Then I try create simple "Hello World" application
Code
int main()
{
    printf("Hello World!\n");
    return 0;
}

Click Build and Run... And:
I see this sh...  >:(
gcc     No such file or directory
usb.c  No such file or directory

(https://i.ibb.co/ygpDd5j/build.png) (https://ibb.co/mh0mbtW)
WTF?? Why new compiling searches old files and resources from old (removed) project??
I clear confused and dont know.. How fix this??
What means that "gcc No such file.." ??
I tried reinstall CB. But this uneusefull.
At another computer no any troubles
Thanks.
Title: Re: "Hello World". Error: No such file or directory
Post by: Miguel Gimenez on June 30, 2021, 02:22:00 pm
Somehow you are still using the old project, or misconfigured the compiler settings. Can you post the CBP file?

Reinstalling applications (or OSes) is rarely a wise option.
Title: Re: "Hello World". Error: No such file or directory
Post by: AndrewCot on July 01, 2021, 03:29:55 pm
Soros, Looks like you have either not installed a compiler or using the old project or have an incorrect default compiler or have not configured the compiler in codeblocks.

To configure a compiler in codeblocks please have a look at section 5.2.3 in the following codeblocks manual:
https://www.codeblocks.org/docs/manual_codeblocks_en.pdf

If you still cannot get CB working in addition to the CBP file as rquested by Miguel can you also supply the following details:

Title: Re: "Hello World". Error: No such file or directory
Post by: stahta01 on July 01, 2021, 04:10:58 pm
If you post the "Build Log" instead of "Build Messages" it will also help find the problem's cause.

https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)

Tim S.