c++ - SystemC MAC : Undefined symbols for architecture x86_64 -


i'm trying run systemc programs on mac, base programs compiling , running fine. following errors:

undefined symbols architecture x86_64:   "pkttrans::pkttrans()", referenced from:       producer::processgen() in producer-110ef6.o ld: symbol(s) not found architecture x86_64 

functions:

void producer::processgen() {     int x;     x = rand() % 50 + 1;     cout<<clk<<":gen random x="<<x<<endl;     pkttrans* intrans=new pkttrans;     intrans->setaddr(rand() %50 +1);     intrans->setid(transid);     intrans->setopc(1);     incoming.push_back(intrans);     transid++; }  pkttrans::pkttrans() {     id = -1;     addr = 0;     opc=0; } 

i added systemc header file , changed int main() int sc_main(). programs compile , run fine without systemc. ideas on why these errors occurring?

thanks


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo