home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3762 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.5 KB  |  41 lines

  1. Path: sparky!uunet!wupost!cs.utexas.edu!torn!utzoo!dciem!rjm
  2. From: rjm@dciem.dciem.dnd.ca (Robert J. Manley)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: non-emx gcc with IBM toolkit
  5. Message-ID: <6115@dciem.dciem.dnd.ca>
  6. Date: 24 Jul 92 19:39:24 GMT
  7. Distribution: na
  8. Organization: NTT Systems Inc., Toronto, Canada
  9. Lines: 30
  10.  
  11.  
  12. Hopefully a simple question for you OS/2 2.00 gcc (non-emx) gurus.
  13.  
  14. I want to use this version of gcc with the IBM developer's toolkit.  I have
  15. the icc2gcc file but it looks like it is relevant only for the emx version
  16. (it is very nice though).  In the docs it does mention the neccessary trivial
  17. defines (e.g. _Seg16) which allow the compiler to successfully parse the
  18. include files.  Furthermore, I have overridden the default "C++" calling
  19. context via the explicit language specification of
  20.  
  21.     extern "C"
  22.     {
  23.         #include <os2.h>
  24.     }
  25.  
  26. The problem I am having is that the os2386 libs seem to have ASM symbols
  27. i.e. no underscore and case insensitive.  The latter I can live with but the
  28. lack of underscores is producing unresolved externals which I can't seem to
  29. get around.  Now the question is, can I stop gcc from prepending underscores
  30. to "C" functions (already tried -mno-underscores) or alternatively specify
  31. another language (tried "ASM" and a bunch of others) to accomplish this.
  32.  
  33. Thanks in advance.
  34.  
  35. Robert.
  36. -- 
  37. # Robert J. Manley,  rjm@dretor.dciem.dnd.ca        #
  38. # #include <std_disclaimer.hpp>                #
  39. # NTT Systems Inc., Toronto, Ontario, CANADA        #
  40. # Long Live Lint (C++ long ints that is!)        #
  41.