karlzhao Posted August 17, 2016 Report Share 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! Quote Link to comment Share on other sites More sharing options...
ralph.goergen Posted August 18, 2016 Report Share 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.