Author Topic: Compiler error not rectifying even after selecting MinGW files in Toolchain exec  (Read 4205 times)

Offline Code Blocks_User

  • Single posting newcomer
  • *
  • Posts: 2
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.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
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.

You can also read section 5.2.3 from Gerard Durand's manual.

Offline Code Blocks_User

  • Single posting newcomer
  • *
  • Posts: 2
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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7665
    • My Best Post
To Code Blocks_User did you install the compiler that you told Code::Blocks to use?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
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.