142 lines
9.2 KiB
Plaintext
142 lines
9.2 KiB
Plaintext
[ERROR] g++ -std=c++20 -Wall -g -Isrc/include -Isrc/include/lua -Isrc/vendor -Isrc/vendor/imgui -Isrc/vendor/box2d/ -IC:/msys64/mingw64/include -IC:\msys64\mingw64\lib\libyaml-cpp.a -Isrc\vendor\imgui -MMD -MP -c src\src\Components\PhysicsComponent.cpp -o src\build\Components\PhysicsComponent.o
|
|
cc1plus.exe: warning: C:\msys64\mingw64\lib\libyaml-cpp.a: not a directory
|
|
In file included from C:/msys64/mingw64/include/yaml-cpp/parser.h:13,
|
|
from C:/msys64/mingw64/include/yaml-cpp/yaml.h:10,
|
|
from src\src\Components\Component.h:5,
|
|
from src\src\Components\PhysicsComponent.h:2,
|
|
from src\src\Components\PhysicsComponent.cpp:1:
|
|
C:/msys64/mingw64/include/yaml-cpp/dll.h:22:65: note: '#pragma message: Defining YAML_CPP_API for DLL import'
|
|
22 | # pragma message( "Defining YAML_CPP_API for DLL import" )
|
|
| ^
|
|
src\src\Components\PhysicsComponent.h:13:21: error: 'b2World' has not been declared
|
|
13 | void CreateBody(b2World* world, const glm::vec2& position);
|
|
| ^~~~~~~
|
|
src\src\Components\PhysicsComponent.h:13:43: error: 'glm' does not name a type
|
|
13 | void CreateBody(b2World* world, const glm::vec2& position);
|
|
| ^~~
|
|
src\src\Components\PhysicsComponent.h:13:52: error: expected unqualified-id before '&' token
|
|
13 | void CreateBody(b2World* world, const glm::vec2& position);
|
|
| ^
|
|
src\src\Components\PhysicsComponent.h:13:52: error: expected ')' before '&' token
|
|
13 | void CreateBody(b2World* world, const glm::vec2& position);
|
|
| ~ ^
|
|
| )
|
|
src\src\Components\PhysicsComponent.h:13:52: error: expected ';' at end of member declaration
|
|
13 | void CreateBody(b2World* world, const glm::vec2& position);
|
|
| ^
|
|
| ;
|
|
src\src\Components\PhysicsComponent.h:13:54: error: 'position' does not name a type
|
|
13 | void CreateBody(b2World* world, const glm::vec2& position);
|
|
| ^~~~~~~~
|
|
src\src\Components\PhysicsComponent.h:16:28: error: 'glm' does not name a type
|
|
16 | void SetVelocity(const glm::vec2& vel);
|
|
| ^~~
|
|
src\src\Components\PhysicsComponent.h:16:37: error: expected unqualified-id before '&' token
|
|
16 | void SetVelocity(const glm::vec2& vel);
|
|
| ^
|
|
src\src\Components\PhysicsComponent.h:16:37: error: expected ')' before '&' token
|
|
16 | void SetVelocity(const glm::vec2& vel);
|
|
| ~ ^
|
|
| )
|
|
src\src\Components\PhysicsComponent.h:16:37: error: expected ';' at end of member declaration
|
|
16 | void SetVelocity(const glm::vec2& vel);
|
|
| ^
|
|
| ;
|
|
src\src\Components\PhysicsComponent.h:16:39: error: 'vel' does not name a type
|
|
16 | void SetVelocity(const glm::vec2& vel);
|
|
| ^~~
|
|
src\src\Components\PhysicsComponent.h:17:5: error: 'glm' does not name a type
|
|
17 | glm::vec2 GetVelocity() const;
|
|
| ^~~
|
|
src\src\Components\PhysicsComponent.h:29:5: error: 'b2Body' does not name a type; did you mean 'b2BodyId'?
|
|
29 | b2Body* body = nullptr;
|
|
| ^~~~~~
|
|
| b2BodyId
|
|
src\src\Components\PhysicsComponent.h:30:5: error: 'b2World' does not name a type; did you mean 'b2WorldId'?
|
|
30 | b2World* world = nullptr;
|
|
| ^~~~~~~
|
|
| b2WorldId
|
|
src\src\Components\PhysicsComponent.h:26:10: error: 'void PhysicsComponent::OnImGuiInspector()' marked 'override', but does not override
|
|
26 | void OnImGuiInspector() override;
|
|
| ^~~~~~~~~~~~~~~~
|
|
src\src\Components\PhysicsComponent.cpp: In constructor 'PhysicsComponent::PhysicsComponent(BodyType, float, float)':
|
|
src\src\Components\PhysicsComponent.cpp:6:46: error: no matching function for call to 'Component::Component()'
|
|
6 | : type(type), width(width), height(height) {}
|
|
| ^
|
|
src\src\Components\Component.h:13:5: note: candidate: 'Component::Component(Object*)'
|
|
13 | Component(Object* owner) : owner(owner) {}
|
|
| ^~~~~~~~~
|
|
src\src\Components\Component.h:13:5: note: candidate expects 1 argument, 0 provided
|
|
src\src\Components\Component.h:11:7: note: candidate: 'constexpr Component::Component(const Component&)'
|
|
11 | class Component {
|
|
| ^~~~~~~~~
|
|
src\src\Components\Component.h:11:7: note: candidate expects 1 argument, 0 provided
|
|
src\src\Components\PhysicsComponent.cpp: At global scope:
|
|
src\src\Components\PhysicsComponent.cpp:12:6: error: variable or field 'CreateBody' declared void
|
|
12 | void PhysicsComponent::CreateBody(b2World* world, const glm::vec2& position) {
|
|
| ^~~~~~~~~~~~~~~~
|
|
src\src\Components\PhysicsComponent.cpp:12:35: error: 'b2World' was not declared in this scope; did you mean 'b2WorldId'?
|
|
12 | void PhysicsComponent::CreateBody(b2World* world, const glm::vec2& position) {
|
|
| ^~~~~~~
|
|
| b2WorldId
|
|
src\src\Components\PhysicsComponent.cpp:12:44: error: 'world' was not declared in this scope
|
|
12 | void PhysicsComponent::CreateBody(b2World* world, const glm::vec2& position) {
|
|
| ^~~~~
|
|
src\src\Components\PhysicsComponent.cpp:12:51: error: expected primary-expression before 'const'
|
|
12 | void PhysicsComponent::CreateBody(b2World* world, const glm::vec2& position) {
|
|
| ^~~~~
|
|
src\src\Components\PhysicsComponent.cpp: In member function 'void PhysicsComponent::DestroyBody()':
|
|
src\src\Components\PhysicsComponent.cpp:39:9: error: 'body' was not declared in this scope
|
|
39 | if (body && world) {
|
|
| ^~~~
|
|
src\src\Components\PhysicsComponent.cpp:39:17: error: 'world' was not declared in this scope
|
|
39 | if (body && world) {
|
|
| ^~~~~
|
|
src\src\Components\PhysicsComponent.cpp: At global scope:
|
|
src\src\Components\PhysicsComponent.cpp:45:6: error: no declaration matches 'void PhysicsComponent::SetVelocity(const glm::vec2&)'
|
|
45 | void PhysicsComponent::SetVelocity(const glm::vec2& vel) {
|
|
| ^~~~~~~~~~~~~~~~
|
|
src\src\Components\PhysicsComponent.h:16:10: note: candidate is: 'void PhysicsComponent::SetVelocity(...) &'
|
|
16 | void SetVelocity(const glm::vec2& vel);
|
|
| ^~~~~~~~~~~
|
|
src\src\Components\PhysicsComponent.h:6:7: note: 'class PhysicsComponent' defined here
|
|
6 | class PhysicsComponent : public Component {
|
|
| ^~~~~~~~~~~~~~~~
|
|
src\src\Components\PhysicsComponent.cpp:49:11: error: no declaration matches 'glm::vec2 PhysicsComponent::GetVelocity() const'
|
|
49 | glm::vec2 PhysicsComponent::GetVelocity() const {
|
|
| ^~~~~~~~~~~~~~~~
|
|
src\src\Components\PhysicsComponent.cpp:49:11: note: no functions named 'glm::vec2 PhysicsComponent::GetVelocity() const'
|
|
src\src\Components\PhysicsComponent.h:6:7: note: 'class PhysicsComponent' defined here
|
|
6 | class PhysicsComponent : public Component {
|
|
| ^~~~~~~~~~~~~~~~
|
|
src\src\Components\PhysicsComponent.cpp: In member function 'void PhysicsComponent::SetFriction(float)':
|
|
src\src\Components\PhysicsComponent.cpp:59:9: error: 'body' was not declared in this scope
|
|
59 | if (body && body->GetFixtureList())
|
|
| ^~~~
|
|
src\src\Components\PhysicsComponent.cpp: In member function 'void PhysicsComponent::SetFixedRotation(bool)':
|
|
src\src\Components\PhysicsComponent.cpp:70:9: error: 'body' was not declared in this scope
|
|
70 | if (body)
|
|
| ^~~~
|
|
src\src\Components\PhysicsComponent.cpp: In member function 'void PhysicsComponent::SyncFromPhysics()':
|
|
src\src\Components\PhysicsComponent.cpp:75:9: error: 'body' was not declared in this scope
|
|
75 | if (body) {
|
|
| ^~~~
|
|
src\src\Components\PhysicsComponent.cpp:77:9: error: 'object' was not declared in this scope; did you mean 'Object'?
|
|
77 | object->SetLocalPosition({ pos.x, pos.y });
|
|
| ^~~~~~
|
|
| Object
|
|
src\src\Components\PhysicsComponent.cpp: In member function 'void PhysicsComponent::SyncToPhysics()':
|
|
src\src\Components\PhysicsComponent.cpp:82:9: error: 'body' was not declared in this scope
|
|
82 | if (body) {
|
|
| ^~~~
|
|
src\src\Components\PhysicsComponent.cpp:83:25: error: 'object' was not declared in this scope; did you mean 'Object'?
|
|
83 | glm::vec2 pos = object->GetLocalPosition();
|
|
| ^~~~~~
|
|
| Object
|
|
src\src\Components\PhysicsComponent.cpp: In member function 'void PhysicsComponent::OnImGuiInspector()':
|
|
src\src\Components\PhysicsComponent.cpp:90:21: error: 'GetVelocity' was not declared in this scope; did you mean 'SetVelocity'?
|
|
90 | glm::vec2 vel = GetVelocity();
|
|
| ^~~~~~~~~~~
|
|
| SetVelocity
|
|
|