Undeclared Identifier.

Results 1 to 6 of 6
  1. #1
    Sorcerer Supreme The Hot One is offline
    Member +Rank
    Jun 2010 Join Date
    EverywhereLocation
    458Posts

    Undeclared Identifier.

    I just extracted a brand new source, I didnt edit anything except the salt, and I get an error while compiling.

    Project.h

    Code:
    Error: Undeclared Identifier 'MAX_MONSTER_LEVEL' 849
    Line 849: 	int	m_anIndex[MAX_MONSTER_LEVEL];
    I included defineJob.h where it defines "MAX_MONSTER_LEVEL" but it still doesn't work.

    The source hates me. Fml

    Any help would be appreciated


  2. #2
    1/11/1995 ~ 23/11/2011 rebora2007 is offline
    Grand MasterRank
    Nov 2010 Join Date
    Care much ?Location
    2,346Posts

    Re: Undeclared Identifier.

    Did you verify your paths?

  3. #3
    Ancient One cmb is offline
    DeveloperRank
    Mar 2007 Join Date
    1,039Posts

    Re: Undeclared Identifier.

    Quote Originally Posted by rebora2007 View Post
    Did you verify your paths?
    yes, try this, make sure everything points to the proper place. If all else fails, do a forward declaration of the int, or change it to the actual constant that the variable represents

  4. #4
    1/11/1995 ~ 23/11/2011 rebora2007 is offline
    Grand MasterRank
    Nov 2010 Join Date
    Care much ?Location
    2,346Posts

    Re: Undeclared Identifier.

    Quote Originally Posted by cmb View Post
    yes, try this, make sure everything points to the proper place. If all else fails, do a forward declaration of the int, or change it to the actual constant that the variable represents
    I'm not sure the clean source needs any edits.

  5. #5
    One word! Im Fawkin Pro! Xakzi is offline
    Grand MasterRank
    Jul 2010 Join Date
    SwedenLocation
    1,356Posts

    Re: Undeclared Identifier.

    the soruce need one little edit...

    You get that error because project.cpp
    and definejob.h is different..

    if you check MAX_MONSTER_LEVEL
    in definejob.h and over it you will se it says;
    Code:
    #if __HERO129_VER15 // __HERO129_VER15				// 15Â÷ È÷¾î·Î ·¹º§È®Àå
    #define MAX_LEGEND_LEVEL			129	
    #define MAX_MONSTER_LEVEL			160
    edit that to
    Code:
    #if __VER >= 15 // __HERO129_VER15				// 15Â÷ È÷¾î·Î ·¹º§È®Àå
    #define MAX_LEGEND_LEVEL			129	
    #define MAX_MONSTER_LEVEL			160
    and compile again =)

  6. #6
    Sorcerer Supreme The Hot One is offline
    Member +Rank
    Jun 2010 Join Date
    EverywhereLocation
    458Posts

    Re: Undeclared Identifier.

    Quote Originally Posted by wakazaki View Post
    the soruce need one little edit...

    You get that error because project.cpp
    and definejob.h is different..

    if you check MAX_MONSTER_LEVEL
    in definejob.h and over it you will se it says;
    Code:
    #if __HERO129_VER15 // __HERO129_VER15				// 15Â÷ È÷¾î·Î ·¹º§È®Àå
    #define MAX_LEGEND_LEVEL			129	
    #define MAX_MONSTER_LEVEL			160
    edit that to
    Code:
    #if __VER >= 15 // __HERO129_VER15				// 15Â÷ È÷¾î·Î ·¹º§È®Àå
    #define MAX_LEGEND_LEVEL			129	
    #define MAX_MONSTER_LEVEL			160
    and compile again =)
    Again, wakazaki saved the day



Advertisement