I get this error Type make: *** [Makefile:108: out/gcc-debug//tictoc.exe] Error 1

36 views
Skip to first unread message

Dr Fatboyslym

unread,
Jun 20, 2017, 12:08:21 AM6/20/17
to OMNeT++ Users
Hello guys,
I'm quite new to Omnetpp 5.1. I am currently at tictoc tutorial 15 and I ran the program and it gave this error
    make: *** [Makefile:108: out/gcc-debug//tictoc.exe] Error 1 tictoc C/C++ Problem
I checked my cc, h, and ned files all seems to be in line with the tutorial files.
Please Advice.

Dr Fatboyslym

unread,
Jun 24, 2017, 11:51:52 AM6/24/17
to OMNeT++ Users
Hi, I realized the error message was not complete...
the error contained a 
   vtable undefined reference to tictoc[15]
   make: ***[Makefile:108: out/gcc-debug//tictoc.exe]

I got around it in two steps.
First I didn't implement a virtual function whose prototype was declared in the class Txc15  (i.e. virtual TicTocMsg15 *generateMessage())
I guess the vtable referred a virtual table, this is a lookup table for virtual functions... For more information on virtual tables click here 
This built the project without the vtable error.

The next problem I encountered was the in ability of the simulator to find all the classes
this lead to a class not found error, Define_Module something something.
This was easily resolved with a make command.

      /c/omnetpp-5.1/Practice/tictoc$ make -j4.
That's it.
Hope this helps someone in the future..

Reply all
Reply to author
Forward
0 new messages