Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re: Must use 'struct' tag to refer to type

Reply
Thread Tools

Re: Must use 'struct' tag to refer to type

 
 
Victor Bazarov
Guest
Posts: n/a
 
      12-17-2012
On 12/17/2012 4:37 PM, Bint wrote:
> I am getting this message when I try to include a '.h' file that I need:
>
> "Must use 'struct' tag to refer to type"
>
> It is coming from this in the header:
>
> struct fchar {
> unichar val;
> float width, t_top,t_bot,t_left,t_right;
> float v_top,v_bot,v_left,v_right;
> fchar *next; // <---
> };
>
> I've read online that this should only happen with C files, not C++.
>
> However my files are all C++ (or rather '.mm', objective-C/C++ files).
> I am also able to include the same header in another file with no trouble.
>
> Anyone know what the problem could be?


Are you sure you're using a C++ compiler to compile your file, and it's
a C++ compiler that gives you that message? 'Coz if it ain't, there
ain't much *we* can do about it either...

Given that 'unichar' is a known type, your definition of 'fchar' type is
OK AFA C++ rules go.

V
--
I do not respond to top-posted replies, please don't ask
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error "A form tag with runat=server must exist" but there is a form tag!! André ASP .Net 2 06-23-2008 07:49 AM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
of type 'TextBox' must be placed inside a form tag with runat=serv =?Utf-8?B?QWxpeHggU2tldmluZ3Rvbg==?= ASP .Net 2 04-22-2005 02:15 PM
Control 'X' of type 'RadioButton' must be placed inside a form tag with runat=server. Tom wilson ASP .Net 7 02-10-2005 06:47 PM
error..of type 'TextBox' must be placed inside a form tag with runat=server Jim ASP .Net Datagrid Control 7 01-12-2005 02:21 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57