Thread: Type Name Expected HELP!!!!

  1. #1
    Unregistered
    Guest

    Angry Type Name Expected HELP!!!!

    I am trying to learn clanlib yet i have a very simple program and It still wont compile with borland c++ 5.5

    The error is Error E2303 clan.cpp 5: Type name expected

    The code is:

    #define BORLAND
    #include <ClanLib/core.h>

    class ClanGameApp : public CL_ClanApplication
    {
    public:
    virtual char *get_title()
    { return "Title goes here"; }

    virtual void init_modules()
    { CL_SetupCore::init(); }

    virtual void deinit_modules()
    { CL_SetupCore::deinit(); }

    virtual int main(int, char **)
    { return 0; }
    } ClanGameApp;




    Please Help fix this!! email me at [email protected]

    Thank you!

  2. #2
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    er, sorry to sound like a e-jut. . . but what's ClanLib?

  3. #3
    elad
    Guest
    It sounds like the linker hasn't found the files you are trying to include so there is no type name available for the compiler to recognize. I would try using double slashes in the path name, and try using the full path name instead of the file and subdirectory only. You could even try with just core.h instead of the entire path name.


    #include <C:myComputer\\ClanLib\\core.h>

    or

    #include "A:download\\ClanLib\\core.h"

    or whatever.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Segmentation Fault?
    By John_L in forum C Programming
    Replies: 10
    Last Post: 10-02-2007, 08:37 AM
  2. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 04:44 AM
  3. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  4. header file bringing errors?
    By bluehead in forum Windows Programming
    Replies: 4
    Last Post: 08-19-2003, 12:51 PM
  5. Type name expected error
    By SilasP in forum C++ Programming
    Replies: 4
    Last Post: 12-09-2001, 02:05 PM