[Flightgear-devel] jsclient.cxx - windows compilation

2010-03-12 Thread Alan Teeder
From current CVS

jsclient.cxx compilation with windows fails at line 108
int32_t *msg = (int32_t *)buf;

Solution seems easy - just add 
typedef int int32_t;

Alan 

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] jsclient.cxx - windows compilation

2010-03-12 Thread Torsten Dreyer
Am 12.03.10 15:06, schrieb Alan Teeder:
  From current CVS

 jsclient.cxx compilation with windows fails at line 108
   int32_t *msg = (int32_t *)buf;

 Solution seems easy - just add
  typedef int  int32_t;

Probably not on 64bit. Maybe something like (untested)
#ifdef MSVC
typedef __int32 int32_t;
#endif

if it doesn't exist in some #include. I have no Windows to test, sorry

Torsten

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] jsclient.cxx - windows compilation

2010-03-12 Thread Alan Teeder

--
From: Torsten Dreyer tors...@t3r.de
Sent: Friday, March 12, 2010 2:15 PM
To: FlightGear developers discussions 
flightgear-devel@lists.sourceforge.net
Subject: Re: [Flightgear-devel] jsclient.cxx   - windows compilation

 Am 12.03.10 15:06, schrieb Alan Teeder:
  From current CVS

 jsclient.cxx compilation with windows fails at line 108
 int32_t *msg = (int32_t *)buf;

 Solution seems easy - just add
  typedef int int32_t;

 Probably not on 64bit. Maybe something like (untested)
 #ifdef MSVC
 typedef __int32 int32_t;
 #endif

 if it doesn't exist in some #include. I have no Windows to test, sorry


Same excuse here  - this time no 64bit machine.

That is why I wrote seems and you wrote probably ;-)

Alan


 


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] jsclient.cxx - windows compilation

2010-03-12 Thread Erik Hofman
Torsten Dreyer wrote:
 Am 12.03.10 15:06, schrieb Alan Teeder:
 From current CVS
 jsclient.cxx compilation with windows fails at line 108
  int32_t *msg = (int32_t *)buf;

 Solution seems easy - just add
  typedef int int32_t;

 Probably not on 64bit. Maybe something like (untested)
 #ifdef MSVC
 typedef __int32 int32_t;
 #endif
 
 if it doesn't exist in some #include. I have no Windows to test, sorry

You probably want to include simgear/misc/stdint.hxx instead

Erik

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] jsclient.cxx - windows compilation

2010-03-12 Thread Torsten Dreyer
 Torsten Dreyer wrote:
  Am 12.03.10 15:06, schrieb Alan Teeder:
  From current CVS
 
  jsclient.cxx compilation with windows fails at line 108
 int32_t *msg = (int32_t *)buf;
 
  Solution seems easy - just add
   typedef int   int32_t;
 
  Probably not on 64bit. Maybe something like (untested)
  #ifdef MSVC
  typedef __int32 int32_t;
  #endif
 
  if it doesn't exist in some #include. I have no Windows to test, sorry
 
 You probably want to include simgear/misc/stdint.hxx instead
Alan, could you check if this patch solves your issue?
Index: jsclient.cxx
===
RCS file: /var/cvs/FlightGear-0.9/source/src/Network/jsclient.cxx,v
retrieving revision 1.6
diff -u -p -r1.6 jsclient.cxx
--- jsclient.cxx10 Mar 2010 08:33:10 -  1.6
+++ jsclient.cxx12 Mar 2010 15:35:09 -
@@ -27,6 +27,7 @@

 #include simgear/debug/logstream.hxx
 #include simgear/io/iochannel.hxx
+#include simgear/misc/stdint.hxx

 #include Aircraft/aircraft.hxx
 #include Main/fg_props.hxx

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] jsclient.cxx - windows compilation

2010-03-12 Thread Alan Teeder
Torsten

Yes, this compiles fine. 

I haven't checked the operation as I do not have a UDP joystick  setup.

Thanks

Alan
--
From: Torsten Dreyer tors...@t3r.de
Sent: Friday, March 12, 2010 3:35 PM

 Alan, could you check if this patch solves your issue?
 Index: jsclient.cxx
 ===
 RCS file: /var/cvs/FlightGear-0.9/source/src/Network/jsclient.cxx,v
 retrieving revision 1.6
 diff -u -p -r1.6 jsclient.cxx
 --- jsclient.cxx10 Mar 2010 08:33:10 -  1.6
 +++ jsclient.cxx12 Mar 2010 15:35:09 -
 @@ -27,6 +27,7 @@
 
 #include simgear/debug/logstream.hxx
 #include simgear/io/iochannel.hxx
 +#include simgear/misc/stdint.hxx
 
 #include Aircraft/aircraft.hxx
 #include Main/fg_props.hxx
 

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] jsclient.cxx - windows compilation

2010-03-12 Thread Torsten Dreyer
 Torsten
 
 Yes, this compiles fine.
 
 I haven't checked the operation as I do not have a UDP joystick  setup.
Let's assume, it's working ;-)
That's commited.  Thanks for reporting.

Torsten

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel