Added missing export keywords

This commit is contained in:
Lorenz Meier
2013-12-23 10:37:52 +01:00
parent a53af7e7b3
commit c9f785ff7f
2 changed files with 12 additions and 11 deletions
+5 -5
View File
@@ -49,13 +49,13 @@ namespace math
{ {
template <unsigned int M, unsigned int N> template <unsigned int M, unsigned int N>
class Matrix; class __EXPORT Matrix;
class Quaternion; class __EXPORT Quaternion;
// MxN matrix with float elements // MxN matrix with float elements
template <unsigned int M, unsigned int N> template <unsigned int M, unsigned int N>
class MatrixBase { class __EXPORT MatrixBase {
public: public:
/** /**
* matrix data[row][col] * matrix data[row][col]
@@ -259,7 +259,7 @@ public:
}; };
template <unsigned int M, unsigned int N> template <unsigned int M, unsigned int N>
class Matrix : public MatrixBase<M, N> { class __EXPORT Matrix : public MatrixBase<M, N> {
public: public:
using MatrixBase<M, N>::operator *; using MatrixBase<M, N>::operator *;
@@ -292,7 +292,7 @@ public:
namespace math { namespace math {
template <> template <>
class Matrix<3, 3> : public MatrixBase<3, 3> { class __EXPORT Matrix<3, 3> : public MatrixBase<3, 3> {
public: public:
using MatrixBase<3, 3>::operator *; using MatrixBase<3, 3>::operator *;
+7 -6
View File
@@ -42,6 +42,7 @@
#ifndef VECTOR_HPP #ifndef VECTOR_HPP
#define VECTOR_HPP #define VECTOR_HPP
#include <visibility.h>
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
#include "../CMSIS/Include/arm_math.h" #include "../CMSIS/Include/arm_math.h"
@@ -50,10 +51,10 @@ namespace math
{ {
template <unsigned int N> template <unsigned int N>
class Vector; class __EXPORT Vector;
template <unsigned int N> template <unsigned int N>
class VectorBase { class __EXPORT VectorBase {
public: public:
/** /**
* vector data * vector data
@@ -267,7 +268,7 @@ public:
}; };
template <unsigned int N> template <unsigned int N>
class Vector : public VectorBase<N> { class __EXPORT Vector : public VectorBase<N> {
public: public:
using VectorBase<N>::operator *; using VectorBase<N>::operator *;
@@ -294,7 +295,7 @@ public:
}; };
template <> template <>
class Vector<2> : public VectorBase<2> { class __EXPORT Vector<2> : public VectorBase<2> {
public: public:
Vector() : VectorBase<2>() { Vector() : VectorBase<2>() {
} }
@@ -334,7 +335,7 @@ public:
}; };
template <> template <>
class Vector<3> : public VectorBase<3> { class __EXPORT Vector<3> : public VectorBase<3> {
public: public:
Vector() { Vector() {
arm_col = {3, 1, &this->data[0]}; arm_col = {3, 1, &this->data[0]};
@@ -375,7 +376,7 @@ public:
}; };
template <> template <>
class Vector<4> : public VectorBase<4> { class __EXPORT Vector<4> : public VectorBase<4> {
public: public:
Vector() : VectorBase() {} Vector() : VectorBase() {}