Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML + ImGui Redefinition issue  (Read 1754 times)

0 Members and 2 Guests are viewing this topic.

orella

  • Newbie
  • *
  • Posts: 10
    • View Profile
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 »

orella

  • Newbie
  • *
  • Posts: 10
    • View Profile
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.