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]

Compile Error, take 2


Hello all,

I'm very sorry, but I send the wrong error message in my last email.
So, to repeat, I'm writing some C code that uses guile scheme as it's
scripting language.  Everything was working fine, but I wanted to use
guile-gtk so I upgraded from guile 1.3 to 1.3.4 so I could have
libguile.so.6.

Now when I compile I get the following error message:

g++ -g -Wall -Wno-return-type  -DSWIG_GLOBAL   -c sotd.c -o sotd.o
/usr/include/libguile/__scm.h:422: previous declaration of `SCM scm_call_generic_0(SCM)' with C++ linkage
In file included from /usr/include/libguile.h:97,
                 from /usr/include/guile/gh.h:52,
                 from sotd.c:57:
/usr/include/libguile/objects.h:219: conflicts with new declaration with C linkage
/usr/include/libguile/__scm.h:449: previous declaration of `SCM scm_apply_generic(SCM, SCM)' with C++ linkage
/usr/include/libguile/objects.h:225: conflicts with new declaration with C linkage

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.  Any ideas?  Has anyone encountered this?
I need to use g++ because I'm using STL in my C code.

Thanks in advance,
Tal
tal@cs.utexas.edu








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