Jump to content

Recommended Posts

Posted

Hi!

Compiling a source for SD2, i get some LNK2019 and LNK2001.

i.e

error LNK2001: external symbol "class Aura * __cdecl CreateAura(......

error LNK2019: external symbol "public: __thiscall ObjectMgr::ObjectMgr(void)

error LNK2019: external symbol "struct SpellEntry const *

Source functions are there, in SpellAuras.h ObjectMgr.h etc..., I can see the definition just with a mouseover.

I wonder why some functions can be found in mangosd.lib and some others, like these, sd2 is not able to find.

Do you know a way to fix this?

Thank you

Posted

because SD2 is used as a library, and hence the functions used by SD2 have to be exported

MANGOS_DLL_DECL or similar (jsut compare class Creature with class Aura)

however there should be no need to use the Aura class SD2

Posted

Thank you Vladimir

I'm going crazy, really. I'm tryin to compile rsa's SD2. He compiles with gnu c in Linux and I with VS2008 in Windows

Can be possible that gnu C could compile this?? I know this isn't a MaNGOS problem but grant me a question, If I cannot compile with VS because those functions are not exported, with gcc should be the same result, isn't it?

Thank you again

×
×
  • 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