yast77
Joined: 19 Mar 2010 Posts: 1
|
Need Help !! nsga source code implement into ccs c compiler |
Posted: Fri Mar 19, 2010 3:40 am |
|
|
Hi, anyone that have the modified source code of http://www.iitk.ac.in/kangal/codes/nsga/nsgaorig.tar that can be compiled and used in ccs c compiler? Because I got this error "expecting a declaration" from the following code.
Code: |
struct indiv
{
unsigned *chrom; /* chrosome string */
float fitness[MAXOBJ]; /* fitness functions */
float x[MAXVECSIZE]; /* variables */
float dumfitness; /* modified objective */
int flag; /* flag as follows
0 => untouched
1 => dominated
2 => non-dominated
3 => exhausted */
int front; /* Front of the indiv. */
int parent1; /* two parents */
int parent2;
}; // <-- error here
typedef struct indiv INDIVIDUAL ;
typedef INDIVIDUAL *POPULATION ; /* array of individuals */
|
Any help is appreciated ^^ |
|