Re: C++11

Stephen Leake <[email protected]>
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
Compiling with cygwin

g++ --version
g++ (GCC) 4.8.2

g++  -I. -I../monotone    -I/usr/include/botan-1.10          -g -O2 -Wall -Wextra -Wno-unused -Wno-unused-parameter -std=c++11 -MT src/unix/process.o -MD -MP -MF $depbase.Tpo -c -o src/unix/process.o ../monotone/src/unix/process.cc &&\
mv -f $depbase.Tpo $depbase.Po
../monotone/src/unix/process.cc: In function ‘pid_t process_spawn_pipe(const char* const*, FILE**, FILE**)’:
../monotone/src/unix/process.cc:264:29: error: ‘fdopen’ was not declared in this scope
   *in = fdopen(infds[1], "w");

fdopen should be in stdio.h, and '#include <stdio.h> is present.

The error goes away if I delete '-std=c++11'. Or if I change it to gnu++11!

-- 
-- Stephe

_______________________________________________
Monotone-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.