Date: Tue, 03 Oct 1995 06:54:52 -0500 To: Eli Zaretskii From: car AT wwa DOT com (Chris A. Rodgers) Subject: Re: can't compile c++ Cc: djgpp AT sun DOT soe DOT clarkson DOT edu At 08:11 AM 10/3/95, Eli Zaretskii wrote: > >Short answer: add `-lgpp -lm' to the end of your command line. > >Long answer: you did download the FAQ (faq102.zip), but probably didn't >try to search it. The FAQ has this entry at section 8.8: Thanks for your (and everyone else) answer. I was reading the FAQ and 8.4 discussed that an extention of .cpp would identify the source as a C++ file so that it could be compiled properly. I (wrongly) assumed that the idea of knowing it was a C++ file would carry all the way down to an executable. Is there a way to make it so that if the source is recognized as C++, that it automatically links in the lgpp library without having to pass it in on the command line (since all of my .cpp files will have cin and/or cout)? ---------------------------------------------------------------------- _ _ / |_ ._ o _ /\ |_) _ _| _ _ ._ _ Software Engineer \_| || |_> /--\o | \(_)(_|(_|(/_| _> car AT wwa DOT com _|