This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/20315] pch problems on solaris
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Mar 2005 10:28:25 -0000
- Subject: [Bug pch/20315] pch problems on solaris
- References: <20050304115835.20315.cmarco@indra.es>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-03-17 10:28 -------
> Perhahs, I have a concept problem. If you have a c++ template in a ".h"
> file without a ".c" file and you compile it you should obtain a .o object.
No, you're forcing the compilation with -x c++. Try without -x and see what the
3.2.3 compiler says.
The bottom line is that you should never compile a header file, except if you
want to get the corresponding PCH file.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20315