error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

Dear all,

I use Windows7(x64) and would like to build HDF4 from the source with
VC++2008.
Then I get only one error as

···

---------------
test0.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to
'/INCREMENTAL:NO' specification
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
--------------

I have changed subsystem from Console to Windows, then I got the error as :
--------------
LIBCMTD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol
_WinMain@16 referenced in function ___tmainCRTStartup
--------------

But when I built it with other machine (WIndowsXP, VC++2008), there was no
error.

Any help would be appreciated.
Thank you,

Asuka

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/error-LNK2019-unresolved-external-symbol-main-referenced-in-function-tmainCRTStartup-tp3138042p3138042.html
Sent from the hdf-forum mailing list archive at Nabble.com.

Asuka,

   I would recommend using cmake to build hdf4 on windows 7.

Allen

···

Dear all,

I use Windows7(x64) and would like to build HDF4 from the source with
VC++2008.
Then I get only one error as
---------------
test0.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to
'/INCREMENTAL:NO' specification
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
--------------

I have changed subsystem from Console to Windows, then I got the error as :
--------------
LIBCMTD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol
_WinMain@16 referenced in function ___tmainCRTStartup
--------------

But when I built it with other machine (WIndowsXP, VC++2008), there was no
error.

Any help would be appreciated.
Thank you,

Asuka

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/error-LNK2019-unresolved-external-symbol-main-referenced-in-function-tmainCRTStartup-tp3138042p3138042.html
Sent from the hdf-forum mailing list archive at Nabble.com.

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org