[haiku-development] Re: Porting old BeOS code to Haiku-OS

  • From: Edward Robbins <edd.robbins@xxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 30 May 2014 00:51:51 +0100

On Thu, May 29, 2014 at 9:30 PM, Earl Pottinger <dmarc-noreply@xxxxxxxxxxxxx
> wrote:

>
> The device drivers that compiled ok under GCC2 were compiled on the
> standard nightlies, but when I boot x86_64 Haiku and try to compile them
> there they would compile but when placed in the same locations as the
> Hybrid-Haiku I received odd messages about bad data and they would not work.
>
> ...
>
> The drivers were compiled in the x86_64 nightly which I understand is
> already GCC4 only.


Sounds like a 64 bit compatibility issue rather than a problem with gcc 4.
You could try making integer sizes explicit, i.e. using int32_t instead of
int, uint32_t instead of unsigned, etc.

Other related posts: