arktools / jsbsim

JSBSim Advanced Trimming Branch
http://arktools.github.com/jsbsim/
GNU Lesser General Public License v3.0
43 stars 58 forks source link

Compile errors under MinGW and MSVC2008 and the patchs #3

Closed matthewzhenggong closed 12 years ago

matthewzhenggong commented 12 years ago

Change the name of library jsbsim to avoid names conflict because of ignorecase filename on MS Windows. Link library libwsock32.a in MinGW platform. Avoid linking libm.a in MSVC platform. Define _USE_MATH_DEFINES to enable math constants in MSVC platform.

Return the missing reference "out" in operator functions in src/math/FGStateSpace.cpp.

Patchs are tested in both MinGW and MSVC2008. And test with the command "bin\JSBSim.exe --root=share\jsbsim --script=scripts/737_cruise_steady_turn_simplex.xml". MSVC2008's app works well.

But MinGW's app fails when outputing the linearization matrix ABCD.