Jump to content

Intel Compiler

Guest leak

Recommended Posts

After reading that the Intel C++ Compiler outperforms VC9 by a minimum of 5-6% (even more on floating point) i gave it a shot with mangos.

Using VS2008 Prof gave me the following results:

12>Compiling with Intel(R) C++ 11.0.072 [iA-32]... (Intel C++ Environment)
========== Build: 12 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

ScriptDev2 seems to compile fine too, but there is a problem with the linker. Intel's xilink doesn't seem to get that it supposed to replace the script functions from mangos by those from sd2.

1>Linking... (Intel C++ Environment)
1>xilink: executing 'link'
1>boss_lethon.obj : error LNK2005: _DllMain@12 already defined in boss_emeriss.obj
1>boss_taerar.obj : error LNK2005: _DllMain@12 already defined in boss_emeriss.obj
1>   Creating library ..\\..\\..\\..\\bin\\win32_release/MaNGOSScript.lib and object ..\\..\\..\\..\\bin\\win32_release/MaNGOSScript.exp
1>..\\..\\..\\..\\bin\\win32_release/MaNGOSScript.dll : fatal error LNK1169: one or more multiply defined symbols found

Instead of linking the .obj created by sd2 it links the stuff from mangos again and places it in the bin/ folder. Maybe someone has an idea how to fix that.

On a more important note: Does anybody have a hint how to get automake to use the Intel Compiler on Linux?

Maybe another build system is needed to accomplish that. Would appreciate someone dropping some knowledge about that ;)

Intel Compiler available here: http://software.intel.com/en-us/intel-compilers/

(31days of free evaluation)

**edit Alright got sd2 working too

Had to remove

DWORD  ul_reason_for_call,
LPVOID lpReserved

from precompiled.h, now it is compiling and working fine too.

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