Re: [vox-tech] C++ question - undefined reference

2002-04-22 Thread nbs

On Mon, Apr 22, 2002 at 02:45:12AM -0700, nbs wrote:

> I ported xsc (Star Castle clone for X-Window) to SDL

ftp://ftp.sonic.net/pub/users/nbs/unix/zaurus/zsc/

(there's a GIF screenshot there, too)

-bill!
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



Re: [vox-tech] C++ question - undefined reference

2002-04-22 Thread nbs

On Mon, Apr 22, 2002 at 02:16:58AM -0700, Gabriel Rosa wrote:
> On Mon, 22 Apr 2002, nbs wrote:
> 
> >
> > I really dislike C++  :^P
> >
> 
> I recommend learning it before complaining :P

Hehe... Picnic day frustrated me (as usual - far too many stupid people
in town... I even saw a drunk guy walk into In-n-Out with a beer...),
so I've been especially ill-tempered towards non-C-languages. :^)

Anyway... I'm a moron.  I had #ifdef'd the declaration out at one point.

Argh.


HOWEVER.. I can now go to bed and sleep happy.
I ported xsc (Star Castle clone for X-Window) to SDL
AND got it running on the Zaurus (albeit at a reduced framerate... the
code is RIDDLED with float and trig stuff)

W00t!


-bill!
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



Re: [vox-tech] C++ question - undefined reference

2002-04-22 Thread Gabriel Rosa

On Mon, 22 Apr 2002, nbs wrote:

>
> I really dislike C++  :^P
>

I recommend learning it before complaining :P

-Gabe

___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



Re: [vox-tech] C++ question - undefined reference

2002-04-22 Thread nbs

On Mon, Apr 22, 2002 at 02:06:09AM -0700, nbs wrote:
> 
> I'm trying to port an X-Window-based C++ game to SDL, and am having
> problems during linking.


Hmm... Well, redeclaring it in one of the .C files as:


#ifdef USE_SDL
Display * display = 0;
#endif

...seemed to do the trick.  


I really dislike C++  :^P

-bill!
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech



[vox-tech] C++ question - undefined reference

2002-04-22 Thread nbs


I'm trying to port an X-Window-based C++ game to SDL, and am having
problems during linking.

For some reason, event though the variable "display" is declared
(I simply typedef'd its type, "Display", to a plain old "int"),
and event set to a value (just "0"), I'm getting some errors:


castle.o: In function `Castle::explode(Stats *)':
/home/kendrick/xsc-1.4/castle.C:246: undefined reference to `display'
laser.o: In function `Laser::render(bool)':
/home/kendrick/xsc-1.4/laser.C:68: undefined reference to `display'
ring.o: In function `Ring::render(bool)':
/home/kendrick/xsc-1.4/ring.C:88: undefined reference to `display'
ship.o: In function `Ship::render(bool)':
/home/kendrick/xsc-1.4/ship.C:159: undefined reference to `display'
/home/kendrick/xsc-1.4/ship.C:166: undefined reference to `display'
ship.o:/home/kendrick/xsc-1.4/ship.C:169: more undefined references to `display' follow


I'm not sure exactly what this error means, but it's at the linking
stage.  (In other words, I didn't get any 'undefined variable' errors
regarding "display" during the compliation stage of the build.)


Any ideas?

Thanks!

-bill!
___
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech