• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Unknown Error?

Status
Not open for further replies.
Level 6
Joined
Aug 20, 2009
Messages
95
In my map, I have a lot of systems, and for some weird reason, it keeps telling me I have libraries redeclared, and I don't know why, I have quadruple checked, I have no doubles.

Thanks, Illegalpie

EDIT: If this needs to be moved, can a Mod please do that? Sorry for the inconvenience.
 
Attached is my map, and heres a screen attached also.
 

Attachments

  • Witch Doctor.w3x
    Witch Doctor.w3x
    1.2 MB · Views: 95
  • Untitled.png
    Untitled.png
    102.5 KB · Views: 234
The function is redeclared, this means that 2 libraries have allocated a function with the same name space. To fix, add the public keyword to one of them.

Basically, there are 2 libraries declaring IsTerrainWalkable. One is called IsTerrainWalkable and the other IsTerrainWalkability. You will need to merge them, or change their name space so the functions are not declared with the same name.
 
Because 2 functions have been declared with the same name...

Not how could they, the answer is they have.

Functions not marked as private or public share the global namespace and as such are prone to name collisions. What has happened is a name collision as 2 different libraries (described above) have declared the same function name each which means there is a function namespace collision. As WC3 compiles with near no precompile processing, it can not handle this sort of collision (no function overloading).

I am guessing the offending library is declared somewhere else that you are not aware of, as I could not find it after a rough search through the map.
 
Status
Not open for further replies.
Back
Top