User forums > Help
Possible to not precompile headers?
Michael:
--- Quote from: Ceniza on January 19, 2006, 03:01:23 am ---It's a shame only a few C++ compilers support exported templates, and g++ isn't one of those. Including a cpp file looks ugly :(
--- End quote ---
I have this problem sometimes ago when working with templates. Instead of including the cpp file (really ugly :(), you can implement all in the .h file and include it (better IMHO :)). When I asked an expert he told me:
--- Quote ---Templates are not compilable, they have to be instantiated and the instances will be compiled (in the main source).
--- End quote ---
Anyway, I got the same problems with GCC 3.4.4 and MS Visual Studio .NET 2003.
Michael
Navigation
[0] Message Index
[*] Previous page
Go to full version