LoginSignup
1
1

More than 5 years have passed since last update.

Haxe/C++は、Visual Studio 2011, 2012が入ってるとエラーになる

Last updated at Posted at 2013-01-10

Windowsを使っている場合、Haxe/C++のコンパイルにはVisual C++が使用されますが、必要になるVisual Studioは2010以前のもので、使っているPCに2011以降のVisual Studioが入っていると以下のようなコンパイルエラーを起こします。

String.obj : error LNK2011: precompiled object not linked in; image may not run

この現象は下記のURLの方法で解決することができます。
http://www.nme.io/community/forums/general-discussion/need-help-with-building-for-windows-c-having-some-linking-error/

C:\Motion-Twin\haxe\lib\hxcpp\2,10\build-tool\msvc-toolchain.xml
(C:\Motion-TwinはHaxeをインストールしたフォルダ、2,10はhxcppのバージョン)
のファイルの冒頭(<xml>の直後)に以下の一行を挿入する。

<setenv name="VS110COMNTOOLS" value="disable" />
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1