Odd Compiling error

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
GameArena
Posts: 182
Joined: Wed Jul 16, 2003 4:35 pm
Location: Outside of a bubble... Looking at all the humans inside.

Odd Compiling error

Post by GameArena »

Randy, perhaps you can assist me. I downloaded the 94src to play around with in my spare time, but when I try compiling it in VC 6.0++ I have some errors thrown at me (400+):

c:\doom\source\src\decorations.cpp(83) : error C2552: 'public: static struct TypeInfo ADecoration::_StaticType' : non-aggregates cannot be initialized with initializer list

Which seems to relate back to the _IMP_TYPEINFO MACRO, however the MACRO's are so greatly nested it is hard to find where the problem is occurring (I just tried today, so I haven't been trying for very long). Here is one of the lines on which the error occurs:

IMPLEMENT_ABSTRACT_ACTOR (ADecoration)


In addition I receive what appears to be a FindInventory template conflict. The error (C2275) occurs often and occurs on the lines in the form of:

type *name = FindInventory<type>();

I haven't had this problem in the past when compiling Zdoom (63 I believe). Any help is greatly appreciated. I'm sure given enough time I could locate the problem myself, but MACRO diving isn't my favorite sport :)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

You can't compile the source with 6.0 anymore. There's a bug in the compiler that prevents it. I had to upgrade to .NET 2003 as well to get it to compile.

The specific problem is caused by the MetaData in the TypeInfo structure.

The second error is known as well. For some reason 6.0 doesn't like this perfectly valid construct.
GameArena
Posts: 182
Joined: Wed Jul 16, 2003 4:35 pm
Location: Outside of a bubble... Looking at all the humans inside.

Post by GameArena »

Son of a... Maybe I can get a copy of .NET 2003 from one of my professors. Thanks anyway.
User avatar
Chris
Posts: 2971
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

You can get the 2003 compiler for free at Microsoft's site. It doesn't come with an IDE, but you should be able to use the VC6 IDE with it.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Yes, that's possible. But the debugger won't work anymore.
Locked

Return to “Editing (Archive)”