
alanpae@ilkda.com wrote:
Here is what I would do in your shoes. I would take the failing compilation command, i.e.,
Ok, If I was you I would:
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -D_SYS_REG_H -I/opt/local/include \ -g -O2 -frounding-math -W -Wall -MT C_Polyhedron.lo -MD -MP \ -MF .deps/C_Polyhedron.Tpo -c C_Polyhedron.cc -fPIC -DPIC -o .libs/C_Polyhedron.o
I would replace -c with -E and erase -g, -O2, ... and anything after C_Polyhedron.cc, redirecting the output to a file.
Then I get:
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -D_SYS_REG_H -I/opt/local/include -frounding-math -W -Wall -MT C_Polyhedron.lo -MD -MP -MF .deps/C_Polyhedron.Tpo -E C_Polyhedron.cc | grep CS
Hem, no. Grepping for CS is not going to help. What we need is to identify the header file that is defining CS. Please do that:
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -D_SYS_REG_H -I/opt/local/include -frounding-math -W -Wall -MT C_Polyhedron.lo -MD -MP -MF .deps/C_Polyhedron.Tpo -C -E C_Polyhedron.cc | C_Polyhedron.ii bzip2 C_Polyhedron.ii
And then mail me (personally, not the mailing list) C_Polyhedron.ii.bz2. Cheers,
Roberto