This is the mail archive of the
mailing list for the Cygwin project.
Re: how come #include "*.cpp" works?
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 11 May 2006 16:38:44 -0400
- Subject: Re: how come #include "*.cpp" works?
- References: <44638BED.email@example.com>
- Reply-to: cygwin at cygwin dot com
Klaas Thoelen wrote:
I recently installed cygwin to freshen up my C/C++, what I didn't want
to do using huge programs like visual studio. It seemed to work fine
until I came across the following problem.
I have 3 files: datum.h
datumprint.cpp (which has my main in it)
In 'datum.cpp' I include 'datum.h' as I should, and in 'datumprint.cpp'
also. But this gives me compile-errors about members of my class Date
being undefined. However, if I include 'datum.cpp' in 'datumprint.cpp'
it works just fine!
This seems a little strange to me. Does anybody know what's wrong here?
This isn't a Cygwin specific problem so it's off-topic for this list.
Please find a better forum for such questions. If you feel you must
continue this discussion with a Cygwin crowd, then you can try the
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html