Author Topic: [SOLVED] Strange executing problem  (Read 6015 times)

Dee

  • Guest
[SOLVED] Strange executing problem
« on: February 16, 2006, 05:32:34 pm »
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
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
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
« Last Edit: February 17, 2006, 04:35:04 pm by Dee »

Dee

  • Guest
Re: Strange executing problem
« Reply #1 on: February 16, 2006, 09:02:27 pm »
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

Offline yop

  • Regular
  • ***
  • Posts: 387
Re: Strange executing problem
« Reply #2 on: February 16, 2006, 09:05:06 pm »
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...
« Last Edit: February 16, 2006, 09:06:49 pm by yop »
Life would be so much easier if we could just look at the source code.

Dee

  • Guest
Re: Strange executing problem
« Reply #3 on: February 16, 2006, 09:10:54 pm »
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:
Quote
dee@dexus:~/home/test$ ./test
bash: ./test: No rights
Why can I not execute it although I have access?

Dee

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: Strange executing problem
« Reply #4 on: February 16, 2006, 09:24:50 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Dee

  • Guest
Re: Strange executing problem
« Reply #5 on: February 16, 2006, 09:35:15 pm »
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