May 27, 2021 at 2:53am UTC
Hi, I'm working on a project dealing with Binary-Decision-Diagram(BDD) using CUDD, which is a package for BDD manipulation.
And there's a simple question, which is what is the command to compile the .cpp file in the linux server. The one for .c file is as below:
gcc -I $CUDD/cudd/ -I $CUDD/util/ -I $CUDD <file>.c $CUDD/cudd/.libs/libcudd.a -lm -O3 –o Lab3
Which,
$CUDD = /…/cudd-3.0.0 (address)
But Idk the one for .cpp file. Is it just modifying the beginning gcc to g++ that simple?
It's a bit hurry. Thx in advance!
Last edited on May 27, 2021 at 2:54am UTC
May 27, 2021 at 3:44am UTC
Yes, just replace gcc with g++.
May 27, 2021 at 3:50am UTC
@salem c
Hi, I've tried that already but getting some errors though.
g++: error: -lm: No such file or directory
g++: error: -o: No such file or directory
g++: error: Lab3: No such file or directory
Last edited on May 27, 2021 at 3:51am UTC
May 27, 2021 at 4:14am UTC
Well the –o in your first post looks like some HTML munged look-alike to a real minus sign.
As in -o
May 27, 2021 at 4:41am UTC
Oh, right! That's the problem!
Thx a lot!