User forums > Using Code::Blocks

Auto Save before Build

<< < (2/2)

Jenna:

--- Quote from: mark1977 on December 30, 2011, 02:07:51 pm ---
--- Quote from: thomas on November 11, 2007, 02:06:47 pm ---Code::Blocks saves all files that are part of the current project when you run a build.

--- End quote ---

This does not seem to be happening for me. I only have one file, it is part of the  project, and I have to save it every time before I build (with F9).

--- End quote ---
Which OS and version of C::B do you use ?

Can you provide a simple test project where this happens ?
And please give a step by step guide to reproduce this.

mark1977:
I am running on Ubuntu 11, C:B 10.05.

I have attached my project and source files. All I have to do is press F9 - it runs but it does not take into account the latest changes (so I have to do ctrl-S then F9 in order for it to work properly).

Cheers!

mark1977:
Might be worth noting that my source file is in a dropbox folder.

EDIT: I have tried putting the source file elsewhere and the problem still exists.

 I have noticed exactly what the problem seems to be: I have to actually hit F9 once, let the code start running, stop the code (or let it finish) then hit F9 again. When it runs the second time, it has taken account of my changes - not on the first go though!

Jenna:

--- Quote from: mark1977 on December 30, 2011, 04:09:05 pm ---I am running on Ubuntu 11, C:B 10.05.

I have attached my project and source files. All I have to do is press F9 - it runs but it does not take into account the latest changes (so I have to do ctrl-S then F9 in order for it to work properly).

Cheers!

--- End quote ---
Works fine here with gcc instead of Intel-compiler.

Is the cpp file a local file (from its path it does not look so) ?
If it's not, does it work with a local copy of the file ?

My reply and your post have crossed each other.

mark1977:
Thanks jens - I tried with gcc and it works fine. So there is something about using the intel compiler that causes this problem (and possibly other compilers too). Does that make any sense to you - can you think of any reason why I need to build twice with the intel compiler? (The intel compiler is essential for my work unfortunately)

Thanks.

EDIT: now I have switched back to Intel and the problem is gone! Strange but good.

Navigation

[0] Message Index

[*] Previous page

Go to full version