How can I use "+" operator from command line

In reply to jamalelhaitout:

You might have to evaluate the expression in your shell first

sum=`echo 1+2|bc`
vlog +define+ADD=$sum ...

Otherwise, you will have to put the define in a file, then include the file.