home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!usc!rpi!psinntp!psinntp!hns!oneil
- From: oneil@hns.com (Pat O'Neil)
- Subject: OS2 Device Driver in C -- Linking Problem
- Message-ID: <1992Sep3.222735.22713@hns.com>
- Sender: news@hns.com (USENET news system)
- Organization: Hughes Network Systems Inc.
- Date: Thu, 3 Sep 1992 22:27:35 GMT
- Lines: 14
-
- Anyone out there have any experience writing OS/2 drivers in C?
-
- I am writing a 16-bit OS/2 device driver in C/2. I'm having trouble
- getting the linker to put the data segment (which contains the
- device header) first. The C/2 manual says that the linker
- locates segments in the order it encounters them. This seems
- true until I start bringing in the C run-time libraries
- (which I need for sprintf, strtok, memcpy, etc.). If I link
- without the library (and thereby get a zillion unresolveds)
- the map at least says that the data segment is first.
-
- Pat O'Neil
- Hughes Network Systems
- Germantown, Md.
-