Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
SFML + ImGui Redefinition issue
Print
Pages: [
1
]
Author
Topic: SFML + ImGui Redefinition issue (Read 1753 times)
0 Members and 1 Guest are viewing this topic.
orella
Newbie
Posts: 10
SFML + ImGui Redefinition issue
«
on:
March 26, 2017, 02:11:41 pm »
Hi!.
I'm implementing ImGui to my personal 2D Engine and i'm getting redifinition errors:
Severity Code Description Project File Line Suppression State
Error C2572 'ImGui::SFML::Init': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 20
Error C2572 'ImGui::Image': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 38
Error C2572 'ImGui::Image': redefinition of default argument: parameter 2 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 39
Error C2572 'ImGui::Image': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 41
Error C2572 'ImGui::Image': redefinition of default argument: parameter 2 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 42
Error C2572 'ImGui::Image': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 44
Error C2572 'ImGui::Image': redefinition of default argument: parameter 2 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 45
Error C2572 'ImGui::Image': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 47
Error C2572 'ImGui::Image': redefinition of default argument: parameter 2 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 48
Error C2572 'ImGui::Image': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 51
Error C2572 'ImGui::Image': redefinition of default argument: parameter 2 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 52
Error C2572 'ImGui::Image': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 54
Error C2572 'ImGui::Image': redefinition of default argument: parameter 2 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 55
Error C2572 'ImGui::ImageButton': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 58
Error C2572 'ImGui::ImageButton': redefinition of default argument: parameter 2 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 59
Error C2572 'ImGui::ImageButton': redefinition of default argument: parameter 3 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 60
Error C2572 'ImGui::ImageButton': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 61
Error C2572 'ImGui::ImageButton': redefinition of default argument: parameter 2 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 62
Error C2572 'ImGui::ImageButton': redefinition of default argument: parameter 3 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 62
Error C2572 'ImGui::ImageButton': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 64
Error C2572 'ImGui::ImageButton': redefinition of default argument: parameter 2 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 65
Error C2572 'ImGui::ImageButton': redefinition of default argument: parameter 3 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 66
Error C2572 'ImGui::ImageButton': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 67
Error C2572 'ImGui::ImageButton': redefinition of default argument: parameter 2 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 68
Error C2572 'ImGui::ImageButton': redefinition of default argument: parameter 3 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 69
Error C2572 'ImGui::DrawLine': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 72
Error C2572 'ImGui::DrawRect': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 73
Error C2572 'ImGui::DrawRect': redefinition of default argument: parameter 2 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 73
Error C2572 'ImGui::DrawRect': redefinition of default argument: parameter 3 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 73
Error C2572 'ImGui::DrawRectFilled': redefinition of default argument: parameter 1 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 74
Error C2572 'ImGui::DrawRectFilled': redefinition of default argument: parameter 2 2D-Engine c:\users\admin\documents\github\2d-engine\2d-engine\2d-engine\sfml-2.4.2\include\imgui-1.49\imgui-sfml.h 74
Any help?
«
Last Edit: March 26, 2017, 02:17:11 pm by orella
»
Logged
orella
Newbie
Posts: 10
Re: SFML + ImGui Redefinition issue
«
Reply #1 on:
March 26, 2017, 02:34:20 pm »
Well, some minutes after posting this, i solved it by removing the default value when defining. e.g in void Init(sf::RenderTarget& target, sf::Texture* fontTexture = NULL); removing the "= NULL" and same with all the definitions.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
SFML + ImGui Redefinition issue