Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 1999 10:40:53 -0500
From:      "Marty Leisner" <leisner@rochester.rr.com>
To:        Ken Marx <kmarx@bigshed.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: mkid/id-utils w/ c++ files 
Message-ID:  <199901151540.KAA01481@rochester.rr.com>
In-Reply-To: Your message of "Fri, 08 Jan 1999 11:41:33 PST." <36965F6D.4FB37167@bigshed.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi,
> 
> my mkid doesn't seem to know about c++?
> 
> When I run mkid on files with c++ extensions (.cc, .cpp, etc.)
> it claims: 'mkid: nothing to do' and produces no ID file.
> 
> If I change the language for these extensions in the
> /usr/local/share/id-lang.map file from "C++" to "C" it then works.
> 
> Is there something I can do to enable C++ with this?
> 
> I'm running: mkid - GNU id-utils 3.2 on freeBSD 2.2.6.
> 
> Thanks,
> k.
> 
> -- 
> Ken Marx, kmarx@bigshed.com
> I feel it is too risky not to forecast process and stop beating around the bush 
> on the pot of opportunity.
> 		- http://cgi.bigshed.com/~kmarx/cgi-bin/speak.cgi
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

This is a common problem...I think this will fix it (in scanners.c):

@@ -69,6 +69,7 @@
 struct language languages_0[] =
 {
   { "C", parse_args_c, get_token_c, help_me_c },
+  { "C++", parse_args_c, get_token_c, help_me_c },
   { "asm", parse_args_asm, get_token_asm, help_me_asm },
   { "text", parse_args_text, get_token_text, help_me_text },
 };


Marty Leisner





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901151540.KAA01481>