home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10473 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.2 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!garnet.berkeley.edu!actize
  2. From: actize@garnet.berkeley.edu ()
  3. Newsgroups: comp.unix.questions
  4. Subject: Help with dbx
  5. Date: 28 Aug 1992 16:18:33 GMT
  6. Organization: University of California, Berkeley
  7. Lines: 23
  8. Distribution: ba
  9. Message-ID: <17ljkpINN6nb@agate.berkeley.edu>
  10. NNTP-Posting-Host: garnet.berkeley.edu
  11. Summary: How to use dbx with makefiles, object files not compiled, and command
  12. Keywords: dbx, make
  13. Originator: actize@garnet.berkeley.edu
  14.  
  15. Hello, below is a makefile I use:   
  16. prog: prog.o do_f.o    
  17.     cc -o prog prog.o do_f.o mylib.o 
  18. prog.o: prog.c  BigZ.h 
  19.     cc -c prog.c 
  20. do_f.o: do_f.c BigZ.h p.h
  21.     cc -c do_f.c
  22.  
  23. mylib.o is an object file which I don't compile.  I want to use dbx with the
  24. above so I tried the following:
  25. prog: prog.o do_f.o    
  26.     cc -og prog prog.o do_f.o mylib.o 
  27. prog.o: prog.c  BigZ.h 
  28.     cc -cg prog.c 
  29. do_f.o: do_f.c BigZ.h p.h
  30.     cc -cg do_f.c    
  31.  
  32. When I do % dbx prog I recieve the message "main not compile with -g option".
  33. What am I doing wrong ?  Also, prog takes command line arguments.  How to I
  34. enter these ?
  35.  
  36. Please mail your reply to this account,
  37. David Rapoport    actize@garnet.berkeley.edu
  38.