Author Topic: Need help with C::B under linux ubuntu  (Read 2221 times)

naskobs

  • Guest
Need help with C::B under linux ubuntu
« on: June 16, 2009, 10:51:21 am »
Hello, i am not sure if this is the right section so some moderator move it if its needed. Here is my problem.. every time when i try to compile any source  on C::B i am getting that error when the compiling finish sh: / [the project secion]/ Permission denied. Press enter to continue. I tried to change the compiler from settings but still dont work :(

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Need help with C::B under linux ubuntu
« Reply #1 on: June 16, 2009, 12:04:02 pm »
Are you sure, you have write permission to the directory you use ?

It might be helpful to know the full commandline that leads to the error and the exact error-message.

Change "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings(rightmost tab)" "Compiler logging" to "Full commandline" and post the content of the build log.

naskobs

  • Guest
Re: Need help with C::B under linux ubuntu
« Reply #2 on: June 17, 2009, 09:24:40 pm »
Hmm ok.. i just changed the location for my projects but now i have other problem.. when i am compiling my program i am getting that error message :
/media/disk/C++/asd 3: using: not found
/media/disk/C++/asd: 5: Syntax Error: "(" unexpected
press enter to continue.
but actually i am not sure if that is C::B error or  again some ubuntu problem.. and i tried to compile that simple source code
Code: [Select]
#include <iostream.h>

using namespace std;

int main()
{
cout << "Hello World!" << endl;
return 0;
}

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9524
Re: Need help with C::B under linux ubuntu
« Reply #3 on: June 18, 2009, 09:14:47 am »
Code: [Select]
#include <iostream.h>
using namespace std;
Decide if you want to develop in C or C++, then include the right headers and name the source files accordingly.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ