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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Dolotboy

Pages: [1]
1
General / SFML 2.6 Unresolved external symbol
« on: August 21, 2023, 06:01:11 pm »
Hi, I added SFML 2.6 to my project, I followed the documentations https://www.sfml-dev.org/tutorials/2.6/start-vc.php but I still get 17 errors saying "unresolved external symbol" i've tried everything but nothing seems to be working. Here is what I added to Debug and Release

Debug:
sfml-graphics-s-d.lib
sfml-audio-s-d.lib
sfml-window-s-d.lib
sfml-system-s-d.lib
opengl32.lib
winmm.lib
gdi32.lib
ws2_32.lib


Release:
sfml-graphics-s.lib
sfml-audio-s.lib
sfml-window-s.lib
sfml-system-s.lib
opengl32.lib
winmm.lib
gdi32.lib
ws2_32.lib

I followed step by step the tutorial, even tried the part where they talk about SFML_STATIC, but it didn't change anything, here is the example of error I get:

Error   LNK2019   unresolved external symbol "public: __thiscall sf::String::String(char const *,class std::locale const &)" (??0String@sf@@QAE@PBDABVlocale@std@@@Z) referenced in function _main   GameEngine   E:\Programmation\Apps\GameEngine\GameEngine\main.obj   1

Error   LNK2019   unresolved external symbol "public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z) referenced in function _main   GameEngine   E:\Programmation\Apps\GameEngine\GameEngine\main.obj   1   

Error   LNK2019   unresolved external symbol "public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (??0Color@sf@@QAE@EEEE@Z) referenced in function _main   GameEngine   E:\Programmation\Apps\GameEngine\GameEngine\main.obj   1   

... and 14 more for Video::Video, Window::Window etc... Can you help me ?

2
General / SFML 144 Errors in Rect.inl
« on: November 02, 2022, 04:18:59 am »
I installed SFML via Nugget Package Manager. I had it in another project and everything is working fine. Now I created a Dynamic Library project in C++ and reinstalled it. But I automatically got these errors

https://imgur.com/a/BrGVckU

I already read this but it didn't solve my problem:
https://en.sfml-dev.org/forums/index.php?topic=20008.0
https://en.sfml-dev.org/forums/index.php?topic=25059.0
https://en.sfml-dev.org/forums/index.php?topic=26401.0
https://en.sfml-dev.org/forums/index.php?topic=27880.0


Here are the only places where I use SFML. I really don't understand

#pragma once
#include <SFML/Graphics.hpp>

class World2D
{
   public:

      World2D(); // Empty World2D
      World2D(std::string windowName, double windowWidth, double windowsHeight); // World with size

   protected:

   private:
};




#pragma once
#include <SFML/Graphics.hpp>
#include <string>

class Sprite2D
{
   public:

      Sprite2D(); // Empty Sprite
      Sprite2D(std::string spritePath, double spriteWidth, double spriteHeight); // Sprite
      Sprite2D(std::string spritePath, double spriteWidth, double spriteHeight, double posX, double posY); // Sprite and a determined position
      ~Sprite2D();

   protected:

   private:

};

Pages: [1]
anything