home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!caen!destroyer!ncar!csn!news.den.mmc.com!enterprise.den.mmc.com!beck
- From: beck@enterprise.den.mmc.com (Fred R. Beck)
- Subject: Re: porting code
- Message-ID: <1992Nov17.232318.12575@den.mmc.com>
- Sender: news@den.mmc.com (News)
- Nntp-Posting-Host: gate-enterprise.den.mmc.com
- Organization: Martin Marietta
- References: <1992Nov17.000038.21808@den.mmc.com>
- Date: Tue, 17 Nov 1992 23:23:18 GMT
- Lines: 34
-
- In article <1992Nov17.000038.21808@den.mmc.com>, beck@enterprise.den.mmc.com (Fred R. Beck) writes:
- |> Just a quick one to you multi-platform c gurus...
- |>
- |> I'm trying to port some code from SGI to a MIPS box
- |> and have run into a problem I havn't seen before.
- |>
- |> After the code successfully compiles, the loader fails
- |> to find the appropriate string functions:
- |>
- |> isdigit()
- |> isxdigit()
- |> strncasecmp()
- |>
- |> as well as some other string functions.
- |>
- |> Any suggestions out there? I havn't been able to locate
- |> any of the above in the libraries in /usr/lib...
- |>
- |> Appreciate any help offered!! -thanx
- |>
- |> fred.
-
- Thanks to all. I was able to figure it out. My guess is
- that not every system manufactuer agrees as to what ANSI
- is all about. Once the proper header files were found,
- everything worked. (Except that MIPS doesn't support
- strcasecmp(), I had to write my own...)
-
- Lesson learned, don't just look at the first header file
- which matches your search when porting code to a foreign
- system. Also, never truely beleive man pages on foreign
- systems; they lie.
-
- fred.
-