home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4758 < prev    next >
Encoding:
Text File  |  1992-09-07  |  942 b   |  25 lines

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