Mail Archives: djgpp/1997/02/02/05:02:11
Anne Compton, David/Andrew Gasson wrote:
>
> I'm learning, too, and I had the same exact problem. This is how I got
> around it (but it probably isn't the only way or the best way :-) ) First,
> create an object file by doing something like
> gcc -c a1.cc
> then change the object file into an exe by typing
> gxx -o a1.exe a1.o
> Probably, there is a way to do this in one step--perhaps somebody else
> knows? Hope this works,
Yeah, you can just run 'gxx' on the original a1.cc file like so:
gxx -o a1.exe a1.cc
You may also consider turning on extra warnings, optimizations, and
debugging info like so:
gxx -Wall -O -g -o a1.exe a1.cc
These switches can provide invaluable information for debugging
programs, for beginning and advanced users alike.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com |
| God's final message to His Creation: | http://www.cs.com/fighteer |
| "We apologize for the inconvenience."| Fight against proprietary |
| - Douglas Adams | software - support the FSF!|
---------------------------------------------------------------------
- Raw text -