tags:

views:

196

answers:

2

I developed a command line application on Linux which needs its stack to be increased. On Linux I just used the workaround: ulimit -s unlimited before running the program. On Mac OS X, command line with G++, I add to the compilation options:

-Wl,-stack_size,0x10000000

and it works.

Now I am developing this program with XCODE, where should I add this option?

A: 

From the project window:

Targets > [Your target] > info > Build > Other Linker Flags > [your flags]

cobbal
thanksas -Wl,-stack_size,0x10000000or-stack_size,0x10000000?
asdf
you mean, under linking ---> other linking flags, right?
asdf
yep, fixed now.
cobbal
A: 

I'm having the same problem. I am able to follow all the way until the step that I am in "other linker flags". I double click and try to put in in -Wl,-stack_size,0x10000000 or -stack_size,0x10000000. Then compiling and running the program and it does not work. It says Build failed (1 error).

What am I doing wrong?

Thank you.

ppp