int psCheck( const char* prog_name ) { dSP; int ret; int count = 0; ENTER; SAVETMPS; PUSHMARK( SP ); XPUSHs( sv_2mortal( newSVpv( prog_name, 0 ) ) ); PUTBACK; ret = call_pv("psCheck", G_SCALAR); SPAGAIN; if (ret != 1) croak("Big trouble\n" ; count = POPi; PUTBACK; FREETMPS; LEAVE; return count; } #### adaptermain.cpp: In function `int psCheck(const char*)': *adaptermain.cpp:365: error: `push_scope' undeclared (first use this function) *adaptermain.cpp:365: error: (Each undeclared identifier is reported only once *for each function it appears in.) *adaptermain.cpp:366: error: `save_int' undeclared (first use this function) *adaptermain.cpp:368: error: `markstack_grow' undeclared (first use this function) *adaptermain.cpp:369: error: `stack_grow' undeclared (first use this function) *adaptermain.cpp:369: error: `newSVpv' undeclared (first use this function) *adaptermain.cpp:369: error: `sv_2mortal' undeclared (first use this function) *adaptermain.cpp:372: error: `call_pv' undeclared (first use this function) *adaptermain.cpp:377: error: `croak' undeclared (first use this function) *adaptermain.cpp:379: error: `sv_2iv' undeclared (first use this function) *adaptermain.cpp:381: error: `free_tmps' undeclared (first use this function) *adaptermain.cpp:382: error: `pop_scope' undeclared (first use this function)