User forums > Using Code::Blocks

Auto Rebuild Not Working

<< < (2/5) > >>

Dalmango:
1 - Thanks for your rapid responses Blue, your exactly right with my stages, well actually I'm hitting build & run, but I'd eat my hat if Build & Run isn't just combining both of these procedures. I just ran 3 different times, oddly the second time worked, but my process was the same & has been the same for 50 or so files. Please don't think this is someone who can't be bothered.

2 - Yes it's an unusual way of working, I'm learning C++ following tutorials from a Youtube channel. It's great to have all of my notes and progs in a single place for reference when I get coding. This process has been working fantastically up until tutorial 43 or so, & my process has been the same each time.



--- Code: ----------------- Build: Debug in TheNewBostonsC++ (compiler: GNU GCC Compiler)---------------

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


-------------- Run: Debug in TheNewBostonsC++ (compiler: GNU GCC Compiler)---------------
Checking for existence: D:\Learning\Programming\C++\TheNewBostonsC++\bin\Debug\TheNewBostonsC++.exe
Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Intel\iCLS Client;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Common Files\Sage SBD;C:\Program Files (x86)\Common Files\Sage SData;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\Program Files\Microsoft SQL Server\110\DTS\Binn;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\bah;C:\Program Files\Intel\Intel(R) Management Engine Components\bah;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Windows\System32\OpenSSH;C:\Python37;C:\Python37\Scripts;C:\Program Files (x86)\Print Conductor;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PowerShell\7;C:\Users\bah_c\AppData\Local\Microsoft\WindowsApps;C:\Users\bah_c\AppData\Roaming\Dashlane\6.1926.1.21432\bin\Firefox_Extension\{442718d9-475e-452a-b3e1-fb1ee16b8e9f}\components;C:\Users\bah_c\AppData\Roaming\Dashlane\6.1926.1.21432\ucrt;C:\Users\bah_c\AppData\Roaming\Dashlane\6.1926.1.21432\bin\Qt;C:\Users\bah_c\AppData\Roaming\Dashlane\6.1926.1.21432\bin\Ssl;C:\msys64\usr\bin;C:\msys64\mingw64\bin
Executing: "C:\Program Files\CodeBlocks/cb_console_runner.exe" "D:\Learning\Programming\C++\TheNewBostonsC++\bin\Debug\TheNewBostonsC++.exe"  (in D:\Learning\Programming\C++\TheNewBostonsC++\.)
Process terminated with status -1073741510 (0 minute(s), 2 second(s))

--- End code ---



--- Code: ----------------- Build: Debug in TheNewBostonsC++ (compiler: GNU GCC Compiler)---------------

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


-------------- Run: Debug in TheNewBostonsC++ (compiler: GNU GCC Compiler)---------------

Checking for existence: D:\Learning\Programming\C++\TheNewBostonsC++\bin\Debug\TheNewBostonsC++.exe
Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Intel\iCLS Client;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Common Files\Sage SBD;C:\Program Files (x86)\Common Files\Sage SData;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\Program Files\Microsoft SQL Server\110\DTS\Binn;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\bah;C:\Program Files\Intel\Intel(R) Management Engine Components\bah;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Windows\System32\OpenSSH;C:\Python37;C:\Python37\Scripts;C:\Program Files (x86)\Print Conductor;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PowerShell\7;C:\Users\bah_c\AppData\Local\Microsoft\WindowsApps;C:\Users\bah_c\AppData\Roaming\Dashlane\6.1926.1.21432\bin\Firefox_Extension\{442718d9-475e-452a-b3e1-fb1ee16b8e9f}\components;C:\Users\bah_c\AppData\Roaming\Dashlane\6.1926.1.21432\ucrt;C:\Users\bah_c\AppData\Roaming\Dashlane\6.1926.1.21432\bin\Qt;C:\Users\bah_c\AppData\Roaming\Dashlane\6.1926.1.21432\bin\Ssl;C:\msys64\usr\bin;C:\msys64\mingw64\bin
Executing: "C:\Program Files\CodeBlocks/cb_console_runner.exe" "D:\Learning\Programming\C++\TheNewBostonsC++\bin\Debug\TheNewBostonsC++.exe"  (in D:\Learning\Programming\C++\TheNewBostonsC++\.)
Process terminated with status 0 (0 minute(s), 2 second(s))

--- End code ---

stahta01:
I read this thread twice; and, I see nowhere that the Code::Blocks version is stated.

What version of C::B is having this problem?
17.12, 20.03 or ?

Tim S.

BlueHazzard:
Please post again the build logs, but after hitting the rebuild button.

Generally the best way is to use a project per main function... It is not more work for you to do, contrary, it is less work, because for switching main, you hast have to double click on the project...

The second best way is to use different build targets for every main:
Project->Properties->Build target-> Add or dublicate.
Select the new target name from the list on the left, and then select the single source file with your main from the "Build target files"
Then if you want to build the project select it from the drop down menu near the build button in the toolbar. Or you go to Build->Select->Target

Only the third and most error prone and not convenient way is your way...
I think the problem is this:
Codeblocks decides to build a file on the timestamp
If your exe is from 14:55 and your source (exactly the object) file is from 14:40 the exe will not be rebuild. Also if you switch source file...
But to get an idea what is going on we need a full build log for every step you take...
(I personally think the output log of codeblocks build process is not verbose enough to easily debug this kind of things...)

BlueHazzard:
Also remember, you can have multiple projects in one folder... so you do not have to make multiple folder and main.cpp files.
You can simply create all projects in one folder and call the Projects
"Tutorial1.cbp" and the main.cpp file you call "tutorial1.cpp"
C++ and codeblocks is not like in java or python or other languages, where the file path is part of the program (what an idiotic idea in the first place...)

Dalmango:

--- Quote from: stahta01 on May 04, 2020, 12:54:37 pm ---I read this thread twice; and, I see nowhere that the Code::Blocks version is stated.

What version of C::B is having this problem?
17.12, 20.03 or ?

--- End quote ---

I see posts like this all the time in where I'm a member of many forums - "what version". Never have I seen a problem solved relating to the current version. Given that patches are very minor tweaks & the issue stated here is obviously related to a global preference setting.
Usually I never see anything more constructive from the person requesting versions. They often chime in requesting every possible piece of info being requested about the programme, then nothing whatsoever to solve the problem.

Given that this was happening to my previous version before the update; which was considerably old (ver 17 something previously) it is most certainly not to do with a version. We're obviously talking about a global setting. I'm tempted to force rebuilding on the entire project, but obviously I shouldn't have to do this.

I updated to Ver 20.03 this morning.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version