Header Junk getting on my nerves

This is a discussion on Header Junk getting on my nerves within the C++ Programming forums, part of the General Programming Boards category; Hey. IN my most recent project, i have been doing well keepong the compler errors to a minimum. However, i ...

  1. #1
    Rebooted Inquirer's Avatar
    Join Date
    Apr 2002
    Posts
    281

    Header Junk getting on my nerves

    Hey. IN my most recent project, i have been doing well keepong the compler errors to a minimum. However, i began to write a fighting engine, and am all of the sudden getting odd errors about things not being defined in the scope (classes mostly) and things being redefined (which i believe i fixed with inclusion protection. Below is a list of the errors i can't seem to fix. The source for this is included on the .zip that i have attached.

    35 scenario.h
    `creature' was not declared in this scope
    35 scenario.h
    variable or field `setEnter' declared void
    45 scenario.h
    syntax error before `;'
    70 scenario.h
    `adversary' undeclared (first use this function)
    70 scenario.h
    `character' undeclared (first use this function)
    70 scenario.h
    implicit declaration of function `int fight(...)'
    74 scenario.h
    `creature' was not declared in this scope
    74 scenario.h
    parse error before `)'
    74 scenario.h
    no `void map::setEnter(...)' member function declared in class `map'
    75 scenario.h
    `adv' undeclared (first use this function)
    253 scenario.h
    `vulture' undeclared (first use this function)
    ....
    the list goes on. Sorry if the line numbers are off.

    If you see anything above that tells you anything about my problem. let me know. I have tried the other boards, but haven't gottten much help. IF you decide to look at my source, well good luck.

    Thanks in advance,
    ~Inquirer
    Attached Files Attached Files
    Compilers:
    GCC on Red Hat 8.1 (Primary)
    GCC on Mac OS X 10.2.4 (Secondary)

    Others:
    MinGW on XP

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Obtaining source & destination IP,details of ICMP Header & each of field of it ???
    By cromologic in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-29-2006, 02:49 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  4. header stuff getting on nerves
    By Inquirer in forum Game Programming
    Replies: 2
    Last Post: 08-04-2002, 09:25 PM

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