ページ 11

unresolved external symbol _main referenced in function ___t

Posted: 2011年7月04日(月) 19:26
by neco_brg
Windows7 (x64) , VC++2008 ExpressEdition を使っています。
HDF(http://www.hdfgroup.org/)からソースコードをダウンロードしてきて、その48個のプロジェクトをビルドしたいのですが、1つだけ
LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
..\..\..\..\mfhdf\ncgen\Debug\ctest0.exe : fatal error LNK1120: 1 unresolved externals
のエラーが出ます。SubsystemをConsoleからWindowsに替えてもみましたが、
LIBCMTD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
のエラーが出ます。
RuntimeLibraryの問題でしょうか?

ちなみに、同じソースを違うマシン(WindowsXP, VC++2008 ExpressEdition)でビルドするとうまくいきます。何か解決のアイデアご存知の方、ご教示ください。よろしくおねがいします。