Memory and function-scope optimization issues

Hi,

I’ve encountered two issues when i try to compile my app.

Warning: Olimit was exceeded on function _Z8runAppmm; will not perform function-scope optimization.
1> To still perform function-scope optimization, use -OPT:Olimit=0 (no limit) or -OPT:Olimit=1017015

Compiler Error (user routine ‘_Z8runAppmm’) during Code_Expansion phase:

1>### Out of memory in MEM_POOL_Realloc

when i enter -OPT:Olimit=0 or -OPT:Olimit=1017015 (even with the --opencc-options) into extra options in Visual Studio, nothing happens. is there anything else I need to do in VS to get this working?

the second error i have listed I’m pretty sure is due to the computer I’m running this on as opposed to the code. any ideas?