|
From: | BB |
Subject: | [Texmacs-dev] Mathematica Plugin & Mac OS 10.7 |
Date: | Thu, 22 Aug 2013 15:08:22 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
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 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 ) ? 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 |
[Prev in Thread] | Current Thread | [Next in Thread] |