Author Topic: since yesterday my codeblocks takes a long time to compile and execute  (Read 7064 times)

Offline Acode

  • Single posting newcomer
  • *
  • Posts: 3
since yesterday my codeblocks takes a long time to compile and execute like 4 seconds,
I have a:
i7-8700k
16 GB ram
1070
SSD
I have already tried:
Add codeblocks folder and projects folder  to exclusions of my antivirus
Reinstall codeblocks
 how can I fix it ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: since yesterday my codeblocks takes a long time to compile and execute
« Reply #1 on: January 24, 2020, 07:54:18 pm »
You have to find out why it is slow.
Does it happen with a simple console project?
Have you looked in task manager?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Online stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: since yesterday my codeblocks takes a long time to compile and execute
« Reply #2 on: January 24, 2020, 09:53:41 pm »
Sounds like Windows OS, if all else fails, try shutting down and restarting the computer.

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 Acode

  • Single posting newcomer
  • *
  • Posts: 3
Re: since yesterday my codeblocks takes a long time to compile and execute
« Reply #3 on: January 26, 2020, 08:08:51 pm »
Yes this happens with quite simple projects, I've already checked the task manager and the only processes running are those of windows and other light ones like as spotify, nord vpn or discord.
Of course I've already tried to restart my OS.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: since yesterday my codeblocks takes a long time to compile and execute
« Reply #4 on: January 26, 2020, 10:10:57 pm »
If the problem is in Code::Blocks, I would disable all CB plugins except for the Compiler.

Does it get faster, if yes, then enabled one plugin at a time to see which one is making it slow.

If it does not get faster, try compiling from the command line. Is it still slow?

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 Acode

  • Single posting newcomer
  • *
  • Posts: 3
Re: since yesterday my codeblocks takes a long time to compile and execute
« Reply #5 on: January 27, 2020, 12:56:33 pm »
still slow :(

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: since yesterday my codeblocks takes a long time to compile and execute
« Reply #6 on: January 27, 2020, 01:49:34 pm »
still slow :(

Does this slow also apply to this:

If it does not get faster, try compiling from the command line. Is it still slow?

If it does, maybe

since yesterday my codeblocks takes a long time to compile and execute like 4 seconds,

your program is now more than just a printf("Hello World!")? Because 4 seconds is like blazing fast for any of my programs.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: since yesterday my codeblocks takes a long time to compile and execute
« Reply #7 on: January 27, 2020, 06:53:25 pm »
Make sure the Compiler Folder is set inside the Anti-Virus correctly.

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

Online stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: since yesterday my codeblocks takes a long time to compile and execute
« Reply #8 on: January 27, 2020, 06:57:00 pm »
If your project is multiple files:

Clean the whole project.
Compile one file at a time (You could find that one of the files takes a long time to compile; that means it is likely a code issue inside that file)

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