This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Compile Error, take 2
- To: Tal Tversky <tal at cs dot utexas dot edu>
- Subject: Re: Compile Error, take 2
- From: Michael Livshin <mlivshin at bigfoot dot com>
- Date: 10 Apr 2000 18:27:11 +0200
- Cc: guile at sourceware dot cygnus dot com
- Organization: who? me?
- References: <14577.64941.187870.127469@wensleydale.cs.utexas.edu>
Tal Tversky <tal@cs.utexas.edu> writes:
> For some reason g++ doesn't like seeing two extern declarations for
> the same function (one in __scm.h, the other in objects.h), even
> though they are identical.
it doesn't sound like g++ does the right thing here. but then, I
always thought that declaring functions with an explicit `extern' was
kind of silly and visually misleading (as you are not saying "this
piece of data lives elsewere", you are saying "this function has this
signature").
perhaps you could try to remove the `extern' from the declarations and
see if it helps? if it does, I'll make the change in the repository.
> I need to use g++ because I'm using STL in my C code.
you cannot use STL in C. dispensation not granted ;).
hth,
--mike
--
Incrementally extended heuristic algorithms tend inexorably toward the
incomprehensible.