Mail Archives: djgpp/1997/01/13/22:42:56
From: | Dr Arthur Jones <arthur DOT jones AT nottingham DOT ac DOT uk>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Using Microsoft C object code with DJGPP/RHIDE
|
Date: | Mon, 13 Jan 1997 16:21:07 -0800
|
Organization: | Dept of Mech Eng, University of Nottingham
|
Lines: | 23
|
Message-ID: | <32DAD173.7045@nottingham.ac.uk>
|
NNTP-Posting-Host: | peaiaj.nottingham.ac.uk
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
As something of a raw recruit to DJGPP and RHIDE (and very impressed
with both of these!) I am trying to find whether I can use DJGPP to write
some software to control an item of laboratory equipment which involves
some plug-in hardware (an analog-to-digital converter) which plugs into
the parallel port of the PC. The ADC comes with a disk of driver
functions written (I am told) in assembler and callable from Microsoft C.
The header file for these subroutines consists of two function prototypes
of the form
extern far function1( int, int, .... )
I've tried loading the object code into a RHIDE project and compiling/
linking the program, but it gives something like "parse error before ("
when it gets to the header file and doesn't compile.
Is it fundamentally possible to link MS-C object code into DJGPP? Am I
missing the obvious, or am I trying to do the impossible?
Any help would be greatly appreciated.
Arthur Jones
Department of Mechanical Engineering
University of Nottingham, UK
- Raw text -