Hi!

Jan Synacek <jsyna...@redhat.com> 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