[Insight-users] Re : what's this error plz

Syrine Sahmim syrine.sahmim at yahoo.fr
Wed Jun 17 06:47:22 EDT 2009


ok
the error message i have is "DicomImageReadWrite.cxx
.\DicomImageReadWrite.cxx(8) : fatal error
C1083: Impossible d'ouvrir le fichier include :
'itkImageFileReader.h' : No such file or directory" and i
Now,i try to change cmake file now as follows:
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
IF(COMMAND CMAKE_POLICY)
  CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)
# Find ITK.
FIND_PACKAGE(ITK REQUIRED)
INCLUDE(${ITK_USE_FILE})

PROJECT(IOExamples)
INCLUDE_REGULAR_EXPRESSION("^.*$")
ADD_EXECUTABLE(DicomImageReadWrite DicomImageReadWrite.cxx )
TARGET_LINK_LIBRARIES(DicomImageReadWrite  ITKIO)
but when i execute cmake i have this error (look at the joined file plz)







________________________________
De : Luis Ibanez <luis.ibanez at kitware.com>
À : Syrine Sahmim <syrine.sahmim at yahoo.fr>
Cc : insight-users at itk.org
Envoyé le : Mercredi, 17 Juin 2009, 11h33mn 17s
Objet : Re: [Insight-users] what's this error plz


Hy Syrine,

The code looks ok.

You may be confused with the normal termination of the program.

If you run it in Debug mode, and walk line by line,
do you get up to the end of the program ?

Please let us know,


      Thanks,


           Luis


----------------------------------------

On Wed, Jun 17, 2009 at 4:34 AM, Syrine Sahmim <syrine.sahmim at yahoo.fr> wrote:

hi,
i try the  program below but i have this error when i run it:"the program '[640] Image1.exe: Natif' is stopped with code 0 (0x0)."
what does mean this error?
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#include "itkImage.h"
int main(int, char *[])
{  typedef itk::Image< unsigned short, 3 > ImageType;
   ImageType::Pointer image = ImageType::New();      
   ImageType::IndexType start;
  start[0] =   0;  // first index on X
  start[1] =   0;  // first index on Y
  start[2] =   0;  // first index on Z
  ImageType::SizeType  size;
  size[0]  = 200;  // size along X
  size[1]  = 200;  // size along Y
  size[2]  = 200;  // size along Z
  ImageType::RegionType region;
  region.SetSize( size );
  region.SetIndex( start );
  image->SetRegions( region );
  image->Allocate();
  system("pause");
   return 0;


_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090617/b2a7ce94/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sans titre.bmp
Type: image/bmp
Size: 903774 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090617/b2a7ce94/attachment-0003.bin>


More information about the Insight-users mailing list