1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-27 16:54:15 +01:00

fixed build errors with clang in MacOsX 10.9(DP5) and xCode 5.0(DP5)

This commit is contained in:
Voha 2013-08-10 21:27:36 +03:00
parent 114e353acb
commit 6ab83e5d33
2 changed files with 5 additions and 4 deletions

View File

@ -126,7 +126,7 @@ Vector3f twostep_bias_only(const Vector3f samples[],
const float noise)
{
// \tilde{H}
Vector3f centeredSamples[n_samples];
Vector3f* centeredSamples = new Vector3f[n_samples];
// z_k
float sampleDeltaMag[n_samples];
// eq 7 and 8 applied to samples
@ -172,6 +172,7 @@ Vector3f twostep_bias_only(const Vector3f samples[],
// Note that the negative has been done twice
estimate += neg_increment;
}
delete[] centeredSamples;
return estimate;
}

View File

@ -39,9 +39,9 @@ macx {
-arch ppc \
-arch i386
LIBS += $(ARCH) \
-Wl,-syslibroot,$(SDK) \
-framework IOKit \
-framework CoreFoundation
-framework IOKit \
-framework CoreFoundation \
-Wl -syslibroot $(SDK)
}
linux-g++ {