Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: sumner@metrowerks.com (Joel Sumner) Newsgroups: scea.yaroze.programming.codewarrior Subject: Re: __static_init conflict Date: Mon, 7 Jul 1997 14:13:47 -0500 Organization: Metrowerks Lines: 25 Message-ID: References: <01bc8964$21353000$94bf43ce@wkwerner> <01bc8a88$99e77740$d3bf43ce@wkwerner> <33C0B3DA.69D7@bc.sympatico.ca> NNTP-Posting-Host: jsumner2.metrowerks.com X-Newsreader: Anawave Gravity v1.10 In article <33C0B3DA.69D7@bc.sympatico.ca>, Nick_Porcino@bc.sympatico.ca says... > I'm not with Metrowerks, but anyway, I believe it's a pointer to a > function, and I've modified the lines in _psstart.c as follows: > > #ifdef __cplusplus > extern "C" void (*__static_init)(); // np added (*...) around symbol > extern "C" void InitHeap(); > #else > extern void InitHeap(); > #endif > > This works correctly... One problem I had before I got this far was that > _psstart.c is compiled by the C compiler. Note that it is necessary in > the project settings to check the Activate C++ checkbox to make > everything work properly. > > - nick porcino > This is the correct fix. Thanks Nick! -- ------------------------- PlayStation Debugger Dude Metrowerks