Code::Blocks Forums

User forums => Help => Topic started by: naskobs on June 16, 2009, 10:51:21 am

Title: Need help with C::B under linux ubuntu
Post by: naskobs 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 :(
Title: Re: Need help with C::B under linux ubuntu
Post by: Jenna 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.
Title: Re: Need help with C::B under linux ubuntu
Post by: naskobs 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
#include <iostream.h>

using namespace std;

int main()
{
cout << "Hello World!" << endl;
return 0;
}
Title: Re: Need help with C::B under linux ubuntu
Post by: MortenMacFly on June 18, 2009, 09:14:47 am
Code
#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.