Lets assume there are three files f1.hpp, f2.hpp, f3.hpp. Now say f2 has f1 included in it and f3 have f1 and f2 included in it.Making a py file that contents of f1, f2, and f3 defined now this is causing a 'struct' type redefinition
or 'class' type redefinition
warning and then crashes with use of undefined type 'type'
Eg: f1.hpp
#include <iostream>
namespace nam {
//some types struct and class
}
f2.hpp
#include <f1.hpp>
namespace nam {
//some types struct and class
//with f1 type or class as an argument
}
f3.hpp
#include <f1.hpp>
#include <f2.hpp>
namespace nam {
//some types struct and class
//with f1 and f2 type or class as an argument
}
error message:
ex1.hpp(26): error C2011: 'namspace::classcpp': 'class' type
redefinition
ex1.hpp(26): note: see declaration of 'namspace::classcpp'
pycpp.cpp(1489): error C2027: use of undefined type
'namspace::classcpp'
ex1.hpp(26): note: see declaration of 'namspace::classcpp'
Now assume i have more the 3 file with this with their own random but necessary includes. How do define them in cython?