News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[SOLVED] Strange executing problem

Started by Dee, February 16, 2006, 05:32:34 PM

Previous topic - Next topic

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
QuoteLinking 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
QuoteChecking 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

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

#2
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...
Life would be so much easier if we could just look at the source code.

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
But I only get the error:
Quotedee@dexus:~/home/test$ ./test
bash: ./test: No rights
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?
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Dee

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