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

  1. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!not-for-mail
  2. From: "Stefan Breuer" <UJD9@DKAUNI2.BITNET>
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: compile files separately with emx?
  5. Date: 25 Jan 1993 20:47:45 +0100
  6. Organization: University of Karlsruhe, Germany
  7. Lines: 49
  8. Sender: usenet@nz12.rz.uni-karlsruhe.de
  9. Distribution: world
  10. Message-ID: <1k1g51INNhgl@nz12.rz.uni-karlsruhe.de>
  11.  
  12. Hello, out there!
  13.  
  14. Using emx, I am currently writing a program split into two separate
  15. source files. While compiling and linking it, I've experienced a
  16. problem:
  17.  
  18. When I compile and link it completely in one command, i.e.
  19. gcc -o Prg1.exe Prg1.cc Prg2.cc Prg1.def Prg1.map -Zomf -Zsys
  20. everything works fine. This should be proof that the program itself
  21. and environment variables are OK.
  22.  
  23. When I try to compile them separately by
  24. gcc -c Prg1.cc
  25. gcc -c Prg2.cc
  26. emxomf -s -mmain -o Prg1.obj Prg1.o
  27. emxomf -s -o Prg2.obj Prg2.o
  28. emxomfld -o Prg1 -s -lc -lgcc -los2 -lsys Prg1.obj Prg2.obj Prg1.def Prg1.map
  29. it just won't run and bleeps at me with an error SYS3175.
  30. Why???? I've been through the docs a dozen times (and yes, I converted
  31. the libs). It doesn't even give me an error message while compiling
  32. and linking, everything looks great!?!?!
  33. I also tried to connect gcc ... and emxomf... by using
  34. gcc -c Prg1.cc -Zomf
  35. but then the linker complains that the program has no starting address
  36. and when I try to start it, only the settings notebook pops up.
  37.  
  38. I'm desperate! I don't want to compile all the stuff again and again
  39. when I made only a little change in a little module!!!
  40.  
  41. Thanks for your help,
  42. Stefan
  43.  
  44.  
  45. =====================================================================
  46. Stefan Breuer                     |  ujd9@ibm3090.rz.uni-karlsruhe.de
  47. Universitaet Karlsruhe            |            oder / or
  48. University of Karlsruhe, Germany  |       ujd9@dkauni2.bitnet
  49. ---------------------------------------------------------------------
  50.                     VIGILIA  PRETIUM  LIBERTATIS
  51. =====================================================================
  52.  
  53.  
  54. =====================================================================
  55. Stefan Breuer                     |  ujd9@ibm3090.rz.uni-karlsruhe.de
  56. Universitaet Karlsruhe            |            oder / or
  57. University of Karlsruhe, Germany  |       ujd9@dkauni2.bitnet
  58. ---------------------------------------------------------------------
  59.                     VIGILIA  PRETIUM  LIBERTATIS
  60. =====================================================================
  61.