www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/10/11:03:56.1

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Another cross-compiler problem!
Date: 10 Oct 2001 14:56:53 GMT
Organization: Cornell University
Lines: 41
Sender: asu1 AT cornell DOT invalid (on 128.253.251.163)
Message-ID: <Xns91366F5D8F879ASINANUNUR@132.236.56.8>
References: <20011010144313 DOT 31015 DOT qmail AT web9103 DOT mail DOT yahoo DOT com>
NNTP-Posting-Host: 128.253.251.163
X-Trace: news01.cit.cornell.edu 1002725813 4945 128.253.251.163 (10 Oct 2001 14:56:53 GMT)
X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu
NNTP-Posting-Date: 10 Oct 2001 14:56:53 GMT
User-Agent: Xnews/4.06.22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

ROLAND <roland_asmann AT yahoo DOT com> wrote in 
news:20011010144313 DOT 31015 DOT qmail AT web9103 DOT mail DOT yahoo DOT com:

> I installed the whole package of djcrx203.
> I just used some header files which are on my sparc.

Do you realize that your sparc and djgpp are different platforms?

> Do I need to rewrite my program? 

You need to identify the platform dependent parts of your program. Then 
write those parts with what is available on the particular platform.

> Or can I solve this
> by downloading some header files myself.
> A few headers it looks for are:
> - signal.h (partially, it is there, but not the same
> as  the one on my sparc)

Again, the platforms are different, run-time libraries are different etc 
etc. This is like asking "hi, the cpu on my mac is dead, can i chop some 
pins off of a pentium iii and use that?"

> - time.h (again it is there, but different)

> - inttypes.h (I don't know where this one is, only my
> sparc has it)

this is easier to deal with.

inttypes.h contains typedefs fo integers of various sizes on the specific 
platform. so copying it is inviting disaster. however, you can replicate 
functionality by providing the necessary typedefs. i do not know if the 
inttypes.h on your sparc is the one prescribed by c9x, for that you can 
check out http://www.dinkumware.com/htm_cl/inttypes.html.

sinan.
-- 
--------------------------------
A. Sinan Unur
http://www.unur.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019