Use the output of a module inside a class (including task (generator)

In reply to saketa:

I was assuming the error appears during compilation. The vsim command needs to know where to look for the linked C-object (.dll for windows, .so for Linux). There is the switch -sv_lib. You have to point to the right place.