Include File Error ?

This is a discussion on Include File Error ? within the Windows Programming forums, part of the Platform Specific Boards category; Error E2257 d:\bcc\include\commctrl.h 29: , expected Error E2257 d:\bcc\include\prsht.h 90: , expected Error E2257 d:\bcc\include\prsht.h 97: , expected Error E2293 ...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    85

    Include File Error ?

    Error E2257 d:\bcc\include\commctrl.h 29: , expected
    Error E2257 d:\bcc\include\prsht.h 90: , expected
    Error E2257 d:\bcc\include\prsht.h 97: , expected
    Error E2293 d:\bcc\include\prsht.h 98: ) expected
    Error E2303 d:\bcc\include\prsht.h 137: Type name expected
    Error E2139 d:\bcc\include\prsht.h 137: Declaration missing ;
    Error E2303 d:\bcc\include\prsht.h 138: Type name expected
    Error E2238 d:\bcc\include\prsht.h 138: Multiple declaration for '_PROPSHEETPAGE
    A:WORD'
    Error E2344 d:\bcc\include\prsht.h 137: Earlier declaration of '_PROPSHEETPAGEA:
    WORD'
    Error E2139 d:\bcc\include\prsht.h 138: Declaration missing ;
    Error E2303 d:\bcc\include\prsht.h 139: Type name expected
    Error E2139 d:\bcc\include\prsht.h 139: Declaration missing ;
    Error E2303 d:\bcc\include\prsht.h 141: Type name expected
    Error E2139 d:\bcc\include\prsht.h 141: Declaration missing ;
    Error E2303 d:\bcc\include\prsht.h 143: Type name expected
    Error E2139 d:\bcc\include\prsht.h 143: Declaration missing ;
    Error E2303 d:\bcc\include\prsht.h 149: Type name expected
    Error E2139 d:\bcc\include\prsht.h 149: Declaration missing ;
    Error E2303 d:\bcc\include\prsht.h 150: Type name expected
    Error E2139 d:\bcc\include\prsht.h 150: Declaration missing ;
    Error E2238 d:\bcc\include\prsht.h 151: Multiple declaration for '_PROPSHEETPAGE
    A::LPCSTR'
    Error E2344 d:\bcc\include\prsht.h 143: Earlier declaration of '_PROPSHEETPAGEA:
    :LPCSTR'
    Error E2303 d:\bcc\include\prsht.h 152: Type name expected
    Error E2238 d:\bcc\include\prsht.h 152: Multiple declaration for '_PROPSHEETPAGE
    A::LPCSTR'
    Error E2344 d:\bcc\include\prsht.h 150: Earlier declaration of '_PROPSHEETPAGEA:
    :LPCSTR'
    Error E2228 d:\bcc\include\prsht.h 150: Too many error or warning messages
    *** 26 errors in Compile ***



    Oh~l..........is that mean my include files have bugs?
    I am just trying to create ToolBar and StatusBar...

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,854
    Yes, looks like missing semicolons

    Unless the include files are in the wrong order

    ie a prototype uses a struct which is defined in a not yet included header. Or in a missing library.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    85
    oh~ thanks
    then is it too hard to solve this problem?

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,854
    No
    Post the list of include files (mark which are yours)
    Last edited by novacain; 07-10-2002 at 08:15 PM.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  5. #5
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    No problem is too hard to solve. I like to think of them as too hard to get around to solving. Just check and make sure that the headers are in the right order. This isn't exactly a lot of work. For instance:

    Code:
    //header1.h
    struct my_struct *some_function(int param1, int param2);
    
    //header2.h
    struct my_struct {
       char some_stuff;
       int more_stuff;
    };
    If I include header1.h first the compiler will have no idea what a struct my_struct is. Look for this kind of stuff.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  2. How to monitor process creation?
    By markiz in forum Windows Programming
    Replies: 31
    Last Post: 03-17-2008, 02:39 PM
  3. Why wont my function exit correctly?
    By LightsOut06 in forum C Programming
    Replies: 2
    Last Post: 10-09-2005, 09:23 PM
  4. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 09:46 AM
  5. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 04:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21