Author Topic: Code::Blocks 10.05  (Read 5086 times)

Offline lolsee2

  • Single posting newcomer
  • *
  • Posts: 4
Code::Blocks 10.05
« on: June 02, 2010, 05:02:18 pm »
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]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Code::Blocks 10.05
« Reply #1 on: June 02, 2010, 09:19:49 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline franzl

  • Single posting newcomer
  • *
  • Posts: 5
Re: Code::Blocks 10.05
« Reply #2 on: June 04, 2010, 02:41:20 am »
I still have the problem with wrong default compiler settings for intel compiler on linux, as I posted in nightlys forum

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
« Last Edit: June 04, 2010, 02:45:13 am by franzl »