Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: fbt on January 29, 2016, 02:37:22 pm

Title: run with sudo from code::blocks
Post by: 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
Title: Re: run with sudo from code::blocks
Post by: MortenMacFly on January 29, 2016, 03:09:10 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.
Title: Re: run with sudo from code::blocks
Post by: fbt on February 01, 2016, 10:11:10 am
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