[Insight-users] problems generating a dll from ITK code
Severino Fernandez
severinofer at recol . es
Mon, 9 Jun 2003 22:27:37 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_005D_01C32ED6.54C48470
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I would like to repeat the same question, just in case something has =
gone wrong with my previous email:
Using MVC 6, I have had no problems generating a static library from =
some of the ITK examples and then calling those functions in the lib =
from a C main.
But when I generate a DLL, the link of this same C main fails with an =
error caused by the dll file being corrrupt. The error message is as =
follows:
C:\INTA\sw\ITKRegistration\DemonsDll\Debug\DemonsDll.dll : fatal error =
LNK1136: invalid or corrupt file
Error executing link.exe.
Should I care particularly about the MVC Project settings for the DLL ? =
Could somebody give me some hint ?
Thank you in advance and best regards
Severino Fernandez
Instituto Nacional de Tecnica Aeroespacial
Departamento de Observaci=F3n de la Tierra, Teledetecci=F3n y =
Aeronom=EDa
Carretera de Ajalvir, Km 4
28850 Torrejon de Ardoz
Spain
Tel +34 91 648 78 00
+34 91 305 16 52
Fax +34 91 677 46 46
Email severinofer at recol . es =20
------=_NextPart_000_005D_01C32ED6.54C48470
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I would like to repeat the same =
question, just in=20
case something has gone wrong with my previous email:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><BR> </DIV>
<DIV><FONT face=3DArial size=3D2>Using MVC 6, </FONT><FONT face=3DArial =
size=3D2>I have=20
had no problems generating a static library from some of the ITK =
examples and=20
then calling those functions in the lib from a C main.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>But when I generate a DLL, the link of =
this same C=20
main fails with an error caused by the dll file being corrrupt. The =
error=20
message is as follows:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>C:\INTA\sw\ITKRegistration\DemonsDll\Debug\DemonsDll.dll : =
fatal error=20
LNK1136: invalid or corrupt file<BR>Error executing =
link.exe.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR> </DIV><A=20
href=3D"mailto:insight-users at public . kitware . com"></A></FONT>
<DIV><FONT face=3DArial size=3D2>Should I care particularly about the =
MVC Project=20
settings for the DLL ? Could somebody give me some hint ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thank you in advance and best =
regards</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Severino Fernandez<BR>Instituto =
Nacional de Tecnica=20
Aeroespacial<BR>Departamento de Observaci=F3n de la Tierra, =
Teledetecci=F3n y=20
Aeronom=EDa<BR>Carretera de Ajalvir, Km 4<BR>28850 Torrejon de=20
Ardoz<BR>Spain<BR>Tel +34 91 648 78=20
00<BR> +34 91 305 16=20
52<BR>Fax +34 91 677 46 46<BR>Email <A=20
href=3D"mailto:severinofer at recol . es">severinofer at recol . es</A> =
=20
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_005D_01C32ED6.54C48470--