Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


STL Help. This is weird.


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 Zer0Cool   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 November 1999 - 07:11 PM

Ok, this is strange to me. I'm trying keep track of entities based on an STL list. Only when I compile, I get weird error messages INSIDE list.h. Posted below are the errors. Anyone know how to remedy this?
Thanks!

c:\program files\microsoft visual studio\vc98\include\list.h(37) : error C2146: syntax error : missing ';' before identifier 'Length'
c:\program files\microsoft visual studio\vc98\include\list.h(37) : error C2501: 'DWORD' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\list.h(37) : error C2501: 'Length' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\list.h(53) : error C2146: syntax error : missing ';' before identifier 'GetPrevLink'
c:\program files\microsoft visual studio\vc98\include\list.h(53) : error C2433: 'WINAPI' : 'inline' not permitted on data declarations
c:\program files\microsoft visual studio\vc98\include\list.h(53) : fatal error C1004: unexpected end of file found


Sponsor:

#2 logistix   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 November 1999 - 02:12 PM

What are you plugging into the list when you initialize it? As I'm sure you know, the STL is basically a group of complex macros. It plugs your data in and compiles from scratch. It sounds like you're plugging in something that STL can't handle.



#3 Zer0Cool   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 November 1999 - 03:17 PM

I've got a function in my test class called Add and the argument is a list of the class type. sort of like

class CMyClass
{
private:
...
public:
...
Add(list ClassList);
};

I can send you the test app code if you like, it's really small.

Thanks!
--zc



#4 Zer0Cool   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 November 1999 - 03:18 PM

It didn't write the code correctly abope, I may have to just send it to you.

#5 Zer0Cool   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 November 1999 - 07:11 PM

Ok. Now the last problem is fixed. Everything compiles. But when I add a new class object to the list, it loses all of the information that is associated to the member data that was set by the contstructor. Any idea why this would happen?

thanks!
--zc





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS