gcc error
Giorgos Keramidas
keramida at ceid.upatras.gr
Sun Mar 27 00:36:50 PST 2005
On 2005-03-27 10:21, Dick Hoogendijk <dick at nagual.st> wrote:
>On 26 Mar Kris Kennaway wrote:
>>On Sat, Mar 26, 2005 at 04:24:42PM +0100, Dick Hoogendijk wrote:
>>> So, what is this and waht can be done about it? I guess it's a gcc
>>> compiler error. I deleted all gcc packages that were installed (back
>>> to the systems's version - FreeBSD-4.11R). It did not help.
>>>
>>> The error I get:
>>>
>>> "c++: cannot specify -o with -c or -S and multiple compilations"
>>> The same error happens sometimes with 'cc'
>>
>> Show us the full error, not a context-free excerpt.
>
> Sure I want to do that. But I'm bit of an novice. How can I grep those
> errors on screen to a file?
Before you start building anything, run script(1):
$ script
Script started, output file is typescript
$ gcc -o hello hello.c
$ exit
Script done, output file is typescript
Then you will have a file called 'typescript' in the current working
directory, which will contain everything you typed or saw on your terminal
while you were within the 'scripted shell'. Edit this file and copy
whatever parts seem useful :-)
- Giorgos
More information about the freebsd-questions
mailing list