karlzhao 0 Report post Posted August 17, 2016 I have got an error when I was running a test. My bench has been constructed by system C on cadence incisive 14.20. The run command is like this: irun -sysc -uvmtop "SC:top" -top dut -f list.f -DTV_PATH=\\\"/home/test0/\\\" In sc_main.cpp, there is a line like this: cout << "TV_PATH: " << TV_PATH <<endl; But when I was running, there is a compile error like this: line 12: error: expected an expression cout << "TV_PATH: " << TV_PATH <<endl; extra text after expected end of number cout << "TV_PATH: " << TV_PATH <<endl; Hi nice guys, How can I solve this problem? Thanks! Share this post Link to post Share on other sites
ralph.goergen 57 Report post Posted August 18, 2016 Hi. There is a specific option for irun to pass arguments to the C/C++ compiler. I am not sure if it is one of the following: -ccargs -Wcc -Wcxx Try irun -helpall for details. Greetings Ralph Share this post Link to post Share on other sites