discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling Osirix with GnuStep


From: delafond gerard
Subject: Re: Compiling Osirix with GnuStep
Date: Mon, 19 Oct 2009 19:33:10 +0200
User-agent: KMail/1.11.4 (Linux/2.6.29.6-desktop586-1mnb; KDE/4.2.4; i686; ; )

Le dimanche 18 octobre 2009, Fred Kiefer a écrit :

>
> interesting stuff that you are doing here. The byte order problem you
> are having should be easy to resolve. The Papyrus code uses the lowest
> level of the byte order interface. You should change it over to the byte
> order functions exported by Foundation, these are also implemented in
> GNUstep base and therefore easily portable. Have a look at the file
> NSByteOrder.h and replace OSSwapBigToHostInt64 with
> NSSwapBigLongLongToHost and so on.
OK. It works. Thanks.
> You could of course also rebuild this functionality based on the Linux
> header you already found, but this is surely more trouble.
>
> Hope this helps
Sure !
> Fred

New problem :
Papyrus3/PapyFileSystemUnix3.c: In function ‘int Papy3DGetNbFiles(char*, 
int*)’:
Papyrus3/PapyFileSystemUnix3.c:327: erreur: invalid application of ‘sizeof’ to 
incomplete type ‘DIR’
make[2]: *** [obj/./Papyrus3/PapyFileSystemUnix3.c.o] Erreur 1

I have a look at the bad line :
int
Papy3DGetNbFiles (char *dicomPath, int *nbFiles)
{

  struct stat     *aStatStruct;
  struct dirent   *aDirent;
  DIR             *aDIR;

  aStatStruct =  (struct stat*)emalloc3(sizeof(struct stat));
  aDirent =      (struct dirent*)emalloc3(sizeof(struct dirent));
  aDIR=         (DIR*)emalloc3(sizeof(DIR));


  aDIR = opendir(dicomPath);

Any idea ?

Thanks !

Gerard





reply via email to

[Prev in Thread] Current Thread [Next in Thread]