Article View: comp.os.os2.programmer
Article #753OS2 Device Driver in C -- Linking Problem
From: Pat O'Neil
Date: Thu, 03 Sep 1992 22:27
Date: Thu, 03 Sep 1992 22:27
14 lines
966 bytes
966 bytes
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.
Technical Details
Message-ID:
<1992Sep3.222735.22713@hns.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!psinntp!psinntp!hns!oneilShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!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