Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Dee on February 16, 2006, 05:32:34 pm
-
Hallo,
I use the latest CB-Version for Ubuntu Breezer from here (http://forums.codeblocks.org/index.php/topic,1194.0.html). Further I use the wxWidgets 2.4 headers and libraries instead of 2.6 because there are several changes in this version and I do not have the time to rewrite my code.
The standard "hello world"-example is no problem in compiling and executing. No I try to run my code (written with wxWidgets 2.4.2 under Windows). It compiles very well with
Linking executable: /home/dee/home/test/fr/fr
Process terminated with status 0 (0 minutes, 27 seconds)
0 errors, 0 warnings
But if I select "run" I only get
Checking for existence: /home/dee/home/test/fr/fr
Executing: "/home/dee/home/test/fr/fr" (in .)
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
The output is not very helpful... I don't even know where to start searching! :(
I tried kdevelop and it compiles, links and executes fine.
Thanks for help,
Dee
-
It takes some time but I finally found my (?) mistake: I have created the whole project on a fat32-partition and I don't know why but C::B can not execute files from there.
Did anyone knows a trick to get this working?
Greetings, Dee
-
Most probably the library path is not exported. Try project options->Targets->Type->Console and you'll have a console running your application ouputing most probably the error that doesn't allow your app to launch. Can you execute it outside codeblocks?
EDIT: Ok that was not your problem...
-
Hm, I think it's a problem with the rights...
The rights for the executable are-rwxr-xr-x 1 dee dee 19472 2006-02-16 20:58 test
But I only get the error:
dee@dexus:~/home/test$ ./test
bash: ./test: No rights
Why can I not execute it although I have access?
Dee
-
Why can I not execute it although I have access?
Naming a binary (executable) "test" under linux is a bad idea. "test" is a reserved system application. Try renaming the application into something else (I use "testing" under linux) and it should work.
Morten.
-
Thanks for your answer, but I have the solution. :)
I've (or better Unbuntu has) mounted the partition with the "user" option which implies "noexec", so even if I have the rights to execute something I'm not allowed to. I have changed this and add the "exec" option in my "fstab" and know everything works fine. :)
Greetings, Dee