Code::Blocks Forums

User forums => Help => Topic started by: Code Blocks_User on May 10, 2024, 06:45:40 am

Title: Compiler error not rectifying even after selecting MinGW files in Toolchain exec
Post by: Code Blocks_User on May 10, 2024, 06:45:40 am
I am running Code:: codeblocks-20.03mingw on Windows 11 Home
23H2. The compiler I use is MinGW which was included with codeblocks setup file

When I run a program it gives a prompt "It seems that this file has not been built yet. Do you want to build it now?




Build log:

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe
Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).


-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe
Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe
Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe


    I have already tried ...
To manually select compiler from Toolchain executables option several times
Uninstalled & reinstalled code blocks several times
     ..... but none of them worked.
Title: Re: Compiler error not rectifying even after selecting MinGW files in Toolchain exec
Post by: Miguel Gimenez on May 10, 2024, 10:14:36 am
Next time use code tags (the # in the post editor) and remove all redundant information:
Code
-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\Untitled12.exe

You have failed setting up the compiler, try following section 4.3 of PB's guide, a PDF downloadable here (https://github.com/PBfordev/wxpbguide).

You can also read section 5.2.3 from Gerard Durand's manual (https://www.codeblocks.org/docs/manual_codeblocks_en.pdf).
Title: Re: Compiler error not rectifying even after selecting MinGW files in Toolchain exec
Post by: Code Blocks_User on May 11, 2024, 06:47:05 pm
I have done everything as stated in manuals but haven't solved the problems. I am attaching build log and settings screentshots.

-------------- Build file: "no target" in "no project" (compiler: unknown)---------------

Nothing to be done (all items are up-to-date).

Checking for existence: C:\Users\abhis\Documents\C\checkprgrm.exe
Title: Re: Compiler error not rectifying even after selecting MinGW files in Toolchain exec
Post by: stahta01 on May 11, 2024, 09:59:09 pm
To Code Blocks_User did you install the compiler that you told Code::Blocks to use?

Tim S.
Title: Re: Compiler error not rectifying even after selecting MinGW files in Toolchain exec
Post by: Miguel Gimenez on May 12, 2024, 11:26:18 am
Quote
The compiler I use is MinGW which was included with codeblocks setup file
Obviously not, because it was not the MSYS2 compiler, and the path was different.