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.
| 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