Article View: comp.os.os2.programmer
Article #371Re: Re: EMX/GCC library support
From: David Charlap
Date: Tue, 11 Aug 1992 19:55
Date: Tue, 11 Aug 1992 19:55
17 lines
1227 bytes
1227 bytes
In article <1992Aug10.094324.269@newsserver.rrzn.uni-hannover.de> gruen@ipc1.rrzn.uni-hannover.de writes:
>If you'll work with C++ you need to add a extern "C"{
>to the beginning to os2.h and a }; at the end. That's all.
Rather than edit the .h files (which gets messy if the headers are
updated in the future - you'd have to re-update them), it's easier to
define them as "C" in your application like this:
extern "C" {
#define ....
#include <os2.h>
}
--
|) David Charlap "I don't even represent myself
/|_ dic5340@hertz.njit.edu sometimes so NJIT is right out!.
((|,)
~|~ Hi! I am a .signature virus, copy me into your .signature file.
Technical Details
Message-ID:
<1992Aug11.195534.3249@njitgw.njit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!rpi!uwm.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340References:
<1992Aug7.201552.23788@csc.ti.com> <1992Aug10.094324.269@newsserver.rrzn.uni-hannover.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!rpi!uwm.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340 From: dic5340@hertz.njit.edu (David Charlap) Newsgroups: comp.os.os2.programmer Subject: Re: Re: EMX/GCC library support Message-ID: <1992Aug11.195534.3249@njitgw.njit.edu> Date: 11 Aug 92 19:55:34 GMT References: <1992Aug7.201552.23788@csc.ti.com> <1992Aug10.094324.269@newsserver.rrzn.uni-hannover.de> Sender: news@njit.edu Organization: New Jersey Institute of Technology, Newark, N.J. Lines: 17 Nntp-Posting-Host: hertz.njit.edu