From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bjørn Wennberg To: "'egcs@cygnus.com'" Subject: extern "C" and prototyping question Date: Thu, 30 Apr 1998 05:23:00 -0000 Message-id: <3CACE2C4948AD1119CF9080009EB2C8801AAB6@netp1.etp.no> X-SW-Source: 1998-04/msg01181.html Hi there! I have a problem getting the following code snip to compile: extern "C" { void set_CB(void (*func)()); } void exit_handler() {} int main() { set_CB(exit_handler); } +++++ When compiling this with egcs-1.0.3-prerelease I get warning: ANSI C++ prohibits conversion from `()' to `(...)' If I do compile with -pedantic, the warning goes away. What is wrong here? bjornw> ------------------------------------------------------------------------ ------------------------------------ Bjørn Wennberg email: bw@lcc.no Development Engineer, CellAD System 7 phone: +47 6797 8800 LCC Europe fax: +47 6797 8801