home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!wupost!sdd.hp.com!swrinde!elroy.jpl.nasa.gov!lll-winken!taurus!taygeta.oc.nps.navy.mil!skip
- From: skip@taygeta.oc.nps.navy.mil (Skip Carter)
- Newsgroups: comp.sys.mips
- Subject: where is settimeofday()
- Message-ID: <6022@taurus.cs.nps.navy.mil>
- Date: 27 Aug 92 21:43:17 GMT
- Sender: news@taurus.cs.nps.navy.mil
- Reply-To: skip@taygeta.oc.nps.navy.mil (Skip Carter)
- Lines: 50
-
-
- I have a program that must be compiled under the sysv systype
- on a MIPS 3230 running RiscOS 4.52. But the linker can't
- seem to find two BSD functions.
-
- When compiling under systype sysv, settimeofday() and
- usleep() are not resolved, even when the compiler is told
- to look in the bsd libraries. Where are these functions ?
-
- My compilation line:
-
- cc -I/usr/include/bsd -systype sysv stime.c -lbsd
-
- gives,
-
-
- ld:
- Undefined:
- settimeofday
- usleep
-
- but,
-
- cc -systype bsd43 stime.c
-
- compiles OK.
-
-
- This program demonstrates the problem,
-
- /* test settimeofday call with different environments */
-
- #include <stdio.h>
- #include <sys/time.h>
-
- void main()
- {
- struct timeval tv;
-
- settimeofday(&tv, NULL);
-
- usleep( 40000 );
-
- }
-
- --
- Everett (Skip) Carter Phone: 408-646-3318 FAX: 408-646-2712
- Naval Postgraduate School INTERNET: skip@taygeta.oc.nps.navy.mil
- Dept. of Oceanography, Code OC/CR UUCP: ...!uunet!taygeta!skip
- Monterey, CA. 93943 TELEMAIL: s.carter/omnet
-