precompiled headers and link time code generation

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p style="color:#222222; font-family:arial,sans-serif; font-size:13px; margin-right:0in; margin-bottom:12pt
<span style="font-size:9pt; font-family:Verdana,sans-serif Hi all,<span style="text-decoration:underline <span style="text-decoration:underline
<p style="color:#222222; font-family:arial,sans-serif; font-size:13px; margin-right:0in; margin-bottom:12pt
<span style="font-size:9pt; font-family:Verdana,sans-serif Does anyone know whether precompiled headers (PCH) and the flag LTCG are compatible?<span style="text-decoration:underline <span style="text-decoration:underline
<p style="color:#222222; font-family:arial,sans-serif; font-size:13px; margin-right:0in; margin-bottom:12pt
<span style="font-size:9pt; font-family:Verdana,sans-serif It seems that 10 years ago they were not:<span style="text-decoration:underline <span style="text-decoration:underline
<p style="color:#222222; font-family:arial,sans-serif; font-size:13px; margin-right:0in; margin-bottom:12pt
<span style="font-size:9pt; font-family:Verdana,sans-serif <span style="color:#0000aa <span style="background-color:#ffffcc; color:#222222 msdn.microsoft.com/en-us/<span style="color:#0000aa magazine/cc301698.aspx<span style="font-family:Verdana,sans-serif; font-size:9pt; line-height:13.5pt
(limitations - bottom of the page)
<p style="color:#222222; font-family:arial,sans-serif; font-size:13px; margin-right:0in; margin-bottom:12pt
<span style="font-size:9pt; font-family:Verdana,sans-serif <span style="text-decoration:underline <span style="text-decoration:underline
<p style="color:#222222; font-family:arial,sans-serif; font-size:13px; margin-right:0in; margin-bottom:12pt
<span style="font-family:Verdana,sans-serif; font-size:9pt but after trying to build (successfully) with PCH and LTCG on Visual C++ 2010 Professional, I do not see any problems with my application.<br/>

<p style="color:#222222; font-family:arial,sans-serif; font-size:13px; margin-right:0in; margin-bottom:12pt
<span style="font-size:9pt; font-family:Verdana,sans-serif However, I cannot find an explicit statement about support, or lack thereof, for this combination.<span style="text-decoration:underline <span style="text-decoration:underline
<p style="color:#222222; font-family:arial,sans-serif; font-size:13px; margin-right:0in; margin-bottom:12pt
<span style="font-size:9pt; font-family:Verdana,sans-serif The particular reason for which I need this capability is to be able to keep inlined methods indeed inlined, if they are defined in a different DLL, for which a header is precompiled and used in another
dll.<span style="text-decoration:underline <span style="text-decoration:underline
<p style="color:#222222; font-family:arial,sans-serif; font-size:13px; margin-right:0in; margin-bottom:12pt
<span style="font-size:9pt; font-family:Verdana,sans-serif Thanks!
<br/>

<br/>

View the full article
 
Back
Top