You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm compile file "constant_rotation_constraint" with command g++ constant_rotation_constraint.cpp -o constant_rotation_constraint.exe -Iinclude ..\include
But Microsoft Windows [Version 10.0.19044.1706]
(c) Microsoft Corporation. All rights reserved.
D:\Workspace\simple-2d-constraint-solver-master\src>g++ constant_rotation_constraint.cpp -o constant_rotation_constraint.exe -Iinclude ..\include
In file included from ../include/constraint.h:6,
from ../include/constant_rotation_constraint.h:4,
from constant_rotation_constraint.cpp:1:
../include/matrix.h:20:13: error: '__forceinline' does not name a type
20 | __forceinline void set(int column, int row, double value) {
| ^~~~~~~~~~~~~
../include/matrix.h:27:13: error: '__forceinline' does not name a type
27 | __forceinline double get(int column, int row) {
| ^~~~~~~~~~~~~
../include/matrix.h:50:13: error: '__forceinline' does not name a type
50 | __forceinline void fastRowSwap(int a, int b) {
| ^~~~~~~~~~~~~
In file included from ../include/constant_rotation_constraint.h:4,
from constant_rotation_constraint.cpp:1:
../include/constraint.h:28:13: error: '__forceinline' does not name a type
28 | __forceinline int getConstraintCount() const { return m_constraintCount; }
| ^~~~~~~~~~~~~
constant_rotation_constraint.cpp: In constructor 'atg_scs::ConstantRotationConstraint::ConstantRotationConstraint()':
constant_rotation_constraint.cpp:8:19: error: 'DBL_MAX' was not declared in this scope
8 | m_maxTorque = DBL_MAX;
| ^~~~~~~
constant_rotation_constraint.cpp:5:1: note: 'DBL_MAX' is defined in header ''; did you forget to '#include '?
4 | #include
+++ |+#include
5 |
constant_rotation_constraint.cpp:9:19: error: 'DBL_MIN' was not declared in this scope
9 | m_minTorque = DBL_MIN;
| ^~~~~~~
constant_rotation_constraint.cpp:9:19: note: 'DBL_MIN' is defined in header ''; did you forget to '#include '?
constant_rotation_constraint.cpp: In member function 'virtual void atg_scs::ConstantRotationConstraint::limit(atg_scs::Matrix*, atg_scs::SystemState*)':
constant_rotation_constraint.cpp:37:35: error: 'class atg_scs::Matrix' has no member named 'get'; did you mean 'set'?
37 | const double torque = lambda->get(0, index);
| ^~~
| set
constant_rotation_constraint.cpp:39:81: error: no matching function for call to 'atg_scs::Matrix::set(int, const int&, double)'
39 | lambda->set(0, index, std::fmin(m_maxTorque, std::fmax(m_minTorque, torque)));
| ^
In file included from ../include/constraint.h:6,
from ../include/constant_rotation_constraint.h:4,
from constant_rotation_constraint.cpp:1:
../include/matrix.h:18:18: note: candidate: 'void atg_scs::Matrix::set(const double*)'
18 | void set(const double data);
| ^~~
../include/matrix.h:18:18: note: candidate expects 1 argument, 3 provided
../include/matrix.h:34:18: note: candidate: 'void atg_scs::Matrix::set(atg_scs::Matrix)'
34 | void set(Matrix *reference);
| ^~~
../include/matrix.h:34:18: note: candidate expects 1 argument, 3 provided
i'm compile file "constant_rotation_constraint" with command g++ constant_rotation_constraint.cpp -o constant_rotation_constraint.exe -Iinclude ..\include
But Microsoft Windows [Version 10.0.19044.1706]
(c) Microsoft Corporation. All rights reserved.
D:\Workspace\simple-2d-constraint-solver-master\src>g++ constant_rotation_constraint.cpp -o constant_rotation_constraint.exe -Iinclude ..\include
In file included from ../include/constraint.h:6,
from ../include/constant_rotation_constraint.h:4,
from constant_rotation_constraint.cpp:1:
../include/matrix.h:20:13: error: '__forceinline' does not name a type
20 | __forceinline void set(int column, int row, double value) {
| ^~~~~~~~~~~~~
../include/matrix.h:27:13: error: '__forceinline' does not name a type
27 | __forceinline double get(int column, int row) {
| ^~~~~~~~~~~~~
../include/matrix.h:50:13: error: '__forceinline' does not name a type
50 | __forceinline void fastRowSwap(int a, int b) {
| ^~~~~~~~~~~~~
In file included from ../include/constant_rotation_constraint.h:4,
from constant_rotation_constraint.cpp:1:
../include/constraint.h:28:13: error: '__forceinline' does not name a type
28 | __forceinline int getConstraintCount() const { return m_constraintCount; }
| ^~~~~~~~~~~~~
constant_rotation_constraint.cpp: In constructor 'atg_scs::ConstantRotationConstraint::ConstantRotationConstraint()':
constant_rotation_constraint.cpp:8:19: error: 'DBL_MAX' was not declared in this scope
8 | m_maxTorque = DBL_MAX;
| ^~~~~~~
constant_rotation_constraint.cpp:5:1: note: 'DBL_MAX' is defined in header ''; did you forget to '#include '?
4 | #include
+++ |+#include
5 |
constant_rotation_constraint.cpp:9:19: error: 'DBL_MIN' was not declared in this scope
9 | m_minTorque = DBL_MIN;
| ^~~~~~~
constant_rotation_constraint.cpp:9:19: note: 'DBL_MIN' is defined in header ''; did you forget to '#include '?
constant_rotation_constraint.cpp: In member function 'virtual void atg_scs::ConstantRotationConstraint::limit(atg_scs::Matrix*, atg_scs::SystemState*)':
constant_rotation_constraint.cpp:37:35: error: 'class atg_scs::Matrix' has no member named 'get'; did you mean 'set'?
37 | const double torque = lambda->get(0, index);
| ^~~
| set
constant_rotation_constraint.cpp:39:81: error: no matching function for call to 'atg_scs::Matrix::set(int, const int&, double)'
39 | lambda->set(0, index, std::fmin(m_maxTorque, std::fmax(m_minTorque, torque)));
| ^
In file included from ../include/constraint.h:6,
from ../include/constant_rotation_constraint.h:4,
from constant_rotation_constraint.cpp:1:
../include/matrix.h:18:18: note: candidate: 'void atg_scs::Matrix::set(const double*)'
18 | void set(const double data);
| ^~~
../include/matrix.h:18:18: note: candidate expects 1 argument, 3 provided
../include/matrix.h:34:18: note: candidate: 'void atg_scs::Matrix::set(atg_scs::Matrix)'
34 | void set(Matrix *reference);
| ^~~
../include/matrix.h:34:18: note: candidate expects 1 argument, 3 provided
D:\Workspace\simple-2d-constraint-solver-master\src>
this bug is not compile file
The text was updated successfully, but these errors were encountered: