Re: [Flightgear-devel] compiling error on MSVC

2002-07-22 Thread Christian Stock

Thanks, Jonathan

That may be a good idea (I had a project file already, but accidently 
deleted it during a massive cleanup). Will it build the latest cvs files 
(ie plib, simgear, flightgear)?

Send to [EMAIL PROTECTED]

Thanks, Christian


At 08:47 PM 22/07/2002 -0500, you wrote:
Christian,

 If you are interested, I can send you my MSVC project files.  You 
 will have to edit the paths to match your directory structure, but they 
 are building just fine for me.

Jonathan Polley

On Monday, July 22, 2002, at 08:20 PM, Christian Stock wrote:

It's been a while, but I got a bit side tracked with other things

Thanks for the help on getting my FG compiled with VC6 on win xp, but I 
still haven't succeeded. I think I'm a bit stuck with the compiler 
options. Maybe someone can give me a quick rundown on the libraries and 
options I need to use?

I have compiled plib and simgear, but flightgear won't find the plib and 
simgear functions in the linking process. I have included the paths to 
the libs in my options, so flightgear should find the libs. Should I use 
the /MTd option and why (I recently learned what MTd means, and it 
actually makes sense to my to use this, but how does this work, do I have 
to copy all the libs into one dir? It would just be nice to learn a bit 
about the options I have and how they work)? I think the standard options 
in the project files that come with cvs are different... Although I have 
a lot of coding experience, I'm a newbie when it comes to set complex 
projects up properly, so maybe someone on this list can give a quick 
rundown on whats important to know when setting things up in VC6?

Cheers, Christian



At 12:39 PM 10/06/2002 +0200, you wrote:

Did you compile all libraries (and fgfs.exe) with the same
run-time libs (LIBCMTD.LIB: /MTd compiler option)?

regards

georg


  -Original Message-
  From: Christian Stock [mailto:[EMAIL PROTECTED]]
  Sent: Montag, 10. Juni 2002 04:02
  To: [EMAIL PROTECTED]
  Subject: Re: [Flightgear-devel] compiling error on MSVC
 
 
  Thanks, Fred.
 
  I have downloaded the CVS version now, and as you said this
  has been fixed.
  However, I get a lot of link errors when I compile flightgear
  (simgear cvs
  compiled fine). Do I have to be aware where to put the plib
  and simgear
  libs? Or are the incompatibilities between version, eg
  simgear cvs doesn't
  work with flightgear cvs?
 
  Cheers, Christian
 
 
  At 09:58 AM 9/06/2002 +0200, you wrote:
  This error has been fixed in CVS. MSVC6 is not able to
  choose between two
  member functions, one const and the other not const, so you
  have to cast
  the 4th argument :
  
 PropertyManager-Tie(atmosphere/p-turb-rad_sec, this,1,
  FGAtmosphere::GetTurbPQR);
  
  becomes:
  
 PropertyManager-Tie(atmosphere/p-turb-rad_sec, this,1,
(double (FGAtmosphere::*PMF)(int)
  const)FGAtmosphere::GetTurbPQR);
  
  and so on for different classes in different files.
  
  Cheers,
  
  -Fred
  
  _
  Frederic Bouvier
  Maintainer of the FlightGear Scenery Designer project
  http://fgsd.sourceforge.net
  
  
  - Original Message -
  From: Christian Stock [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Sunday, June 09, 2002 5:18 AM
  Subject: [Flightgear-devel] compiling error on MSVC
  
  
I just downloaded flightgear 0.7.10 and I'm trying to get
  it to compile on
Windoze MSVC 6.0.
   
I got glut, plib, sim-gear compiled w/o any probs. For FG
  I get this error
at quite a few places.
   
error C2661: 'Tie' : no overloaded function takes 4 parameters
   
I had a look at the Tie functions in FGPropertyManager,
  but couldn't work
out what's wrong. Maybe I have to include a cast or so
  (doesn't really
  make
sense because those functions use templates anyway)?
   
Anyone come across this and knows how to fix it?
   
Cheers, Christian
   
   
___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
   
  
  
  
  ___
  Flightgear-devel mailing list
  [EMAIL PROTECTED]
  http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 
 
  ___
  Flightgear-devel mailing list
  [EMAIL PROTECTED]
  http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Re: [Flightgear-devel] compiling error on MSVC

2002-06-10 Thread Frederic Bouvier

Hello Christian,

the problem with MSVC is that the .dsp file is not updated every time a file
is added to the project. There is a perl script at
http://cvs.flightgear.org/cgi-bin/viewcvs/viewcvs.cgi/admin/am2dsp.pl
that translate automake stuff into a dsp. You can try it.

My choice was to fork the existing dsp to make my own and manually maintain
it.

You also have to specify where MetaKit, zlib, plib, SimGear are in the
Tools  Options...  Directories window.

Anyway, I am sending you my dsp by PM.

Cheers,

-Fred

- Original Message -
From: Christian Stock [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 4:02 AM
Subject: Re: [Flightgear-devel] compiling error on MSVC


 Thanks, Fred.

 I have downloaded the CVS version now, and as you said this has been
fixed.
 However, I get a lot of link errors when I compile flightgear (simgear cvs
 compiled fine). Do I have to be aware where to put the plib and simgear
 libs? Or are the incompatibilities between version, eg simgear cvs doesn't
 work with flightgear cvs?

 Cheers, Christian


 At 09:58 AM 9/06/2002 +0200, you wrote:
 This error has been fixed in CVS. MSVC6 is not able to choose between two
 member functions, one const and the other not const, so you have to cast
 the 4th argument :
 
PropertyManager-Tie(atmosphere/p-turb-rad_sec, this,1,
 FGAtmosphere::GetTurbPQR);
 
 becomes:
 
PropertyManager-Tie(atmosphere/p-turb-rad_sec, this,1,
   (double (FGAtmosphere::*PMF)(int) const)FGAtmosphere::GetTurbPQR);
 
 and so on for different classes in different files.
 
 Cheers,
 
 -Fred
 
 _
 Frederic Bouvier
 Maintainer of the FlightGear Scenery Designer project
 http://fgsd.sourceforge.net
 
 
 - Original Message -
 From: Christian Stock [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, June 09, 2002 5:18 AM
 Subject: [Flightgear-devel] compiling error on MSVC
 
 
   I just downloaded flightgear 0.7.10 and I'm trying to get it to
compile on
   Windoze MSVC 6.0.
  
   I got glut, plib, sim-gear compiled w/o any probs. For FG I get this
error
   at quite a few places.
  
   error C2661: 'Tie' : no overloaded function takes 4 parameters
  
   I had a look at the Tie functions in FGPropertyManager, but couldn't
work
   out what's wrong. Maybe I have to include a cast or so (doesn't really
 make
   sense because those functions use templates anyway)?
  
   Anyone come across this and knows how to fix it?
  
   Cheers, Christian
  
  
   ___
   Flightgear-devel mailing list
   [EMAIL PROTECTED]
   http://mail.flightgear.org/mailman/listinfo/flightgear-devel
  
 
 
 
 ___
 Flightgear-devel mailing list
 [EMAIL PROTECTED]
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel


 ___
 Flightgear-devel mailing list
 [EMAIL PROTECTED]
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel




___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



RE: [Flightgear-devel] compiling error on MSVC

2002-06-10 Thread Kaiser Georg


Did you compile all libraries (and fgfs.exe) with the same 
run-time libs (LIBCMTD.LIB: /MTd compiler option)?

regards

georg


 -Original Message-
 From: Christian Stock [mailto:[EMAIL PROTECTED]]
 Sent: Montag, 10. Juni 2002 04:02
 To: [EMAIL PROTECTED]
 Subject: Re: [Flightgear-devel] compiling error on MSVC
 
 
 Thanks, Fred.
 
 I have downloaded the CVS version now, and as you said this 
 has been fixed. 
 However, I get a lot of link errors when I compile flightgear 
 (simgear cvs 
 compiled fine). Do I have to be aware where to put the plib 
 and simgear 
 libs? Or are the incompatibilities between version, eg 
 simgear cvs doesn't 
 work with flightgear cvs?
 
 Cheers, Christian
 
 
 At 09:58 AM 9/06/2002 +0200, you wrote:
 This error has been fixed in CVS. MSVC6 is not able to 
 choose between two
 member functions, one const and the other not const, so you 
 have to cast
 the 4th argument :
 
PropertyManager-Tie(atmosphere/p-turb-rad_sec, this,1,
 FGAtmosphere::GetTurbPQR);
 
 becomes:
 
PropertyManager-Tie(atmosphere/p-turb-rad_sec, this,1,
   (double (FGAtmosphere::*PMF)(int) 
 const)FGAtmosphere::GetTurbPQR);
 
 and so on for different classes in different files.
 
 Cheers,
 
 -Fred
 
 _
 Frederic Bouvier
 Maintainer of the FlightGear Scenery Designer project
 http://fgsd.sourceforge.net
 
 
 - Original Message -
 From: Christian Stock [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, June 09, 2002 5:18 AM
 Subject: [Flightgear-devel] compiling error on MSVC
 
 
   I just downloaded flightgear 0.7.10 and I'm trying to get 
 it to compile on
   Windoze MSVC 6.0.
  
   I got glut, plib, sim-gear compiled w/o any probs. For FG 
 I get this error
   at quite a few places.
  
   error C2661: 'Tie' : no overloaded function takes 4 parameters
  
   I had a look at the Tie functions in FGPropertyManager, 
 but couldn't work
   out what's wrong. Maybe I have to include a cast or so 
 (doesn't really
 make
   sense because those functions use templates anyway)?
  
   Anyone come across this and knows how to fix it?
  
   Cheers, Christian
  
  
   ___
   Flightgear-devel mailing list
   [EMAIL PROTECTED]
   http://mail.flightgear.org/mailman/listinfo/flightgear-devel
  
 
 
 
 ___
 Flightgear-devel mailing list
 [EMAIL PROTECTED]
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 
 
 ___
 Flightgear-devel mailing list
 [EMAIL PROTECTED]
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] compiling error on MSVC

2002-06-09 Thread Frederic Bouvier

This error has been fixed in CVS. MSVC6 is not able to choose between two
member functions, one const and the other not const, so you have to cast
the 4th argument :

  PropertyManager-Tie(atmosphere/p-turb-rad_sec, this,1,
   FGAtmosphere::GetTurbPQR);

becomes:

  PropertyManager-Tie(atmosphere/p-turb-rad_sec, this,1,
 (double (FGAtmosphere::*PMF)(int) const)FGAtmosphere::GetTurbPQR);

and so on for different classes in different files.

Cheers,

-Fred

_
Frederic Bouvier
Maintainer of the FlightGear Scenery Designer project
http://fgsd.sourceforge.net


- Original Message -
From: Christian Stock [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 09, 2002 5:18 AM
Subject: [Flightgear-devel] compiling error on MSVC


 I just downloaded flightgear 0.7.10 and I'm trying to get it to compile on
 Windoze MSVC 6.0.

 I got glut, plib, sim-gear compiled w/o any probs. For FG I get this error
 at quite a few places.

 error C2661: 'Tie' : no overloaded function takes 4 parameters

 I had a look at the Tie functions in FGPropertyManager, but couldn't work
 out what's wrong. Maybe I have to include a cast or so (doesn't really
make
 sense because those functions use templates anyway)?

 Anyone come across this and knows how to fix it?

 Cheers, Christian


 ___
 Flightgear-devel mailing list
 [EMAIL PROTECTED]
 http://mail.flightgear.org/mailman/listinfo/flightgear-devel




___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] compiling error on MSVC

2002-06-09 Thread Christian Stock

Thanks, Fred.

I have downloaded the CVS version now, and as you said this has been fixed. 
However, I get a lot of link errors when I compile flightgear (simgear cvs 
compiled fine). Do I have to be aware where to put the plib and simgear 
libs? Or are the incompatibilities between version, eg simgear cvs doesn't 
work with flightgear cvs?

Cheers, Christian


At 09:58 AM 9/06/2002 +0200, you wrote:
This error has been fixed in CVS. MSVC6 is not able to choose between two
member functions, one const and the other not const, so you have to cast
the 4th argument :

   PropertyManager-Tie(atmosphere/p-turb-rad_sec, this,1,
FGAtmosphere::GetTurbPQR);

becomes:

   PropertyManager-Tie(atmosphere/p-turb-rad_sec, this,1,
  (double (FGAtmosphere::*PMF)(int) const)FGAtmosphere::GetTurbPQR);

and so on for different classes in different files.

Cheers,

-Fred

_
Frederic Bouvier
Maintainer of the FlightGear Scenery Designer project
http://fgsd.sourceforge.net


- Original Message -
From: Christian Stock [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 09, 2002 5:18 AM
Subject: [Flightgear-devel] compiling error on MSVC


  I just downloaded flightgear 0.7.10 and I'm trying to get it to compile on
  Windoze MSVC 6.0.
 
  I got glut, plib, sim-gear compiled w/o any probs. For FG I get this error
  at quite a few places.
 
  error C2661: 'Tie' : no overloaded function takes 4 parameters
 
  I had a look at the Tie functions in FGPropertyManager, but couldn't work
  out what's wrong. Maybe I have to include a cast or so (doesn't really
make
  sense because those functions use templates anyway)?
 
  Anyone come across this and knows how to fix it?
 
  Cheers, Christian
 
 
  ___
  Flightgear-devel mailing list
  [EMAIL PROTECTED]
  http://mail.flightgear.org/mailman/listinfo/flightgear-devel
 



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel