[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems on compiling swarm on Codebuilder (PPC)
From: |
Theodore C. Belding |
Subject: |
Re: problems on compiling swarm on Codebuilder (PPC) |
Date: |
Tue, 11 Nov 1997 11:22:22 -0500 |
Alex-
How are you including your .h files? You need to either use
#import filename.h
or
#ifndef FILENAME_H
#include filename.h
#define FILENAME_H
If you are just using
#include filename.h
that may give you problems.
-Ted
At 10:35 AM +0100 11/11/97, Alessandro Perrone wrote:
>Hi all
> I'd like to tell you my experience with Codebuilder, a new product
>written from Tenon which is a Unix Environment with all gnu tools inside
>(obj-c too).
>I'd like to ask you a little info.
>I am using Codebuilder to compile swarm on my quadra 950 with ApplePPC card.
>Even if it sound strange all compiled well (tcl, tk, blt, libtcl, xpm) and
>Swarm too.
>But, here it is the strange, when I try to compile every application who
>use initswarm, here it is the result
>
> List.m(.data+0): multiple definition of `_List.rw_m (.data)'
> List.m(.data+0): first seen here
>
>Even if with simpleCBug of tutorial (only a main.m) here it is the result
>
>>cc -c -g -Wall -Wno-import -I/hfs/tesi/swarm/include
>>-I/hfs/tesi/libtclobjc-1.1
>>b6 -I/usr/local/include -I/usr/local/include -I/usr/local/include
>>-I/usr/X11R6/include -I/usr/include main.m
>>gcc -g -L/hfs/tesi/swarm/lib -L/usr/X11R6/lib -L/usr/lib -L/usr/local/lib
>>-L/hfs/tesi/libtclobjc-1.1b6 -o bug main.o -lanalysis -lsimtools
>>-ltkobjc -lactivity -lrandom -lswarmobject -lcollections -ldefobj
>>-ltclobjc -lBLT -ltk4.1 -ltcl7.5 -lXpm -lobjc -lX11 -lm
>>List.m(.data+0): multiple definition of `_List.rw_m (.data)'
>>List.m(.data+0): first seen here
>
>Any hints?
>I wrote to tenon, and they sayd that "it is a simple link error. Be sure
>you use #ifndef blocks to wrap your declarations. this way even if you
>include something twice, you will not get this error." Could anyone help
>me?
>
>I have tried to compile other source in objective-c, and every works well.
>Waiting for your prompt answer, best regards.
> ALEX
>
> ,,,,
> /'^'\
> ( o o )
>-oOOO--(_)--OOOo---------------------------------------------------
> .oooO Alessandro Perrone - E-Mail address@hidden
> ( ) Oooo. Home Page: http://venus.unive.it/~alex
>---\ (----( )----------------------------------------------------
> \_) ) /
> (_/
>
>
>
> ==================================
> 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.
> ==================================
--
Ted Belding address@hidden
University of Michigan Program for the Study of Complex Systems
http://www-personal.umich.edu/~streak/
==================================
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.
==================================