octave-maintainers
[Top][All Lists]
Advanced

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

Re: build fails: ‘strerror’ is not a member of ‘gnulib’


From: David Grundberg
Subject: Re: build fails: ‘strerror’ is not a member of ‘gnulib’
Date: Thu, 25 Mar 2010 14:55:24 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090812)

John W. Eaton wrote:
On 25-Mar-2010, David Grundberg wrote:

| | I could have used <stdlib.h> instead of "stdlib.h", but I felt like | using "" because the file is in the source tree.

Yes, it may be today, but if we had a POSIX-compliant system, these
standard headers would not need to be a part of Octave.

Yes.

| As for using <cstring>, this doesn't include gnulib's string.h for me.
| | Consider this example: | | #include "config.h"
| #include <cstring>
| | #ifdef WORK
| // Include gnulib's string.h
| #include <string.h>
| #endif
| | int main ()
| {
|     gnulib::strerror (0);
|     return 0;
| }
| | Here it will not compile if WORK is undefined. (So this works: g++ | gnulibtest.cc -I. -Ilibgnu -DWORK)

What system are you using?  What version of g++?

jwe

$uname -a
Linux ramona 2.6.28.10 #1 SMP Fri Aug 14 12:31:26 CEST 2009 i686 GNU/Linux
$cat /etc/debian_version
5.0.4
$g++ --version
g++ (Debian 4.3.2-1.1) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

David



reply via email to

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