Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- seemingly others have similar probs with Cygwin and C++11
- http://stackoverflow.com/questions/21689124/mkstemp-and-fdopen-in-cygwin-1-7-28
- http://stackoverflow.com/questions/15944051/error-fdopen-was-not-declared-found-with-g-4-that-compiled-with-g3
- the dirty solution is to add an undefine in the CMakeLists.txt "in the right place" (hmm, that is a bit devilish :-P ) for compiler flags ...
- so that compilation will be like that:
- g++ -std=c++11 -U__STRICT_ANSI__ foo.cpp
- the clean way would be to let cmake detect cygwin and do this hack only if cygwin is detected.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement