Re: [Plib-users] linking trouble
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2005-04-28 16:41:40
|
Jos Elkink wrote: >>I suggest you download the PLIB examples package and check out how >>the 'net' sample programs are put together. > > > I did, actually, but I can't find the difference. Besides, even if I > made serious mistakes in the coding, it should still link, shouldn't > it? Right now it doesn't recognize the 'netSocket', 'netInit', etc. > references, so there is a problem other than coding errors, isn't > there? Not necessarily...you might have included some ancient version of the PLIB header files...you might have done something ugly like: // Didn't feel like including the real headers // #include <plib/net.h> extern bool netInit ( float totally_the_wrong_parameter_type ) ; .... int main () { bool x = netInit ( 3.14159 ) ; ... } ...there are all sorts of possibilities for the 'creative' programmer! ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |