News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

"Hello World". Error: No such file or directory

Started by Soros, June 30, 2021, 08:36:10 AM

Previous topic - Next topic

Soros

Hello. I wrote project that used "usb.c" file. This project done and removed.
Then I try create simple "Hello World" application
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


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.

Miguel Gimenez

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.

AndrewCot

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:

  • What OS are you using? If it is Lunux can you let us know the distribution and release.
  • What C/C++ compiler and version did you install?


stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]