Path: chuka.playstation.co.uk!news From: James Shaughnessy Newsgroups: scee.yaroze.programming.3d_graphics Subject: Re: GsLinkObject4 prototype error? Date: Tue, 11 Aug 1998 13:37:54 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 30 Message-ID: <35D03B22.5D50@manc.u-net.com> References: <35CF88D3.4762@manc.u-net.com> <35CFA154.5EAB@manc.u-net.com> NNTP-Posting-Host: manc.u-net.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (Win95; I) James Shaughnessy wrote: > OK I'm an idiot -- I looked at libps.h and saw that Now I'm not so sure..... ;-) Turns out that passsing a u_long to GsLinkObject4 compiles fine but crashes the program. Mmmm why do I feel like I'm the only one? Tha manual clearly states that the function takes a u_long pointer, and (unusually ;)) I reckon the manual IS correct -- but my libps.h is at fault. I altered libps.h (oo!) to make its prototype think that arg 1 is indeed a pointer and VOILA, everything suddenly compiles without warnings and the code runs fine. How come nobody else has come up with this problem? What I think is going on here is I am using ver 2.10 of libps.h, downloaded from the website, not the older ver 1.0 from the CD, which possibly most people still use (?) Someone must know what's going on here - please! If I'm right I suggest Sony fix the libps.h file (just by adding a '*' !) on the updates area (assuming v2.10 is still the latest..) as even harmless warnings gives me the heebies! Thanks, Jim -- ----------------------------------------- James Shaughnessy james@manc.u-net.com http://www.netyaroze-europe.com/~shaughnj -----------------------------------------