Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. seemingly others have similar probs with Cygwin and C++11
  2.  
  3. http://stackoverflow.com/questions/21689124/mkstemp-and-fdopen-in-cygwin-1-7-28
  4. http://stackoverflow.com/questions/15944051/error-fdopen-was-not-declared-found-with-g-4-that-compiled-with-g3
  5.  
  6. 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 ...
  7.  
  8. so that compilation will be like that:
  9. g++ -std=c++11 -U__STRICT_ANSI__ foo.cpp
  10.  
  11. 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