2012-02-24 6 views
0

私は簡単な質問があります。 VC++を開いて「空のプロジェクト」を作成し、Lua 5.2.0のソースコードを挿入してコンパイルしてもエラーは発生しません。しかし、最初に「Windowsフォームアプリケーション」を選択する以外はこれを行うと、エラーが発生します。何が原因でしょうか?ルアとVisual C++

EDIT:

エラーは特定の機能の安全なバージョンについては、次のとおりです。

1>..\lua-5.2.0\src\lua.c(102): error C3861: 'signal': identifier not found 1>..\lua-5.2.0\src\lua.c(178): error C3861: 'signal': identifier not found 1>..\lua-5.2.0\src\lua.c(180): error C3861: 'signal': identifier not found 1> luac.c 1>..\lua-5.2.0\src\luac.c(43): warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(157) : see declaration of 'strerror' 1>..\lua-5.2.0\src\luac.c(178): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(234) : see declaration of 'fopen' 1> lundump.c 1> lvm.c 1>..\lua-5.2.0\src\lvm.c(53): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'sprintf' 1> lzio.c 1> Generating Code...

+1

"これは何が原因かもしれません?"私は知らない;あなたはエラー*が何であるか教えてくれませんでした*。 –

答えて

1

は、Windowsフォームアプリケーションを作成するとき、それは実際にマネージC++(用途を使用しているので、それがかもしれません。ネット)、私はルアは互換性がないとは思わない。あなたが探しているかもしれないhttp://luaplus.org/を見てください。それは、それは何かのためのルアのようです.net言語(これは、C + +を管理しています)