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

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!uwm.edu!src.honeywell.com!mail-enters-news
  3. From: bergstro@src.honeywell.com (Pete Bergstrom)
  4. Subject: Can't get gcc2.1 to work
  5. In-Reply-To: figueroa@SPUNKY.CS.NYU.EDU's message of 18 Aug 92 15: 24:16 GMT
  6. To: comp.os.os2.programmer
  7. Message-ID: <9208181552.AA09832@data.src.honeywell.com>
  8. Posted-Date: Tue, 18 Aug 92 10: 52:57 CDT
  9. Sender: daemon@src.honeywell.com
  10. Organization: Honeywell Systems & Research Center
  11. Date: Tue, 18 Aug 1992 15:52:57 GMT
  12. Received-Date: Tue, 18 Aug 92 10: 52:59 CDT
  13. Lines: 48
  14.  
  15. figueroa@SPUNKY.CS.NYU.EDU (Samuel A. Figueroa) wrote:
  16.  
  17. >I recently downloaded the gcc2.1 binaries (the one that uses the native
  18. >OS/2 linker), and while I am able to compile the "Hello world" sample
  19. >program without any problems, I can't figure out how to link it.  The
  20. >result of the two commands:
  21. >
  22. >   GCC -c SAMPLE1.C
  23.                   ^^^
  24.  
  25. Try recompiling with sample1.c as the parameter.  My recollection is
  26. that case matters in sources and .C means c++ while .c means c.
  27.  
  28. >   LINK386 SAMPLE1;
  29. >
  30. >is as follows:
  31. >
  32. >
  33. >Operating System/2 LX (Linear Executable) Linker
  34. >Version 2.00.000 Feb 25 1992
  35. >Copyright (C) IBM Corporation 1988-1992.
  36. >Copyright (C) Microsoft Corp. 1988-1992.
  37. >All rights reserved.
  38. >
  39. >
  40. >D:\GNU\LIB\LIBC.lib(gnulib3.obj) : error L2029: '___CTOR_LIST__' : unresolved external
  41. >D:\GNU\LIB\LIBC.lib(gnulib3.obj) : error L2029: '___DTOR_LIST__' : unresolved external
  42.  
  43. The ___CTOR_LIST__ and ___DTO... are c++ thingies (sorry for being so
  44. technical :-).
  45.  
  46.  
  47. >LINK386 : warning L4071: application type not specified; assuming WINDOWCOMPAT
  48. >
  49. >There were 2 errors detected
  50. >
  51. >
  52. >Could someone please tell me what I am doing wrong?  As far as I know, I
  53. >installed gcc correctly according to the installation instructions (except
  54. >that I installed it on the D: drive instead of the C: drive; I copied the
  55. >SAMPLE1.C program to the C: drive and compiled it from there).
  56.  
  57.  
  58. Note that the specification of the file's extension to the compiler is
  59. the important thing here - it doesn't necessarily matter that the file
  60. system (FAT) doesn't keep case.
  61.  
  62. Pete
  63.