Jump to content

Custom teleporter error


Guest manofwar95

Recommended Posts

I was attempting to compile a teleporter, and got this error

Linking CXX shared library libmangosscript.so

CMakeFiles/mangosscript.dir/scripts/custom/custom_creatures.cpp.o: In function `SendDefaultMenu_TeleportNPC(Player*, Creature*, unsigned int)':

custom_creatures.cpp:(.text+0x30): multiple definition of `SendDefaultMenu_TeleportNPC(Player*, Creature*, unsigned int)'

CMakeFiles/mangosscript.dir/scripts/world/TeleportNPC.cpp.o:TeleportNPC.cpp:(.text+0x30): first defined here

CMakeFiles/mangosscript.dir/scripts/custom/custom_creatures.cpp.o: In function `GossipSelect_TeleportNPC(Player*, Creature*, unsigned int, unsigned int)':

custom_creatures.cpp:(.text+0x24a0): multiple definition of `GossipSelect_TeleportNPC(Player*, Creature*, unsigned int, unsigned int)'

CMakeFiles/mangosscript.dir/scripts/world/TeleportNPC.cpp.o:TeleportNPC.cpp:(.text+0xbc0): first defined here

CMakeFiles/mangosscript.dir/scripts/custom/custom_creatures.cpp.o: In function `GossipHello_TeleportNPC(Player*, Creature*)':

custom_creatures.cpp:(.text+0x2600): multiple definition of `GossipHello_TeleportNPC(Player*, Creature*)'

CMakeFiles/mangosscript.dir/scripts/world/TeleportNPC.cpp.o:TeleportNPC.cpp:(.text+0xd20): first defined here

collect2: ld returned 1 exit status

make[2]: *** [src/bindings/scriptdevzero/libmangosscript.so] Error 1

make[1]: *** [src/bindings/scriptdevzero/CMakeFiles/mangosscript.dir/all] Error 2

make: *** [all] Error 2

If you need to take a look at the c++ script go ahead..

http://pastebin.com/WQFEJGBa

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use