gjtorikian / mtex2MML

A Bison grammar to convert TeX math into MathML.
24 stars 14 forks source link

Build error: implicit declaration of function 'mtex2MML_free_string' is invalid in C99 #68

Open cj1128 opened 4 years ago

cj1128 commented 4 years ago

I got this error when building:

../../../../ext/mathematical/mathematical.c:104:5: error: implicit declaration
      of function 'mtex2MML_free_string' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
    mtex2MML_free_string(mathml);
    ^
../../../../ext/mathematical/mathematical.c:104:5: note: did you mean
      'itex2MML_free_string'?
../../../../ext/mathematical/lasem_overrides.h:12:6: note:
      'itex2MML_free_string' declared here
void itex2MML_free_string (char * str);
     ^
kvark commented 3 years ago

This basically makes the gem unavailable on macOS. Unless you have a workaround.

gjtorikian commented 3 years ago

Hi! I’m working on a dissertation at the moment so I don’t have too much free time, but I will look at this when I get a chance.