From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Did someone write LIBRARY in DJGPP ? Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <8q8ld8$iik$1 AT info DOT cyf-kr DOT edu DOT pl> <000a01c0228d$8de98b40$c040183e AT vchs> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 18 X-Trace: /wLwTbTsOK+sYrlmTSiJdwdra7bJFOTiVZhObSv3kLwYG+gwrY25mEqm/jP5xUBDLccpfLOhDgJC!xzy76HXt27MRiBwBSmVDI2mDalueamEcWYwdZxRqxhUyjNyMhx+Ckf5qXc7G19y2FMhni5AuiM9a!11PtLA== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Wed, 20 Sep 2000 17:30:22 GMT Distribution: world Date: Wed, 20 Sep 2000 17:30:22 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 20 Sep 2000 01:01:33 +0200, "kredba" wrote: >1) gcc -c -g -O2 lib.cc -o lib.o ^^^^ >2) gcc -s -O2 prg.cc -o prg lib.o -lstdcxx -lm ^^^^ Why add debugging info if you're just going to be STRIPping it away when you link? --