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

  1. Path: sparky!uunet!olivea!hal.com!decwrl!access.usask.ca!jester.usask.ca!lowey
  2. From: lowey@jester.usask.ca (CrazyMan)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Problem with GCC 0.8f
  5. Summary: Can't compile native OS/2 - LINK386 error
  6. Keywords: GCC
  7. Message-ID: <1jv5rlINNbg8@access.usask.ca>
  8. Date: 24 Jan 93 22:39:49 GMT
  9. Organization: University of Saskatchewan
  10. Lines: 40
  11. NNTP-Posting-Host: jester.usask.ca
  12. X-Newsreader: TIN [version 1.1 PL7]
  13.  
  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. When I say:
  24.  
  25. gcc -o vcnvt.exe vcnvt.c
  26.  
  27. everything works fine.  However, when I add the -Zomf -Zsys options, I 
  28. get the following:
  29.  
  30. ======================================================================
  31. [C:\kevin\src\zyxel]gcc -o vcnvt.exe vcnvt.c  -Zomf -Zsys
  32.  
  33. c:\emx\lib\crt0.obj(crt0.obj) : error L2029: '_entry2' : unresolved external
  34.  
  35. LINK386 : warning L4071: application type not specified; assuming WINDOWCOMPAT
  36.  
  37. There was 1 error detected
  38. ======================================================================
  39.  
  40. I tried using "emxomf" to convert the crt0.o file to a new crt0.obj, but I
  41. don't think I was using it correctly.  I tried:
  42.  
  43. emxomf -o crt0.obj crt0.o
  44.  
  45. I read something in the docs about the "crt0" requires the -m option.
  46. Unfortunately, the -m option requires a symbol.  I tried using
  47. _entry2, but that didn't solve the problem.
  48.  
  49. Does anyone have any suggestions?
  50.  
  51. Thanks
  52. - Kevin Lowey (Lowey@Sask.USask.CA)
  53. >>>>> Anonymous FTP to FTP.USASK.CA for DOS, OS/2, and Windows programs <<<<<
  54.