[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Main.m error in compling code
From: |
Andrew Boyd |
Subject: |
Main.m error in compling code |
Date: |
Mon, 19 Jul 1999 09:40:12 -0500 |
Hi Marcus,
Thanks again for helping install Swarm on the HPUX C class machine a few
weeks ago, We have been slowly progressing in writing code. However I have
come to a stubling point. The reason why I am emailing you is this is probably
a question more to do with the settings on this specific macine.
I am writing a program with a cell being the primary object. However I have
been unable to compile the code. I get this error:
kronos:/home/aboyd/cell 64 % make
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Werror -DAPPNAME=cell
-I/usr/local/include main.m
cc1obj: warnings being treated as errors
main.m: In function `main':
main.m:16: warning: `theTopLevelSwarm' might be used uninitialized in this
function
make: *** [main.o] Error 1
However the first 18 lines of the main.m file are the same as heatbugs with the
exception of importing a batch header file (see below for the 18 lines of each
code). I did not know if in the make file or somewhere else you dynamically
loaded the swarm libraries with a ld _library_path or something like that. Any
and all help would be appricated.
Andy Boyd
UT Soutwestern Medical Center
first 18 lines of main.m for heatbugs:
// Heatbugs application. Copyright (C) 1996-1999 Santa Fe Institute.
// This library is distributed without any warranty; without even the
// implied warranty of merchantability or fitness for a particular purpose.
// See file LICENSE for details and terms of copying.
#import <simtools.h> // initSwarm () and swarmGUIMode
#import <simtoolsgui.h> // GUISwarm
#import "HeatbugObserverSwarm.h"
#import "HeatbugBatchSwarm.h"
// The main() function is the top-level place where everything starts.
// For a typical Swarm simulation, in main() you create a toplevel
// Swarm, let it build and activate, and set it to running.
int
main (int argc, const char **argv)
{
id theTopLevelSwarm;
first 18 lines or so of main.m for cell:
// Written by Andrew Boyd Summer 1999
// in the program of swarm
// in objective C
#import <simtools.h> // initSwarm () and swarmGUIMode
#import <simtoolsgui.h> // GUISwarm
#import "CellObserverSwarm.h"
// The main() function is the top-level place where everything starts.
// For a typical Swarm simulation, in main() you create a toplevel
// Swarm, let it build and activate, and set it to running.
int
main (int argc, const char **argv)
{
id theTopLevelSwarm;
==================================
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.
- Main.m error in compling code,
Andrew Boyd <=