User forums > Using Code::Blocks
[SOLVED] Strange executing problem
Dee:
Hallo,
I use the latest CB-Version for Ubuntu Breezer from here. 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
--- Quote ---Linking executable: /home/dee/home/test/fr/fr
Process terminated with status 0 (0 minutes, 27 seconds)
0 errors, 0 warnings
--- End quote ---
But if I select "run" I only get
--- Quote ---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
--- End quote ---
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
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
yop:
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...
Dee:
Hm, I think it's a problem with the rights...
The rights for the executable are
--- Quote ----rwxr-xr-x 1 dee dee 19472 2006-02-16 20:58 test
--- End quote ---
But I only get the error:
--- Quote ---dee@dexus:~/home/test$ ./test
bash: ./test: No rights
--- End quote ---
Why can I not execute it although I have access?
Dee
MortenMacFly:
--- Quote from: Dee on February 16, 2006, 09:10:54 pm ---Why can I not execute it although I have access?
--- End quote ---
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.
Navigation
[0] Message Index
[#] Next page
Go to full version