Well folks, good news and bad news...
![undecided :|](https://forums.qhimm.com/Smileys/akyhne/undecided.gif)
The good news that now I'm able to compile q-gears under cygwin, thanks G!
![wink :wink:](https://forums.qhimm.com/Smileys/akyhne/wink.gif)
So, here comes the bad news...
I'm not able to complete the compiling. The follow error is ocurring:
Math.cpp: In function `float point_elevation(const Vector3&, const Vector3&, const Vector3&, const Vector3&)':
Math.cpp:14: error: expected primary-expression before "float"
Math.cpp:14: error: expected `;' before "float"
Math.cpp:15: error: expected primary-expression before "float"
Math.cpp:15: error: expected `;' before "float"
Math.cpp: In function `bool find_point_on_plane(Vector3&, const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Vector3&)':
Math.cpp:99: error: expected primary-expression before "float"
Math.cpp:99: error: expected `;' before "float"
Math.cpp:100: error: expected primary-expression before "float"
Math.cpp:100: error: expected `;' before "float"
make[4]: *** [libfield_la-Math.lo] Error 1
make[4]: Leaving directory `/home/micaelis/progs/q-gears/trunk/src/ffvii/field'
And to start to compile this module I was forced to copy the Math.h to the folder.
In the code, the include is referencing to the default library, like "#include <Math.h>",
but seems the make can't find it... I even change the Makefile in the folder to add
the -I/usr/include, but the make can't find yet... Is a weird error and if anybody
knows what is happen, let me know.
This warning is occurring frequently during the compiling:
g++ -DHAVE_CONFIG_H -I/usr/include -I. -I../../.. -I../../../src -I/usr/include/libxml2 -O3 -g -O2 -Wall -W -fpermissive -pipe -MT libfield_la-Gateway.lo -MD -
MP -MF .deps/libfield_la-Gateway.Tpo -c Gateway.cpp -o libfield_la-Gateway.o >/dev/null 2>&1
mv -f .deps/libfield_la-Gateway.Tpo .deps/libfield_la-Gateway.Plo
/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I/usr/include -I. -I../../.. -I../../../src -I/usr/include/libxml2 -O3 -g -O2 -Wal
l -W -fpermissive -pipe -MT libfield_la-Line.lo -MD -MP -MF .deps/libfield_la-Line.Tpo -c -o libfield_la-Line.lo `test -f 'Line.cpp' || echo './'`Line.cpp
g++ -DHAVE_CONFIG_H -I/usr/include -I. -I../../.. -I../../../src -I/usr/include/libxml2 -O3 -g -O2 -Wall -W -fpermissive -pipe -MT libfield_la-Line.lo -MD -MP
-MF .deps/libfield_la-Line.Tpo -c Line.cpp -DDLL_EXPORT -DPIC -o .libs/libfield_la-Line.o
In file included from ../../common/display/actor/Actor.h:11,
from FieldModule.h:10,
from Line.cpp:6:
../../common/display/actor/../../input/InputFilter.h: In constructor `InputEvent::InputEvent()':
../../common/display/actor/../../input/InputFilter.h:46: warning: `InputEvent::button' will be initialized after
../../common/display/actor/../../input/InputFilter.h:45: warning: `InputEventType InputEvent::type'
../../common/display/actor/../../input/InputFilter.h:36: warning: when initialized here
../../common/display/actor/../../input/InputFilter.h: In constructor `InputEvent::InputEvent(Button, InputEventType)':
../../common/display/actor/../../input/InputFilter.h:46: warning: `InputEvent::button' will be initialized after
../../common/display/actor/../../input/InputFilter.h:45: warning: `InputEventType InputEvent::type'
../../common/display/actor/../../input/InputFilter.h:42: warning: when initialized here
In file included from ObjectManager.h:14,
from DatFile.h:13,
from FieldModule.h:13,
from Line.cpp:6:
It's happen to show in several classes...
I've read in a cygwin-devel forum that the "error: expected primary-expression before "float"",
could be caused by a bug in the gcc 3.4.4 and under, but was fixed in the 3.4.5...
The Linux folks compiled the program with which gcc version? Nobody stumbled with
this error before?
![huh :?](https://forums.qhimm.com/Smileys/akyhne/huh.gif)
Well, until the gcc version of cygwin changes from 3.4.4 to 3.4.5 I think
it's not possible to have a cygwin binary of q-gears...
![rolleyes :roll:](https://forums.qhimm.com/Smileys/akyhne/rolleyes.gif)
Anyway I'll keep trying and I'll post the results. If anybody has any clues about the
problems above, let me know...
Cheers,