Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: "Wayne K. Werner" Newsgroups: scea.yaroze.programming.codewarrior Subject: __static_init conflict Date: 5 Jul 1997 16:54:21 GMT Organization: SCEA Net Yaroze News Lines: 28 Message-ID: <01bc8964$21353000$94bf43ce@wkwerner> NNTP-Posting-Host: port48.con2.com X-Newsreader: Microsoft Internet News 4.70.1155 I am trying to get C++ going. I have selected to generate C++ code, and now when _pstart.c compiles as part of project I get the following error message: Error : identifier '__static_init' redeclared was declared as: 'void (*)()' now declared as: 'void ()' _psstart.c line 17 extern "C" void __static_init(); Inside of _pstart.c, as part of a conditional compile (#ifdef __cplusplus), the function is indeed redefined from the definition in __rts_info_t__.h where it is defined as #define SECTION __declspec(data) SECTION extern void (*__static_init)(void); Clearly one defines a function of a particular type, and the other a pointer to same function. I cannot modify either file in an attempt to get this to work without knowing whether or not __static_init is a function or a pointer to function. My guess? I should try commenting out the redefine in _pstart.c first. It looks wrong to me. Please help... I could use a definitive answer on this. Wayne