This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


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

Re: Compile Error, take 2


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.

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