FreeOrion

Forums for the FreeOrion project
It is currently Sun May 26, 2013 2:28 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: MSVC++ and templates
PostPosted: Sun Jun 29, 2003 6:51 pm 
Offline
Creative Contributor

Joined: Thu Jun 26, 2003 4:33 pm
Posts: 226
Location: Baltimore, MD
This is kindof off-topic, but I figured it'd be a good place to ask.

VC++ 6.0 will not compile the following:

list<int>::iterator foobar;

It has to be typedeffed. I.e. :

typedef list<int> INT_LIST;
INT_LIST::iterator foobar;

Does anybody know if they've fixed this in .NET?
I'd like to eventually try getting FreeOrion to build with Microsoft's compiler in addition to gcc but this bug makes that impossible.

JB


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 29, 2003 7:10 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
There are more ways that MSVC 6.0 is not compliant with the standard than there are Agent Smiths in the new Matrix movie. From what I have been heard (though I don't know for sure), 7.0 (.NET) is intended to be much more compliant. It should prove to be impossible to compile GG under 6.0 for at least one reason I can think of off the top of my head, and perhaps others. If you want this stuff to compile using a MS compiler, it's probably 7.0 or nothing.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 29, 2003 7:20 pm 
Offline
Creative Contributor

Joined: Thu Jun 26, 2003 4:33 pm
Posts: 226
Location: Baltimore, MD
Yeah, this isn't the only compliance issue I've had with 6.0

Their website for .NET doesn't mention this particular bug, and I'm certainly not going to go buy it just to find out. :)

JB

_________________
Empire Team Lead


Top
 Profile  
 
 Post subject: Re: MCVC++ and templates
PostPosted: Sun Jun 29, 2003 10:19 pm 
Offline
Space Krill

Joined: Sun Jun 29, 2003 10:14 pm
Posts: 2
Have you tried installing the latest service packs? That code seems to work in my 6.0 just fine...

Edit: by "that code" I mean the snippet in the opening post. I haven't tried compiling GG.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 30, 2003 1:08 am 
Offline
Creative Contributor

Joined: Thu Jun 26, 2003 4:33 pm
Posts: 226
Location: Baltimore, MD
I have one of the service packs at work, not sure which one or if its the latest, but the same problem occurs. Haven't installed any packs on my home machine.

JB

_________________
Empire Team Lead


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 30, 2003 11:39 am 
Offline
Space Kraken

Joined: Thu Jun 26, 2003 2:17 pm
Posts: 167
Location: Pittsburgh, PA
When I originally downloaded GG, I compiled my first program with it in MSVC.NET. I may have had to change a couple things, I can't remember. In visual studio 6 you need to do some additional configuration to make the STL work properly...I think its in a readme on the CD somewhere.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group