guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build failures - compiling TeXmacs under guile 2.0.5


From: Ludovic Courtès
Subject: Re: Build failures - compiling TeXmacs under guile 2.0.5
Date: Fri, 25 May 2012 17:51:04 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux)

Hi!

Jan Synacek <address@hidden> skribis:

>   Guile/Glue/glue.cpp:233:31: error: cannot convert ‘SCM {aka
>   scm_unused_struct*}’ to ‘const char*’ for argument ‘1’ to 
> ‘scm_unused_struct*
>   scm_str2string(const char*)’

[...]

> glue.cpp:233 looks like this:
>     char* _r= scm_scm2str (s, &len_r); // my comment - s is declared as SCM

Indeed, scm_str2string expects a ‘const char *’, not an ‘SCM’.

But what is the definition of ‘scm_scm2str’?  It must be in TeXmacs.

>   Guile/Glue/glue.cpp:1267:46: error: invalid conversion from ‘FN {aka
>   scm_unused_struct* (*)()}’ to ‘scm_t_subr {aka void*}’ [-fpermissive]

[...]

>    scm_new_procedure ("tree?", (FN) treeP, 1, 0, 0);

Yes, FN should be defined like this:

  typedef scm_t_subr FN;

or:

  #define FN scm_t_subr

Can you check whether that solves the problem?

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]