harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chunrong lai" <chunrong...@gmail.com>
Subject [drlvm][build]Need manual environment variable setting to build Harmony
Date Thu, 03 Jan 2008 04:22:24 GMT
 hi, colleagues:
      Just a note that recently I found that I need to manually set
"LIB=C:\Program
Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\;" to successfully
build Harmony in my machine, or not I will have build error message like
below

 build.native.link:
       [cc] 0 total files to be compiled.
       [cc] Starting link
       [cc] msvcrt.lib(ti_inst.obj) : error LNK2005: "private: __thiscall
type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z)
already defined in MSVCRT.LIB(ti_inst.obj)
       [cc] msvcrt.lib(ti_inst.obj) : error LNK2005: "private: class
type_info & __thiscall type_info::operator=(class type_info const &)"
(??4type_info@@AAEAAV0@ABV0@@Z <AAEAAV0@ABV0@@Z>) already defined in
MSVCRT.LIB(ti_inst.obj)
       [cc] msvcrt.lib(ti_inst.obj) : warning LNK4006: "private: __thiscall
type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z)
already defined in MSVCRT.LIB(ti_inst.obj); second definition ignored
       [cc] msvcrt.lib(ti_inst.obj) : warning LNK4006: "private: class
type_info & __thiscall type_info::operator=(class type_info const &)"
(??4type_info@@AAEAAV0@ABV0@@Z <AAEAAV0@ABV0@@Z>) already defined in
MSVCRT.LIB(ti_inst.obj); second definition ignored
       [cc]    Creating library harmonyvm.lib and object harmonyvm.exp
       [cc] harmonyvm.dll : fatal error LNK1169: one or more multiply
defined symbols found

  My machine installs both of Visual Studio 2003 and VC6. The environment
setting is firstly "LIB=C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Lib\;C:\ProgramFiles\Microsoft Visual
Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib" and
is then "LIB=C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\ATLMFC\LIB;C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\LIB;C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\PlatformSDK\lib\prerelease;C:\Program Files\Microsoft Visual Studio
.NET 2003\VC7\PlatformSDK\lib;C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\lib;C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Lib\;C:\Program Files\Microsoft Visual
Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib" after
the vsvars32.bat has been called.

  I am not sure what was happened but I could build Harmony after had called
vsvars32.bat before. So this is likely a new issue to me.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message