Ethereal-dev: RE: [ethereal-dev] Win32 build problem

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Graham Bloice" <graham.bloice@xxxxxxxxxxxxx>
Date: Thu, 8 Jun 2000 11:31:31 +0100
> > With the latest makefile.nmake I get heaps of link errors due to the
> > /NODEFAULTLIB:libcmt entries at the end of the linker command line.  Can
> > anyone tell me why they're there?
>
> Once I get permission to release the source I have for H.323, you'll need
> even more of those :-(

But this doesn't explain why executable shouldn't be linked with libcmt.  As
makefile.nmake sets the compiler flag /MT this implies that the executable
should be linked with libcmt.

>From MSDN compiler options:

/MT Multithreaded  Defines _MT so that multithread-specific versions of the
run-time routines are selected from the standard header (.H) files. This
option also causes the compiler to place the library name LIBCMT.LIB into
the .OBJ file so that the linker will use LIBCMT.LIB to resolve external
symbols. Either /MT or /MD (or their debug equivalents /MTd or /MDd) is
required to create multithreaded programs.

GB