Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: Echelon9 on October 02, 2008, 01:34:59 am

Title: Commit 4850 breaks OS X (and likely non-windows) compilation
Post by: Echelon9 on October 02, 2008, 01:34:59 am
Hi,

The commit r4850 by Swifty to statically link TrackIR support in breaks compilation on OS X, and I'd assume Linux too.

In trunk/fs2_open/code/io/trackir.cpp
Code: [Select]
int TrackIR_Query()
{
    return 1;        // Fine.
}
float TrackIR_GetYaw()
{
    return 0.0f         // Error: expected ';' before '}' token
}
float TrackIR_GetYawRaw()
{
    return 0.0f        // Error: expected ';' before '}' token
}
float TrackIR_GetPitch()
{
    return 0.0f        // Error: expected ';' before '}' token
}
...
Title: Re: Commit 4850 breaks OS X (and likely non-windows) compilation
Post by: Swifty on October 02, 2008, 01:50:25 am
I fixed it. Update and try compiling it again.
Title: Re: Commit 4850 breaks OS X (and likely non-windows) compilation
Post by: Echelon9 on October 02, 2008, 02:44:17 am
Yes, fixed. Thanks for the quick turn-around time.
Title: Re: Commit 4850 breaks OS X (and likely non-windows) compilation
Post by: chief1983 on October 02, 2008, 10:15:22 am
*tsk tsk* Missing semicolons...what are we gonna do about that.