home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / programm / 7042 < prev    next >
Encoding:
Text File  |  1992-12-15  |  2.7 KB  |  63 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!eff!news.oc.com!convex!bros
  3. From: Andrew Bros <bros@convex.COM>
  4. Subject: Re: GNU C/C++ for OS/2
  5. Originator: bros@neptune.convex.com
  6. Sender: usenet@news.eng.convex.com (news access account)
  7. Message-ID: <1992Dec15.194115.4776@news.eng.convex.com>
  8. Date: Tue, 15 Dec 1992 19:41:15 GMT
  9. Reply-To: bros@convex.COM (Andrew Bros)
  10. References: <13100003@tisdec.tis.tandy.com>
  11. Nntp-Posting-Host: neptune.convex.com
  12. Organization: Convex Computer Corporation, Richardson, TX
  13. X-Disclaimer: This message was written by a user at CONVEX Computer
  14.               Corp. The opinions expressed are those of the user and
  15.               not necessarily those of CONVEX.
  16. Lines: 45
  17.  
  18. In article <13100003@tisdec.tis.tandy.com> kevinl@tisdec.tis.tandy.com writes:
  19. >
  20. >When using GNU C/C++ for OS/2, I am unable to run the programs it
  21. >produces.
  22. >
  23. >Everything compiles and links OK when just compiling a C program,
  24. >but when I try to run it, OS/2 stops the program and says it
  25. >created a problem and cannot continue.
  26. >
  27. >When I try to link a C++ program I get unresolved externals that
  28. >look something like __?????__, where ? represents some character--
  29. >some undefined constant I think.
  30. >
  31.  
  32.   It's been a while since I used GCC/2, but this sounds like you're
  33. not running "collect" on your C++ code.  Look at the example programs'
  34. makefile for more information.
  35.  
  36. >Also, when link386 finishes, it says that the program type is not
  37. >specified "assuming WINDOWCOMPAT."  How do I specify the program type?
  38. >I tried the /PMTYPE option, but it did not help.  This is really
  39. >secondary.  I don't mind the message as long as I can get the programs
  40. >to actually _run_.
  41.  
  42.   Chances are, WINDOWCOMPAT is what you want.  As I understand it, it
  43. means that the program is able to be run in a window, as opposed to
  44. full-screen.  PMTYPE would be those that actually use PM features
  45. (i.e., buttons, windows).  I think the third example program is a PM
  46. C++ example.
  47.  
  48. >Has anyone else experienced similar problems?  Any and all help would
  49. >be appreciated.
  50. >--
  51. >Kevin K. Lewis             | My opinions may be unreasonable
  52. >kevinl@tisdec.tis.tandy.com| but such is the voice of inspiration
  53.  
  54.   I have to say that I gave up on GCC/2 in favor of EMX/GCC when EMX
  55. added a C++ compiler.  It has support for gdb, and has a built-in
  56. linker (you don't have to use LINK386).  It also seems to be better
  57. supported and more widely used than GCC/2.
  58. -- 
  59. Andrew Bros                             bros@convex.com
  60. System Integration Group                Convex Computer Corporation
  61. It does not do to leave a live dragon out of your calculations,
  62. if you live near him.  - JRR Tolkien, The Hobbit.
  63.