This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug pch/20315] pch problems on solaris


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]