home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / os2 / programm / 8008 < prev    next >
Encoding:
Text File  |  1993-01-25  |  3.9 KB  |  76 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!boulder!ucsu!spot.Colorado.EDU!kassarji
  3. From: kassarji@spot.Colorado.EDU (KASSARJIAN STEVEN J)
  4. Subject: How to link C Set/2 library to GCC/2 or gcc-emx
  5. Message-ID: <1993Jan25.183155.20860@ucsu.Colorado.EDU>
  6. Sender: news@ucsu.Colorado.EDU (USENET News System)
  7. Nntp-Posting-Host: spot.colorado.edu
  8. Organization: University of Colorado, Boulder
  9. Date: Mon, 25 Jan 1993 18:31:55 GMT
  10. Lines: 64
  11.  
  12. My data acquisition hardware comes with software libraries for use
  13. with either IBM's CSet/2 or MS's C v6.0a.  Of course I have very
  14. little money (and no CD-ROM player) so my compiler choices are limited
  15. to GCC/2 and gcc-emx.
  16.  
  17. Using GCC/2 and link386 I get unresolved external functions (the ones
  18. in the library provided by the hardware vendor, but proceeded by a
  19. single _ character).  Apparently GCC/2 and CSet/2 mangle function
  20. names differently.  Can this be averted?  How?
  21.  
  22. Using gcc-emx 0.8f (and the linking option -Zomf) the linker can not
  23. find OS2386.LIB, dde4sbs.lib, nor dde4sbm.lib.  The result is that a
  24. number of functions are not resolved by the linker: _sprintfieee,
  25. _printfieee, fileno, _DosSelToFlat, _DosFlatToSel.  I have
  26. successfully compiled and linked all of the test programs, with and
  27. without the -Zomf linking option.  I suspect that OS2386.LIB and the
  28. other two libraries are Toolkit libraries.  Can some of the emx
  29. libraries be substituted?  How?
  30.  
  31. Suggestions for getting the CSet/2 library to link with either GCC/2
  32. or (preferably) gcc-emx will be gladly received.  If this is more
  33. difficult than thunking my way to the MS C v6.0a library, I'd be happy
  34. to receive relevant advice.  (I am aware of the section on thunking in
  35. emxdev.doc, but have not read it carefully---yet.)
  36.  
  37. (As a last resort, I suppose it might be possible to "convert" the MS
  38. C library into a DLL.  But this would require 1> I borrow a friend's
  39. machine 2> I learn how to make and use my own DLLs, so I'd rather
  40. avoid this.  However, this would be easier than locating someone with
  41. a CD-ROM player, borrowing it, and waiting for the PDK to arrive.)
  42.  
  43. Best regards and thank you,
  44. Steve Kassarjian
  45. kassarji@spot.Colorado.edu
  46.  
  47. gcc-emx error message follows:
  48.  
  49. Operating System/2 Program Maintenance Utility
  50. Version 2.000.000 Mar 27 1992
  51. Copyright (C) IBM Corporation 1988-1991.
  52. Copyright (C) Microsoft Corp. 1988-1991.
  53. All rights reserved.
  54.  
  55.     gcc -Zomf -los2 display.c \dap\os2\c\ibmc\cdap32.lib generic.def
  56.  
  57. LINK386 : warning L4051: OS2386.LIB : cannot find library
  58. LINK386 : warning L4051: dde4sbs.lib : cannot find library
  59. LINK386 : warning L4051: dde4sbm.lib : cannot find library
  60.  
  61. \dap\os2\c\ibmc\cdap32.lib(H:\ENG\CLIB\SRC\IBMC\CFGDAP.C) : error L2029: '_sprintfieee' : unresolved external
  62. \dap\os2\c\ibmc\cdap32.lib(H:\ENG\CLIB\SRC\IBMC\CFGDAP.C) : error L2029: '_printfieee' : unresolved external
  63. \dap\os2\c\ibmc\cdap32.lib(H:\ENG\CLIB\SRC\IBMC\DAPIOCD.C) : error L2029: 'fileno' : unresolved external
  64. \dap\os2\c\ibmc\cdap32.lib(H:\ENG\CLIB\SRC\IBMC\DAPIO.C) : error L2029: 'fileno' : unresolved external
  65. \dap\os2\c\ibmc\cdap32.lib(H:\ENG\CLIB\SRC\IBMC\CLOCK.C) : error L2029: '_DosSelToFlat' : unresolved external
  66. \dap\os2\c\ibmc\cdap32.lib(H:\ENG\CLIB\SRC\IBMC\DAPIOCD.C) : error L2029: '_DosSelToFlat' : unresolved external
  67. \dap\os2\c\ibmc\cdap32.lib(H:\ENG\CLIB\SRC\IBMC\DAPIO.C) : error L2029: '_DosSelToFlat' : unresolved external
  68. \dap\os2\c\ibmc\cdap32.lib(H:\ENG\CLIB\SRC\IBMC\CFGDAP.C) : error L2029: '_DosSelToFlat' : unresolved external
  69. \dap\os2\c\ibmc\cdap32.lib(H:\ENG\CLIB\SRC\IBMC\CLOCK.C) : error L2029: '_DosFlatToSel' : unresolved external
  70. \dap\os2\c\ibmc\cdap32.lib(H:\ENG\CLIB\SRC\IBMC\DAPIOCD.C) : error L2029: '_DosFlatToSel' : unresolved external
  71. \dap\os2\c\ibmc\cdap32.lib(H:\ENG\CLIB\SRC\IBMC\DAPIO.C) : error L2029: '_DosFlatToSel' : unresolved external
  72. \dap\os2\c\ibmc\cdap32.lib(H:\ENG\CLIB\SRC\IBMC\CFGDAP.C) : error L2029: '_DosFlatToSel' : unresolved external
  73.  
  74.  
  75. There were 5 errors detected
  76.