Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error C2208 : 'double' no members defined using this type

934 views
Skip to first unread message

Artist

unread,
Apr 14, 2004, 2:05:36 AM4/14/04
to
The code below gets:
C:\CommOperations\LTU.h(8) : error C2208: 'double' : no members defined
using this type
How is this possible when double is a native type?

This is in a header file. I am using Microsoft Embedded Visual C++ Ver
4.00.0714.0

class TLTU
{ private:
int Ns;
double far; // Error this line
};


--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.

HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html

Dave Cross

unread,
Apr 14, 2004, 2:53:05 AM4/14/04
to
On Tue, 13 Apr 2004 23:05:36 -0700, Artist wrote:

> The code below gets:
> C:\CommOperations\LTU.h(8) : error C2208: 'double' : no members defined
> using this type
> How is this possible when double is a native type?
>
> This is in a header file. I am using Microsoft Embedded Visual C++ Ver
> 4.00.0714.0
>
> class TLTU
> { private:
> int Ns;
> double far; // Error this line
> };

You should probably be asking this in a Visual C++ group. Your question
has nothing to do with CGI.

Dave...

Owen Jacobson

unread,
Apr 14, 2004, 11:44:51 AM4/14/04
to
F'up to a more appropriate group.

On Tue, 13 Apr 2004 23:05:36 -0700, Artist wrote:

> The code below gets:
> C:\CommOperations\LTU.h(8) : error C2208: 'double' : no members defined
> using this type
> How is this possible when double is a native type?

(snip)

> class TLTU
> { private:
> int Ns;
> double far; // Error this line
> };

'far' is a reserved word on your compiler.

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

0 new messages