Mac GCC and ifstream command line fix? [SOLVED]
Posted: Tue Aug 06, 2013 9:06 am
Hey guys,
I'm trying to compile my code on OSX Snow Leopard (Virtual Machine). I'm using the GCC compiler WITHOUT XCode (http://kennethreitz.org/xcode-gcc-and-homebrew/). My code is all ISO C++ with no external libraries and compiles fine. However, when I run the program, ifstream does not read anything from the file. (I get blank lines where there should be stats for the game characters).
After DuckDuckGo-ing the problem I found a solution that has worked for developers using Xcode: Delete the preprocessor macros _GLIBCXX_DEBUG=1 and _GLIBCXX_DEBUG_PEDANTIC=1 from the project settings.
However, I am only using the GCC compiler derived from the one packaged with XCode, not the actual IDE. Does anyone know how to remove these options while compiling from the terminal?
I'm trying to compile my code on OSX Snow Leopard (Virtual Machine). I'm using the GCC compiler WITHOUT XCode (http://kennethreitz.org/xcode-gcc-and-homebrew/). My code is all ISO C++ with no external libraries and compiles fine. However, when I run the program, ifstream does not read anything from the file. (I get blank lines where there should be stats for the game characters).
After DuckDuckGo-ing the problem I found a solution that has worked for developers using Xcode: Delete the preprocessor macros _GLIBCXX_DEBUG=1 and _GLIBCXX_DEBUG_PEDANTIC=1 from the project settings.
However, I am only using the GCC compiler derived from the one packaged with XCode, not the actual IDE. Does anyone know how to remove these options while compiling from the terminal?