home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!garnet.berkeley.edu!actize
- From: actize@garnet.berkeley.edu ()
- Newsgroups: comp.unix.questions
- Subject: Help with dbx
- Date: 28 Aug 1992 16:18:33 GMT
- Organization: University of California, Berkeley
- Lines: 23
- Distribution: ba
- Message-ID: <17ljkpINN6nb@agate.berkeley.edu>
- NNTP-Posting-Host: garnet.berkeley.edu
- Summary: How to use dbx with makefiles, object files not compiled, and command
- Keywords: dbx, make
- Originator: actize@garnet.berkeley.edu
-
- Hello, below is a makefile I use:
- prog: prog.o do_f.o
- cc -o prog prog.o do_f.o mylib.o
- prog.o: prog.c BigZ.h
- cc -c prog.c
- do_f.o: do_f.c BigZ.h p.h
- cc -c do_f.c
-
- mylib.o is an object file which I don't compile. I want to use dbx with the
- above so I tried the following:
- prog: prog.o do_f.o
- cc -og prog prog.o do_f.o mylib.o
- prog.o: prog.c BigZ.h
- cc -cg prog.c
- do_f.o: do_f.c BigZ.h p.h
- cc -cg do_f.c
-
- When I do % dbx prog I recieve the message "main not compile with -g option".
- What am I doing wrong ? Also, prog takes command line arguments. How to I
- enter these ?
-
- Please mail your reply to this account,
- David Rapoport actize@garnet.berkeley.edu
-