Tested it out, but again the same error...
So far I see, this error only comes when using something from the
<Network.hpp> header/class
I started a new project to make sure other stuff works, and as expected everything else is working perfectly. The following code is working flawless:
// include SFML headers
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
// include other headers
#include <string>
// custom headers
#include <userCharacter.h>
// global settings
bool showSplashScreen = false;
bool isGameAvailable = false;
bool isGameExiting = false;
bool isGamePaused = false;
bool isShowingMenu = false;
// main loop
int main()
{
// game title and info, to be placed in welcomeScreen.h
// set a font type
sf::Font font;
font.loadFromFile("C:\\Windows\\Fonts\\arial.ttf");
// set title
sf::Text tTitle("Crystallibrium", font, 30);
tTitle.setColor(sf::Color::White);
tTitle.setPosition(200, 200);
// set version info
sf::Text tVersion("ver. 0.1", font, 13);
tVersion.setColor(sf::Color::White);
tVersion.setPosition(388,217);
// set story subtitle
sf::Text tSubtitle("The crystal chronicles", font, 16);
tSubtitle.setColor(sf::Color::White);
tSubtitle.setPosition(200, 234);
// -------------------------------------------------->
// Create the main window
sf::RenderWindow window(sf::VideoMode(800, 600), "Crystallibrium");
window.setFramerateLimit(60);
// Start the game loop
while (window.isOpen())
{
// Process events
sf::Event event;
while (window.pollEvent(event))
{
// Close window : exit
if (event.type == sf::Event::Closed)
window.close();
}
// Clear screen
window.clear();
// Draw text
window.draw(tTitle);
window.draw(tVersion);
window.draw(tSubtitle);
// Update the window
window.display();
}
return 0;
}
// Declerations
userCharacter::userCharacter(std::string cName, int cLevel, float cExperience) : characterName(cName), characterLevel(cLevel), characterExperience(cExperience){}
So where it goes wrong, is all about the Network stuff