home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!wupost!sdd.hp.com!mips!mips!ampex!cjensen
- From: cjensen@ampex.com (Colin Jensen)
- Subject: Re: Using Toolkit with GCC - Any problems?
- Message-ID: <1992Aug18.222539.19836@ampex.com>
- Sender: usenet@ampex.com (News Poster)
- Nntp-Posting-Host: mer-s4-14
- Organization: Ampex Corporation, Redwood City CA
- References: <9208181323.AA09738@data.src.honeywell.com> <1992Aug18.151342.25079@csc.ti.com>
- Date: Tue, 18 Aug 1992 22:25:39 GMT
- Lines: 13
-
- In article <1992Aug18.151342.25079@csc.ti.com> jsykes@dadd.ti.com writes:
- >Can't you avoid adding the 'asm ("x")'s by including os.h as follows:
- >
- >extern "C" {
- >#include <os2.h>
- >}
-
- No. This is not the same thing. extern "C" will tell gcc to use
- underscores before all symbols. The asm directive is the only
- efficient way to tell gcc to not use underscores before the library
- symbols.
- --
- Colin Jensen (cjensen@ampex.com)
-