Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile TDM-GCC-32 bug #1

Open
binaryfox0 opened this issue Jun 6, 2022 · 0 comments
Open

Compile TDM-GCC-32 bug #1

binaryfox0 opened this issue Jun 6, 2022 · 0 comments

Comments

@binaryfox0
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant