home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6259 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.9 KB  |  48 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!gmd.de!Germany.EU.net!mcsun!sun4nl!dutrun!donau!dutecaj.et.tudelft.nl!linstee
  3. From: linstee@dutecaj.et.tudelft.nl (Erik van Linstee)
  4. Subject: problem with gcc -Zomf
  5. Message-ID: <1992Nov06.194808.8252@donau.et.tudelft.nl>
  6. Sender: news@donau.et.tudelft.nl (UseNet News System)
  7. Nntp-Posting-Host: dutecaj.et.tudelft.nl
  8. Organization: Delft University of Technology, Dept. of Electrical Engineering
  9. Date: Fri, 06 Nov 1992 19:48:08 GMT
  10. Lines: 36
  11.  
  12. Today I tried to recompile several apps, using -Zomf and -Zmt
  13. to reduce executable size. However, I  got errors that are
  14. not there when compiling without those options.
  15. Specifically, p2c complains about:
  16.  
  17.         gcc -Zomf -Zmt stuff.obj out.obj comment.obj lex.obj parse.obj decl.obj
  18.  expr.obj pexpr.obj funcs.obj trans.obj dir.obj hpmods.obj citmods.obj -o p2c.ex
  19. e p2c.def
  20.  
  21. trans.obj(trans.obj) : error L2025: daylight : symbol defined more than once
  22. trans.obj(trans.obj) : error L2025: timezone : symbol defined more than once
  23. trans.obj(trans.obj) : error L2025: tzname : symbol defined more than once
  24.  
  25. There were 3 errors detected
  26.  
  27. daylight and tzname are never referenced, and timezone is used as
  28. a struct timezone tz;
  29.  
  30. zip (from info-zip) gives:
  31.  
  32.         gcc -O2 -m486 -s -o zip.exe zip.def zip.o zipfile.o zipup.o fileio.o uti
  33. l.o  globals.o deflate.o trees.o bits.o   os2zip.o   -los2 -Zmt
  34. fileio.o: Undefined symbol _errno referenced from text segment
  35.  
  36. I had this at one point wher errno.h wasn''t included and doing so
  37. fixed it, but here errno IS included so I am stumped.
  38.  
  39. If someone can point aout what the problem is I'd be grateful
  40.  
  41. Erik
  42.  
  43.  
  44. Erik van Linstee   |   Delft University of Technology   |   I'll be back ... 
  45. ----
  46.    We are god, 'cause only we can create the idea of his existence
  47.    in our holy brains...  (Yello)
  48.