Problem In Work lib

i was learning classes,
then i make a class,

and run on cmd

c:> vlog cl.sv

and i got some errors.

C:\Users\ps\Desktop\Everything_Temp>vlog cl.sv
QuestaSim vlog 10.0b Compiler 2011.05 May 5 2011
** Error: (vlog-19) Failed to access library ‘work’ at “work”.
No such file or directory. (errno = ENOENT)
** Error: Library work not found.
** Error: Verilog Compiler exiting

In reply to ImPSharma:

You need to refer user manual of tool for this. Compiling design with vlog command requires “work” directory to be present already.

Use

  1. vlib work
  2. vlog cl.sv
  3. vsim work.topModuleName; run -all; etc…

QuestaSim has a command “qverilog” which does all these at once. But go though run commands in user guide first to operation of each command.