Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Mathlink probs under Unix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg26262] Re: Mathlink probs under Unix
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sun, 10 Dec 2000 00:19:36 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <90kreu$r4l@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

for what is fastbinary good for in version 4 ? because there is

?Experimental`BinaryExport
"BinaryExport[channel, expr, format] exports expr to channel as binary
data \
in the specified format."

?Experimental`BinaryImport

"BinaryImport[channel, format] imports binary data from channel in the \
specified format."

The problem in fastbinary comes form very large usage strings.
It has inside some usage messages with strings of more than 1000
characters.
Many compiler don't like this. The result is, that the string is cutted
somewhere in the middle and the closing "-sign is not seen by the
compiler,
that cause the "unterminated character constant" message.

You can/must edit the source code and add C-line continuations  with \
and line feeds to the code.

Regards
  Jens


number9 wrote:
> 
> Hello, I have a Mathematica problem that perhaps someone has come across...
> 
> I have a Sun box running Solaris8 with Mathematica 4.0 installed. I am trying to
> 
> compile the "fastbinary" addon (binary.tm) for Mathematica. I have downloaded it
> 
> from mathsource and I am having some problems compiling it. (I am using
> GNU gcc for my compiler). From what I have read, I can either use mcc to
> 
> compile this (with the CC flag set to gcc) or use mprep and them compile
> 
> by hand. Here is what is going on:
> 
> Using mcc:
> 
> $ mcc -o binary
> -l/usr/local/mathematica/AddOns/MathLink/DevelopersKits/Solaris/CompilerAdditions/
> binary.tm -lnsl -lsocket
> binary.tm:468: unterminated character constant
> 
> Manually:
> 
> $ mprep binary.tm -o binary..c
> $ gcc -o binary
> -l/usr/local/mathematica/AddOns/MathLink/DevelopersKits/Solaris/CompilerAdditions/
> binary.c -lnsl -lsocket
> binary.tm:468: unterminated character constant
> 
> I can not seem to get around this. I have ftp'd the files to another
> solaris host w/Mathematica
> and I get slightly differing results (it complains with mcc about 4000
> errors and fails)
> 
> I am probably doing something idiotic, as I have not compiled anything
> in years...
> but I would like to know what it is. I am trying to read in some large
> data sets
> and I have heard that this is the way to do it (w/fast binary)
> 
> Thanks for the time.
> 
> Bob


  • Prev by Date: What makes things Listable?
  • Next by Date: Re: Mathlink probs under Unix
  • Previous by thread: Re: Mathlink probs under Unix
  • Next by thread: Re: Mathlink probs under Unix