Author Topic: In codeblocks 13.12 on macosx, program can not run in the project dir  (Read 3579 times)

Offline lzguo99

  • Single posting newcomer
  • *
  • Posts: 4
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
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!]