home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / os2 / programm / 7983 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  2.5 KB

  1. Path: sparky!uunet!usc!rpi!batcomputer!cornell!uw-beaver!cs.ubc.ca!unixg.ubc.ca!ochealth
  2. From: ochealth@unixg.ubc.ca (ochealth)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: Problem with GCC 0.8f
  5. Date: 25 Jan 1993 04:53:31 GMT
  6. Organization: University of British Columbia, Vancouver, B.C., Canada
  7. Lines: 60
  8. Message-ID: <1jvrobINNigu@skeena.ucs.ubc.ca>
  9. References: <1jv5rlINNbg8@access.usask.ca>
  10. NNTP-Posting-Host: unixg.ubc.ca
  11. Keywords: GCC
  12.  
  13. In article <1jv5rlINNbg8@access.usask.ca> lowey@jester.usask.ca (CrazyMan) writes:
  14. :Hi,
  15. :
  16. :I'm using the EMX 0.8f gcc compiler.  I'm currently porting a program
  17. :that converts ZyXEL modem voice file formats to and from Soundblaster
  18. :VOC formats. The program is converted, but I want to distribute it as
  19. :a stand alone program, not requiring the EMX*.DLL files.  (When it is
  20. :done, I'll put it on the FTP site listed below with the MS-DOS versin
  21. :that is already there)
  22.  
  23. please don't. OS/2 uses DLLs for a reason. Static linking just creates a
  24. lot of redundant, disk hogging code, that can never have bugs in the 
  25. library fixed without distributing the whole program again.
  26.  
  27. Anybody using free software should have the EMX DLLs anyway.
  28. :
  29. :When I say:
  30. :
  31. :gcc -o vcnvt.exe vcnvt.c
  32. :
  33. :everything works fine.  However, when I add the -Zomf -Zsys options, I 
  34. :get the following:
  35. :
  36. :======================================================================
  37. :[C:\kevin\src\zyxel]gcc -o vcnvt.exe vcnvt.c  -Zomf -Zsys
  38. :
  39. :c:\emx\lib\crt0.obj(crt0.obj) : error L2029: '_entry2' : unresolved external
  40. :
  41. :LINK386 : warning L4071: application type not specified; assuming WINDOWCOMPAT
  42. :
  43. :There was 1 error detected
  44. :======================================================================
  45. :
  46. :I tried using "emxomf" to convert the crt0.o file to a new crt0.obj, but I
  47. :don't think I was using it correctly.  I tried:
  48. :
  49. :emxomf -o crt0.obj crt0.o
  50. :
  51. :I read something in the docs about the "crt0" requires the -m option.
  52. :Unfortunately, the -m option requires a symbol.  I tried using
  53. :_entry2, but that didn't solve the problem.
  54. :
  55. :Does anyone have any suggestions?
  56.  
  57. RTFM!!!!
  58.  
  59.  
  60. run omf??.cmd in the lib directory to create the .lib files. EMX f doesn't
  61. ship with .lib files, because they are just converted from the .a libraries.
  62. :
  63. :Thanks
  64. :- Kevin Lowey (Lowey@Sask.USask.CA)
  65. :>>>>> Anonymous FTP to FTP.USASK.CA for DOS, OS/2, and Windows programs <<<<<
  66.  
  67.  
  68. -- 
  69. ______________________________________________________________________________
  70. ochealth@unixg.ubc.ca         
  71.                             
  72.                                                       
  73.