#ifndef H7_H #define H7_H extern "C++" { class A {}; } class B : public A {}; #endif