monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] C++11


From: Stephen Leake
Subject: Re: [Monotone-devel] C++11
Date: Fri, 16 May 2014 13:16:11 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]