Code::Blocks Forums

User forums => Help => Topic started by: ZXCBOMB! on August 10, 2010, 07:23:55 pm

Title: Trouble running app outside of ide
Post by: ZXCBOMB! on August 10, 2010, 07:23:55 pm
hello im new to code blocks add i just ported over a simple console app from windows vc++ to Ubuntu codeblocksc++ and everything works fine. but when i try to run the app as a stand alone app i double click it and nothing happens. if i open it from terminal it works fine. but i really just want to be able to open it by itself.
Title: Re: Trouble running app outside of ide
Post by: Ceniza on August 10, 2010, 08:43:04 pm
That is normal behavior in *nix. It has nothing to do with Code::Blocks itself.
Title: Re: Trouble running app outside of ide
Post by: ZXCBOMB! on August 10, 2010, 08:53:30 pm
thanks for the reply. i don`t mean to offend but it doesn't really help much. could you at least point me in the right direction. i mean it should be pretty simple but if codeblocks has nothing to do with it then what do i need to do to Linux to make it open up my app?
Title: Re: Trouble running app outside of ide
Post by: Jenna on August 10, 2010, 09:00:34 pm
If it's a console app it needs either a real console/terminal or a terminal-emulator to have visible output under X.
Title: Re: Trouble running app outside of ide
Post by: ZXCBOMB! on August 10, 2010, 09:07:33 pm
so theres no way to get terminal to open it automatically when i double click it. if thats true then oh well i guess thanks for the help anyways.

i have one extra question to ask. how do i get the compiler/ide to make a release build. thanks everyone for the help.
Title: Re: Trouble running app outside of ide
Post by: oBFusCATed on August 10, 2010, 10:10:37 pm
Choose the Release build target if you're using a project template coming with C::B