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

Author Topic: Tried making a Exe of my Program/Project  (Read 1732 times)

0 Members and 2 Guests are viewing this topic.

Mansiepansie

  • Newbie
  • *
  • Posts: 13
    • View Profile
Tried making a Exe of my Program/Project
« on: May 15, 2015, 02:08:10 am »
The build comes out fine, but when i press the Exe.. a error shows up in line 9 on GameBackGround.cpp

#include "stdafx.h"
#include "GameBackground.h"
#include "SFML/Graphics.hpp"
#include "Game.h"

GameBackground::GameBackground()
{
   Load("images/CourtTest.png");
   assert(IsLoaded());
   GetSprite().setOrigin(0, 0);
}

GameBackground::~GameBackground()
{
}

void GameBackground::Draw(sf::RenderWindow &renderWindow)
{
   VisibleGameObject::Draw(renderWindow);
}

void GameBackground::Update(float elapsedTime)
{
}

Failed to load image, IsLoaded assertion error or something.

Please help!

Mansiepansie

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Tried making a Exe of my Program/Project
« Reply #1 on: May 15, 2015, 02:26:56 am »
1>c:\users\måns\documents\visual studio 2013\projects\speed pong\speed pong\gamebackground.cpp(1): warning C4627: '#include "GameBackground.h"': skipped when looking for precompiled header use
1>          Add directive to 'stdafx.h' or rebuild precompiled header

What do they mean? :/ what directive

iride

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Re: Tried making a Exe of my Program/Project
« Reply #2 on: May 15, 2015, 03:41:37 am »
Try using an empty project

Mansiepansie

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Tried making a Exe of my Program/Project
« Reply #3 on: May 15, 2015, 03:54:02 am »
What do you mean, if a empty project compiles an Exe file or?

iride

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
Re: Tried making a Exe of my Program/Project
« Reply #4 on: May 15, 2015, 05:20:16 am »
file -new - project - empty project.

add all your files and libraries again then try to compile and run it