From simon.urbanek at r-project.org  Fri Oct 16 16:59:31 2009
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Fri, 16 Oct 2009 10:59:31 -0400
Subject: [Rd] Question when compiling source code with VC++
In-Reply-To: <4AD78D98.80709@aon.at>
References: <4AD78D98.80709@aon.at>
Message-ID: <DB7B0AE0-0566-46DD-B5A4-D0D104C25E79@r-project.org>


On Oct 15, 2009, at 17:01 , cstrato wrote:

> Dear Duncan,
>
> In your document "readme.packages.txt" you have a very helpful  
> chapter on "Using Visual C++".
> Please allow me to ask you one question: Why do you propose the  
> option "/MT" instead of option "/MD"?
> (To my knowledge usually option "/MD" is used when compiling  
> programs with VC++.)
>

Have you read the MS docs? They have different purposes - /MD pulls in  
MSVCR which may not be what you want (depending on your code), /MT  
just says that you want thread-safe libs. The fact that something is  
"usually" used is not necessarily a very good indicator -- it's better  
if you know what you're doing ;).

Cheers,
Simon



[Rd] Question when compiling source code with VC++
Simon Urbanek