[Insight-users] DLL or Lib

Severino Fernandez severinofer at recol . es
Wed, 4 Jun 2003 22:49:48 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C32AEB.99E63D30
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Using MVC 6, I have had no problems generating a static library from =
some of the ITK examples and the calling the functions from a C main.
But when I generate a DLL, the link of this same main fails with an =
error caused by the dll file being corrrupt. The erro 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_000F_01C32AEB.99E63D30
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>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
the calling the functions from a C main.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>But when I generate a DLL, the link of =
this same=20
main fails with an error caused by the dll file being corrrupt. The erro =
message=20
is as follows:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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.<BR><A=20
href=3D"mailto:insight-users at public . kitware . com"></A></FONT></DIV>
<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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank you in advance and best =
regards</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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&nbsp;&nbsp; +34 91 648 78=20
00<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +34 91 305 16=20
52<BR>Fax&nbsp;&nbsp; +34 91 677 46 46<BR>Email <A=20
href=3D"mailto:severinofer at recol . es">severinofer at recol . es</A>&nbsp;&nbsp;=
=20
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000F_01C32AEB.99E63D30--