Bo Peng a écrit :
Abdel said that scons is able to recognize .C files as C++ source
files on a native Windows environment. Why it is not able to do so
with cygwin?

I did not read that email in detail, what I know is that gcc tells the
content of a .c file and make itself g++ if the file is indeed in C++.
However, at linking time, gcc and g++ may lead to different results
(stdc++.so etc).

A renaming of lyx .C files will never happen so we will have to use
the current solution, .i.e., force moc'ing, and force the use of g++
(I know, this leads to non-portability..... but this is life).

Please only reserve this treatment for cygwin as it seems to work well with mingw:

* gcc rightfully takes .C file as C++ (by contents or by extension, I am not sure). * Scons generates moc_xxx.cc file so they should be correctly identified as C++ by gcc. * linking should be done with g++ or IIRC you can also use gcc and pass "-lstdc++"

Abdel.

Reply via email to