home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!hal.com!decwrl!csus.edu!netcom.com!feustel
- From: feustel@netcom.com (David Feustel)
- Newsgroups: comp.os.os2.programmer
- Subject: Re: OS2 Device Driver in C -- Linking Problem
- Message-ID: <#rnn01r.feustel@netcom.com>
- Date: 5 Sep 92 14:53:44 GMT
- References: <1992Sep3.222735.22713@hns.com>
- Organization: DAFCO: OS/2 Software Support & Consulting
- Lines: 21
-
- oneil@hns.com (Pat O'Neil) writes:
-
- >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,
- The solution to yor problem is a small assembly language stub. See
- Mastrianni's book "Writing OS/2 2.0 Drivers in C" (Van Nostrand
- Reinhold, ISBN 0-442-01141-5). VNR has an 800 order number.
- --
- Dave Feustel N9MYI <feustel@netcom.com>
-
- ( New .sig under construction. Watch this space! )
-