extern C и метод структуры

Учитывая следующий код C ++,

#ifdef __cplusplus
extern "C" {
#endif
        struct foo {
                void getNum() { 
                }
        };
#ifdef __cplusplus
}
#endif

int main (int argc, char * const argv[]) {
        return 0 ;
}

Можно ли вызвать getNum () из C?

6
задан 3 August 2011 в 20:05
поделиться