home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4312 < prev    next >
Encoding:
Text File  |  1992-08-18  |  916 b   |  26 lines

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