By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,819 Members | 1,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,819 IT Pros & Developers. It's quick & easy.

VC++6 missing storage-class or type specifiers

P: n/a
Hallo, I have a strange problem here:
I a VC++6 project that compiles without any errors. If i now include a
certain header file from my project into a header file of a certain
dialog class i get several compiler errors (missing storage-class or
type specifiers) in the mentioned header file and in a header file of
another dialog header file in my project. I don't expect a solution
from you but can anyone give me a hint how i can find the problem.
Thanks in advance
Tobias
Jul 22 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Tobias" <th@bitmensch.de> wrote in message
news:71**************************@posting.google.c om...
Hallo, I have a strange problem here:
I a VC++6 project that compiles without any errors. If i now include a
certain header file from my project into a header file of a certain
dialog class i get several compiler errors (missing storage-class or
type specifiers) in the mentioned header file and in a header file of
another dialog header file in my project. I don't expect a solution
from you but can anyone give me a hint how i can find the problem.
Thanks in advance
Tobias


Sounds like macro problems. Is your header file defining any macros or (not
an easy question to answer) including any other header files, including
system headers, which define macros.

Look at the code where the error occurs, look for likely tokens that might
have been defined as macros. Search through your header files and the system
header files for definitions of those tokens as macros.

If all else fails find the compiler option that outputs the pre-processed
source (i.e. after macros have been substituted) and examine that.

john
Jul 22 '05 #2

P: n/a

"Tobias" <th@bitmensch.de> wrote in message news:71**************************@posting.google.c om...
Hallo, I have a strange problem here:
I a VC++6 project that compiles without any errors. If i now include a
certain header file from my project into a header file of a certain
dialog class i get several compiler errors (missing storage-class or
type specifiers) in the mentioned header file and in a header file of
another dialog header file in my project. I don't expect a solution
from you but can anyone give me a hint how i can find the problem.


Check to see that the header file isn't missing a semicolon at the end
of it's last declaration or some similar syntactic problem.

Jul 22 '05 #3

P: n/a
th@bitmensch.de (Tobias) wrote in message news:<71**************************@posting.google. com>...
Hallo, I have a strange problem here:
I a VC++6 project that compiles without any errors. If i now include a
certain header file from my project into a header file of a certain
dialog class i get several compiler errors (missing storage-class or
type specifiers) in the mentioned header file and in a header file of
another dialog header file in my project. I don't expect a solution
from you but can anyone give me a hint how i can find the problem.


One thought occurs. There may be "missing storage-class or type
specifiers" in the header file.

Anyway, you've probably got something along the lines of a missing
or extra bracket, semicolon, or some such.

Try compiling a test project that includes the header file with
the very minimal extra stuff you need.
Socks
Jul 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.