incorporating a c++ module with NS2 tcl file
Hi everybody,
I am trying to incorporate a new C++ module with NS2 tcl file and i am getting an error of multiple mains. I have my main c++ file which runs my desired code using my .cpp file and .h files. When I tried to incorporate it with tcl file in makefile.in, i got the multiple main error in monolithic.cc file. If I dont add my main file and the incorporation takes place.But without my main file of c++, the incorporating is useless to me.
Can anyone can guide me how to fix this error. The error is shown in the attachment.
I ll be obliged!
|