News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Code::Blocks 10.05

Started by lolsee2, June 02, 2010, 05:02:18 PM

Previous topic - Next topic

lolsee2

even though Code::Blocks 10.05 has jus been release, but i still gt this error.... i can't run the build and run the program. the default compiler is GNU GCC compiler.

[attachment deleted by admin]

MortenMacFly

Quote from: lolsee2 on June 02, 2010, 05:02:18 PM
but i still gt this error.... i can't run the build and run the program. the default compiler is GNU GCC compiler.
Well - the error message is pretty clear and originating from YOUR system. The directory you are trying to use is either set read-only, not accessible or you don't have sufficient rights to write into it. Check your access rights and output folder settings of the project. If you are developing a virus, your AV software might also cause this.

Next time please also accept our forum rules by posting what OS / OS version you are using. Also enabling the full compiler log might help.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

franzl

#2
I still have the problem with wrong default compiler settings for intel compiler on linux, as I posted in nightlys forum

Quote from: franzl on March 20, 2010, 12:48:15 PM
When I create a new project with the current nightly on Linux with the Intel C++ Compiler the default compiler settings are not correct. Codeblocks uses the windows compiler settings, but they differ from those which are needed under Linux.

http://software.intel.com/sites/products/documentation/hpc/compilerpro/en-us/cpp/lin/compiler_c/index.htm

Creating a C/C++ project the defaults are:
- general: /EHs (enable synchronous C++ exception handling model)
- Debug: /Zi (generate full debugging information in the object file)
- Release: /O2 (enable optimizations for speed)

Correct ones would be:
- general: (not existing under Linux)
- Debug: -g
- Release: -O2

these flags are not global settings, but can be found here: projects build options -> compiler settings -> other options. Of course every time I create a new project I can fix this manually. But is there a user setting to remove these default settings generally?

kind regards
Franzl