Our C++ files use an extension of .cc rather than .cpp
or .cxx but GC does not know how to handle them.
(1) GC should at least warn the user that the extension
is unrecognised. I wasted a lot of time trying to
figure out why GC was doing anything!
(2) Add .cc to the list of supported extensions.
(3) Provide an option, or similar, to force GC to
interpret a certain file (or certain extension) as
being written in a specified language.
Logged In: YES
user_id=365473
I got this to work for me by modifying in.c to address issue
(2) above:
diff -u vendor/Sources//in.c trunk/Sources//in.c
--- vendor/Sources//in.c Thu Mar 17 11:08:35 2005
+++ trunk/Sources//in.c Thu Mar 17 11:08:23 2005
@@ -369,6 +369,7 @@
(
(GC_STRICMP(psz_Temp, "c"))
&& (GC_STRICMP(psz_Temp, "cpp"))
+ && (GC_STRICMP(psz_Temp, "cc"))
&& (GC_STRICMP(psz_Temp, "cxx"))
&& (GC_STRICMP(psz_Temp, "h"))
&& (GC_STRICMP(psz_Temp, "hxx"))