swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swarm-Support] Problems with GCC 4


From: Steve Railsback
Subject: [Swarm-Support] Problems with GCC 4
Date: Fri, 13 Jan 2006 10:25:25 -0800
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)


Hi --

I know some other people have been having issues with GCC lately but I couldn't find an archived message that helped us.

Our sys admin just updated the SUSE machines to SUSE 10.0, which includes GCC 4.0.2. This version of GCC is causing us problems. It created a lot of scary warnings in compiling Swarm, but it did compile.

Then we had to make some changes in our Swarm model code to get it to compile. E.g., we had to move some import/include statements around (from the .m to the .h files).

We are still getting bizarre warnings; I include some examples below.

And we're finding that parameters we load using ObjectLoader are not all being read correctly- some are given absurd values or NaN.

Can anyone explain what's going on and/or suggest a solution?
(We tried compiling GCC 3.3.1 to revert to it and that failed for reasons we couldn't figure out.)

Thanks,

Steve Railsback & Steve Jackson


Example compiler warnings:

Trout.m: In function ‘-[Trout createEnd]’:
Trout.m:131: warning: ‘UniformDoubleDist’ may not respond to ‘+create:setGenerator:setDoubleMin:setMax:’
Trout.m:131: warning: (Messages without a matching method signature
Trout.m:131: warning: will be assumed to return ‘id’ and accept
Trout.m:131: warning: ‘...’ as arguments.)

Cell.m: In function ‘-[Cell initializeSurvProb]’:
Cell.m:1427: warning: ‘SurvMGR’ may not respond to ‘+createBegin:withHabitatObject:’
Cell.m:1427: warning: (Messages without a matching method signature
Cell.m:1427: warning: will be assumed to return ‘id’ and accept
Cell.m:1427: warning: ‘...’ as arguments.)
Cell.m:1641: warning: ‘SurvMGR’ may not respond to ‘+createBegin:withHabitatObject:’

TroutModelSwarm.m:1196: warning: multiple methods named ‘-activateIn:’ found
/usr/local/include/activity.h:565: warning: using ‘-(id <Activity>)activateIn:(id)swarmContext’ /usr/local/include/objectbase/Swarm.h:30: warning: also found ‘-(id)activateIn:(id)swarmContext’
TroutModelSwarm.m:1197: warning: multiple methods named ‘-activateIn:’ found
/usr/local/include/activity.h:565: warning: using ‘-(id <Activity>)activateIn:(id)swarmContext’ /usr/local/include/objectbase/Swarm.h:30: warning: also found ‘-(id)activateIn:(id)swarmContext’


--
Lang Railsback & Assoc.
250 California Ave.
Arcata, California 95521
(707) 822-0453


reply via email to

[Prev in Thread] Current Thread [Next in Thread]