<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.1.8">
</HEAD>
<BODY>
On Sun, 2003-09-07 at 15:09, Stephen Judd wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373" SIZE="3"><I>But I think your real problem is this

2. Ensure globals in header files are defined with extern, thus:

(in jgame2d.h)

extern int keyboard_state; // this is now simply a declaration

Otherwise, the jolly old compiler sees this:

(in jgame2d.h)
int keyboard_state; // declaring AND defining

as the first definition, and will barf on the &quot;second&quot; one in your .cpp
file.</I></FONT></PRE>
</BLOCKQUOTE>
<FONT SIZE="3"><BR>
Thanks, Stephen, it's all going now!<BR>
I thought it was something simple...<BR>
</FONT><BR>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
--- Jethro<BR>
<BR>
<A HREF="%20http://homepages.paradise.net.nz/jethroc/">dodocaptain@paradise.net.nz</A><BR>
<A HREF="%20http://homepages.paradise.net.nz/jethroc/">homepages.paradise.net.nz/jethroc/</A><BR>
<BR>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>