No subject


Fri Jan 14 08:05:08 EST 2011


(instead of the default /MD used by Cmake). Can't remember if this was
using shared or static lib.

Does anyone still have this compiler ?

HTH


On Fri, Mar 25, 2011 at 7:06 PM, Bill Lorensen <bill.lorensen at gmail.com>
wrote:
> Mathieu,
>
> Several files including gdcmObject.cxx have no code in them. Your
comment in
> gdcmObject.cxx says:
>   // Don't ask why, but this is EXTREMELY important on Win32
>   // Apparently the compiler is doing something special the first time
it
> compiles
>   // this instanciation unit
>   // If this fake file is not present I get an unresolved symbol for
each
> function
>   // of the gdcm::Object class
>
> When linking these "empty" files, VS10 reports several warnings:
>  warning LNK4221: This object file does not define any previously
undefined
> public symbols, so it will not be used by any link operation that
consumes
> this library
>
> I have removed this file from the lib as well as
> gdcmProgressEvent.cxx, gdcmString.cxx, gdcmException.cxx
> gdcmDeflateStream.cxx and gdcmByteSwap.cxx
>
> When I build the modified lib, I do not get the warnoings, nor do I
get any
> errors.
>
> What compiler was giving the errors you mention in the comments?
>
> Bill
>




--
Mathieu

=20


------_=_NextPart_001_01CBEB21.E05B42E9
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 12 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Courier New";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier New";color:#1F497D'>I =
think Mark Roden had a patch submitted that may fix this, but I'm not =
100% sure about that.&nbsp; Let's see what he has to =
say.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Courier =
New";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Courier =
New";color:#1F497D'>&nbsp; Bill Ryan<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Courier =
New";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div =
style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
insight-developers-bounces at itk.org =
[mailto:insight-developers-bounces at itk.org] <b>On Behalf Of </b>Bill =
Lorensen<br><b>Sent:</b> Friday, March 25, 2011 1:23 PM<br><b>To:</b> =
Mathieu Malaterre<br><b>Cc:</b> Insight Developers<br><b>Subject:</b> =
Re: [Insight-developers] GDCM empty cxx =
files<o:p></o:p></span></p></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'>Mathieu,<br><br>We still support VS7.1. I =
would like to submit a patch that removes these files from the lib and =
see if it works.<br><br>Unfortunately, the VS generator does not work =
with the modularized ITK. We may not be able to thoroughly test it until =
the patched cmake is =
released.<br><br>Thanks,<br><br>Bill<o:p></o:p></p><div><p =
class=3DMsoNormal>On Fri, Mar 25, 2011 at 2:13 PM, Mathieu Malaterre =
&lt;<a =
href=3D"mailto:mathieu.malaterre at gmail.com">mathieu.malaterre at gmail.com</=
a>&gt; wrote:<o:p></o:p></p><p class=3DMsoNormal>From the top of my =
head, this was V7.1 with /MT as compilation flag<br>(instead of the =
default /MD used by Cmake). Can't remember if this was<br>using shared =
or static lib.<br><br>Does anyone still have this compiler =
?<br><br>HTH<o:p></o:p></p><div><div><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'><br>On Fri, Mar 25, 2011 at 7:06 PM, Bill =
Lorensen &lt;<a =
href=3D"mailto:bill.lorensen at gmail.com">bill.lorensen at gmail.com</a>&gt; =
wrote:<br>&gt; Mathieu,<br>&gt;<br>&gt; Several files including =
gdcmObject.cxx have no code in them. Your comment in<br>&gt; =
gdcmObject.cxx says:<br>&gt; &nbsp; // Don't ask why, but this is =
EXTREMELY important on Win32<br>&gt; &nbsp; // Apparently the compiler =
is doing something special the first time it<br>&gt; compiles<br>&gt; =
&nbsp; // this instanciation unit<br>&gt; &nbsp; // If this fake file is =
not present I get an unresolved symbol for each<br>&gt; function<br>&gt; =
&nbsp; // of the gdcm::Object class<br>&gt;<br>&gt; When linking these =
&quot;empty&quot; files, VS10 reports several warnings:<br>&gt; =
&nbsp;warning LNK4221: This object file does not define any previously =
undefined<br>&gt; public symbols, so it will not be used by any link =
operation that consumes<br>&gt; this library<br>&gt;<br>&gt; I have =
removed this file from the lib as well as<br>&gt; gdcmProgressEvent.cxx, =
gdcmString.cxx, gdcmException.cxx<br>&gt; gdcmDeflateStream.cxx and =
gdcmByteSwap.cxx<br>&gt;<br>&gt; When I build the modified lib, I do not =
get the warnoings, nor do I get any<br>&gt; errors.<br>&gt;<br>&gt; What =
compiler was giving the errors you mention in the =
comments?<br>&gt;<br>&gt; =
Bill<br>&gt;<br><br><br><o:p></o:p></p></div></div><p =
class=3DMsoNormal>--<br><span =
style=3D'color:#888888'>Mathieu</span><o:p></o:p></p></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></body></html>
------_=_NextPart_001_01CBEB21.E05B42E9--


More information about the Insight-developers mailing list