Strange behaviour on include & include_next

discuss compiling applications for Puppy
Post Reply
Message
Author
ITSMERSH

Strange behaviour on include & include_next

#1 Post by ITSMERSH »

Hi.

At compiling Hydrogen 1.0.0 there were some errors listed.

The cmake command complained missing files e.g.
#include <bits/c++config.h>
#include <bits/cpp_type_traits.h>
#include <ext/type_traits.h>
#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
#include_next <math.h>
#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
#include <bits/std_abs.h>
File math.h wasn't found, even though it is there.

There were three files with similar errors.

After changing include_next to include cmake could finish the job, so I could build the program by make. :shock:

Is include_next and/or include dependent on compiler types/versions?

If so, is there a compiler option to switch include_next to include?

Post Reply