Archived

This forum has been archived. Please start a new discussion on GitHub.

ATL Service & ICE

Help::How do I incoorporate ICE into ATL Service EXE since ATL Service requires the Runtime Library Setting to be Multi-threaded (/MT) and ICE requires the Runtime Library Setting to be Multi-threaded DLL (/MD).

if I set to /MD, I get the following error:
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup

Comments

  • I'm sorry, but I don't know how to do this. From browsing the compiler doc, it appears that /MT adds libcmt.lib to generated object files. If you compile with /MD, you could try to explictly link against libcmt.lib. That might just resolve your problem.

    Cheers,

    Michi.