Hi Souransgshu,
this is about static members in C++.
all non-local static objects have to be initialised before they are used.
on queries about nlso, get back 1on1.
you may consult stroustrup's C++ pgmg, 3rd ed , search the index for
'static' and dig !
please get back if this doen't work.
Regards,
Shourya
[EMAIL PROTECTED]
_______________________________
Global Software Platforms, India
http://www.gemedicalsystems.com
Tel : +91 80 526 3121
ps : i can't tell u why it works on solaris.. strange.
// ----------------------------------------------------------------------
//
// Individual.h
//
// ----------------------------------------------------------------------
#include <math.h>
#include "parameter.h"
class individual : public parameter
{
protected:
static int stringLengthInd;
static int parameterNo;
float fitnessCurrent;
static float bestFit;
public:
individual();
};
/**************** add this : start ******************************/
int individual::stringLengthInd;
int individual::parameterNo;
float individual::bestFit;
/**************** add this : stop ******************************/
#-----Original Message-----
#From: Mr. Sourangshu Bhattacharya [mailto:[EMAIL PROTECTED]]
#Sent: Tuesday, November 21, 2000 1:35 PM
#To: [EMAIL PROTECTED]
#Subject: [ilug-cal] Compilation of multiple files
#
#
#Hi Sourya,
#I am sending the error messages and the files as an attachment.
#Please have a look and send your suggestions.
#Thanks and bye
#
#Sourangshu Bhattacharya
#B.E. 4th year, Civil Engg.,
#University of Roorkee.
#
--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/help/faq_list.html