C++: erreur 109

Fermé
narsise - 7 mai 2011 à 23:01
 narsise - 8 mai 2011 à 02:12
bonsoir,
j'ai un code sue unix avec C++ j'ai pas des erreur quand je compile mon code :
#define SC_INCLUDE_DYNAMIC_PROCESSES
#include <systemc.h>
using namespace sc_core;
using namespace std;
#include <tlm.h>
#include "my_extension.h"
#include "arbiter.h"
#include "initiator.h"
#include "target.h"
#include "Pr_router_1.h"
#include "Pr_router_2.h"
#include "Pr_router_3.h"
#include "Pr_router_4.h"
template<int Raw,int col>
class mesh_map
{
private:
int i,j,x,y,k;
int t;
public:
mesh_map()
{
i=0; j=0; k=0;
}
void remplissage()
{

int dim;
dim=Raw*col;
mesh_map tab[Raw][col];
Initiator<1>* core_L[i][j];
Target<1>* slave_L[i][j];
Pr_NOD_1* NOD1[i][j];
Pr_NOD_2* NOD2[i][j];
Pr_NOD_3* NOD3[i][j];
Pr_NOD_4* NOD4[i][j];
for(int i=0;i<Raw;i++)
{
for(int j=0;j<col;j++)
{
tab[i][j].x=i;
tab[i][j].y=j;

char IP[20];
sprintf(IP,"IP_LOCAL_%d,%d",i,j);
core_L[i][j]= new Initiator<1>(IP,i,j,Raw,col);

char slv[20];
sprintf(slv,"IP_LOCAL_%d,%d",i,j);
slave_L[i][j]= new Target<1>(slv);

char txt1[20];
sprintf(txt1,"NOD_1_IP_%d,%d",i,j);
NOD1[i][j]= new Pr_NOD_1(txt1);

char txt2[20];
sprintf(txt2,"NOD_1_IP_%d,%d",i,j);
NOD2[i][j]= new Pr_NOD_2(txt2);

char txt3[20];
sprintf(txt3,"NOD_1_IP_%d,%d",i,j);
NOD3[i][j]= new Pr_NOD_3(txt3);

char txt4[20];
sprintf(txt4,"NOD_1_IP_%d,%d",i,j);
NOD4[i][j]= new Pr_NOD_4(txt4);

switch(tab[i][j].x)
{
case 0:
{
if(tab[i][j].y==0 || tab[i][j].y==(col-1))
{
core_L[i][j]->initiator_socket.bind(NOD2[i][j]->T_local->target_socket);
cout<<"core_L["<<i<<j<<"]-->nod2["<<i<<j<<"]-->T_Local"<<endl;
NOD2[i][j]->ARB_L->initiator_socket.bind(slave_L[i][j]->target_socket);
cout<<"nod2["<<i<<j<<"]arb_L-->slave_L["<<i<<j<<"]"<<endl;


}
if(tab[i][j].y!=0 && tab[i][j].y!=(col-1))
{
core_L[i][j]->initiator_socket.bind(NOD3[i][j]->T_local->target_socket);
cout<<"core_L["<<i<<j<<"]-->nod3["<<i<<j<<"]-->T_Local"<<endl;
NOD3[i][j]->ARB_L->initiator_socket.bind(slave_L[i][j]->target_socket);
cout<<"nod3["<<i<<j<<"]arb_L-->slave_L["<<i<<j<<"]"<<endl;



}
}
break;
case (Raw-1):
{
if(tab[i][j].y==0 || tab[i][j].y==(col-1))
{
core_L[i][j]->initiator_socket.bind(NOD2[i][j]->T_local->target_socket);
cout<<"core_L["<<i<<j<<"]-->nod2["<<i<<j<<"]-->T_Local"<<endl;
NOD2[i][j]->ARB_L->initiator_socket.bind(slave_L[i][j]->target_socket);
cout<<"nod2["<<i<<j<<"]arb_L-->slave_L["<<i<<j<<"]"<<endl;

}
if(tab[i][j].y!=0 && tab[i][j].y!=(col-1))
{
core_L[i][j]->initiator_socket.bind(NOD3[i][j]->T_local->target_socket);
cout<<"core_L["<<i<<j<<"]-->nod3["<<i<<j<<"]-->T_Local"<<endl;
NOD3[i][j]->ARB_L->initiator_socket.bind(slave_L[i][j]->target_socket);
cout<<"nod3["<<i<<j<<"]arb_L-->slave_L["<<i<<j<<"]"<<endl;

}
}
break;
default :
{
if(tab[i][j].y==0 || tab[i][j].y==(col-1))
{
core_L[i][j]->initiator_socket.bind(NOD4[i][j]->T_local->target_socket);
cout<<"core_L["<<i<<j<<"]-->nod4["<<i<<j<<"]-->T_Local"<<endl;
NOD4[i][j]->ARB_L->initiator_socket.bind(slave_L[i][j]->target_socket);
cout<<"nod4["<<i<<j<<"]arb_L-->slave_L["<<i<<j<<"]"<<endl;

}
if(tab[i][j].y!=0 && tab[i][j].y!=(col-1))
{
core_L[i][j]->initiator_socket.bind(NOD1[i][j]->T_local->target_socket);
cout<<"core_L["<<i<<j<<"]-->nod1["<<i<<j<<"]-->T_Local"<<endl;
NOD1[i][j]->ARB_L->initiator_socket.bind(slave_L[i][j]->target_socket);
cout<<"nod1["<<i<<j<<"]arb_L-->slave_L["<<i<<j<<"]"<<endl;
}

}
}
}
}


}
};
fichier mapping.h
et dans le fichier main.cpp
je fait une appel
{ mesh_map a;
a.remplissage(4,4)
sc_start(1,SC_US);
return0;
}

1 réponse

svp helppppppppppppppppppppppppppppppppppppppppp
0