Hi,

I received some mails of people who fail to compile the Mathematica plugin on Mac OS 10.7 (lion) using the way that Miguel worked for me in Albufeira ( on Mac OS 10.6 ) summarized here <http://lists.gnu.org/archive/html/texmacs-dev/2012-06/msg00004.html>by Philippe.
A typical example of what they get is :

*Compilation jean-lucterzolo$ g -o tm_mathematica.bin tm_mathematica.c getline.c -L/Applications/Mathematica\ ** **7/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/CompilerAdditions -lm -lpthread -lMLi3**
**
**tm_mathematica.c:20: error: new declaration 'int getline(char**, size_t*, FILE*)'**
**
**/usr/include/stdio.h:449: error: ambiguates old declaration 'ssize_t getline(char**, size_t*, FILE*)'**
**
**tm_mathematica.c: In function 'int main(int, char**)':**
**
**tm_mathematica.c:298: warning: format '?' expects type 'int', but argument 2 has type 'size_t'**
**
**tm_mathematica.c:298: warning: format '?' expects type 'int', but argument 2 has type 'size_t'**
**
**getline.c: In function 'int getline(char**, size_t*, FILE*)':**
**
**getline.c:142: error: new declaration 'int getline(char**, size_t*, FILE*)'**
**
**/usr/include/stdio.h:449: error: ambiguates old declaration 'ssize_t getline(char**, size_t*, FILE*)'*


Most of people on Mac 10.7 use the compiler g -mp-4.7.xx that comes when they install Xcode. Did someone try to compilate the plugin on lion, using an older version of the complier, ( like g -mp-4.5 , as suggested here <http://mathematica.stackexchange.com/questions/6506/mathlink-compile-errors> ) ?

An other reason ( found on Google ) could be that mac 10.7 introduced declaration of getline function in stdio.h, but without "static inline" modifiers.
Does someone confirm such an hypothesis or find another explanation ?


Best,
Bertrand
_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to