j****i 发帖数: 305 | 1 When I compile using g++, it does not report any errors, but no target is
generated either.
When I ran the following command in my Mac, it compiles and everything is
good:
g++ -O3 -L/usr/local/lib -L/gpfs/fs4/home/lcgonzal/boost/lib -L../../../ -I
../../.. -I/gpfs/fs4/home/lcgonzal/boost/include test_ctf.cpp -o bin/test_
ctf -lgonzal
But the same command does not generate the bin/test_ctf executable at all in
linux.
When I put the -v option like this:
g++ -O3 -L/usr/local/lib -L/gpfs/fs4/home | r****t 发帖数: 10904 | 2 This line says your problem:
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../..
/../../x86_64-redhat-linux/include"
and it tried to look for your include files and failed. |
|