News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

run with sudo from code::blocks

Started by fbt, January 29, 2016, 02:37:22 PM

Previous topic - Next topic

fbt

Hi!, i would like to run a compiled program from code::blocks  (ubuntu) but adding "sudo LD_LIBRARY_PATH=..." before the executable. it is possible avoiding to do it from a terminal, or invoking code::block with sudo command?. any help will be appreciated. thanks

MortenMacFly

Quote from: fbt on January 29, 2016, 02:37:22 PM
Hi!, i would like to run a compiled program from code::blocks  (ubuntu) but adding "sudo LD_LIBRARY_PATH=..." before the executable. it is possible avoiding to do it from a terminal, or invoking code::block with sudo command?. any help will be appreciated. thanks
You could do a "command only" target and use macros to achieve that.
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]

fbt

Hi, thanks for your answer ... since i'm not at expert at all, could you please give any link or additional info in order to fulfull your proposal? thanks