help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A lot of errors from a small file!


From: William Payne
Subject: Re: A lot of errors from a small file!
Date: Thu, 19 Aug 2004 23:32:30 +0200

"Thomas Maeder" <maeder@glue.ch> wrote in message 
news:m2wtzux2wf.fsf@madbox2.local...
> "William Payne" <mikas493_no_spam@student.liu.se> writes:
>
>> Hello, when I try to compile a small c++ source file I get an error 
>> output
>> that is more than two megabytes in size? I am compiling
>> with -W -Wall -ansi -pedantic and I am using G++ 3.4.1. Obviously my code
>> has problems, but is the sheer size of the error log hinting at a problem
>> with g++ as well?
>
> Please reduce the program to, say, 50 lines and post them along with the
> first couple of error messages.

Turns out it was a silly error indeed. The file I was working on was named 
foo.cpp. It had a corresponding header foo.hpp. In foo.cpp I included 
foo.cpp when I meant foo.hpp. So I guess you can expect things to get really 
crazy if you make a silly mistake like that.

/ WP 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]