[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiling Swarm code, need some hints
From: |
Jan Erik Moström |
Subject: |
Compiling Swarm code, need some hints |
Date: |
Fri, 30 Jul 1999 09:25:53 +0200 |
Hi
I'm trying to install Swarm 1.4.1 under LinuxPPC rel 5.
Most of the stuff seems to compile just fine but I'm having problem with the
strdup function. For example I get an error when I try to compile the following
statement in the method createItem in LinkItem
line1 = strdup([[globalTkInterp eval: "%s create line %d %d %d %d -arrow last",
[canvas getWidgetName], fx, fy, mx, my] result]);
The error message says that I'm trying to pass to many (6) parameters to strdup.
I have to admit that I'm not an expert in Objective C (I downloaded the PDF book
1 hour ago 8-) but as far as I can see the statement should return one item, not
six.
So I'm obviously missing something here and my compiler also seems to be missing
something. Could someone please tell me what?
jem
--
Jan Erik Moström Dept. of Computing
Science
mailto:address@hidden University of
Umeå
Sweden
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- Compiling Swarm code, need some hints,
Jan Erik Moström <=