Re: Mathlink problem with binary.tm in Linux
- To: mathgroup at smc.vnet.net
- Subject: [mg39771] Re: Mathlink problem with binary.tm in Linux
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 7 Mar 2003 03:30:09 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <b46u8g$92e$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, the binary.tm file has very long lines. Several compilers (including gcc) restrict the length of the input line and you have to insert line breaks into the source file, otherwise the truncated lines produce parsing errors Regards Jens Venkat Krishnaswamy wrote: > > Hi All, > > I am trying to compile binary.tm to use it with Mathematica 4.2 that is running in > Redhat Linux 8.0. I 'prepared' the binary.tm using mprep to get binary.tm.c > and when I try to compile binary.tm.c the compiler comes up with a thousand > and odd parsing errors that goes like the following... > > gcc -ansi -c -I > /usr/local/Wolfram/Mathematica/4.2/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions/ > binary.tm.c > ...... > /binary.tm:192: parse error before "ByteConversion" > ./binary.tm:310: stray '$' in program > ./binary.tm:310: `True' undeclared here (not in a function) > ./binary.tm:310: warning: data definition has no type or storage class > ./binary.tm:311: stray '$' in program > ./binary.tm:311: `True' undeclared here (not in a function) > ./binary.tm:311: warning: data definition has no type or storage class > ./binary.tm:311: parse error before "for" > ./binary.tm:314: stray '$' in program > ./binary.tm:318: stray '$' in program > ./binary.tm:324: stray '$' in prog > > and so on........... > > I am using the latest MDLK from wolfram website (libc6 version - any > specifics here?) > > I am using the binary.tm that I got from > http://library.wolfram.com/database/MathSource/354/ > > I am using the gcc version 3.2 > > I would appreciate if anyone can help me with this. Thanks in advance. The > Experimental.m package with Mathematica 4.2 has a fast binary read but that appears > to be slower than the function in the binary package (when i was running it > in windows). > > -Venkat.