News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

In codeblocks 13.12 on macosx, program can not run in the project dir

Started by lzguo99, May 02, 2015, 11:24:42 AM

Previous topic - Next topic

lzguo99

osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script "$SCRIPT"' -e 'end tell'

What's this mean?

My program is a small c code and it will write a *.txt result file, but actually it seems that program run at my home dir and create result there. I expect it should run in the project dir. How can I fix the problem?

The problem is on macosx, there is no problem on ubuntu. Thanks.

oBFusCATed

This piece of code starts the terminal application on OSX, so you can see the output of your console application.

CB 13.12 is known to be broken on newer OSX releases when starting the terminal application.
Probably some of the nightlies have fixes for this problem, but there is no one building CB on OSX, so we don't know if this is really the case.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]