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.


Messages - BigPaws

Pages: [1]
1
Well, I failed to building it myself, but it works just fine on Visual Studio so i guess i will stick to this IDE for now.

2
Well, I can try that, although im not really sure if i am capable of doing it, i still suck at programming.

If noone has any other advice after work ill try yours

3
It was installed along with exe version of this codeblocks.

When i link to my folder i get this error:

http://image.prntscr.com/image/af682c2df04e4d6884de6e4f260f370f.png

When i download nonexe version of codeblocks and just link to that folder you have i get those errors:

http://image.prntscr.com/image/072b4d13a3cb4c629c7a486b5ce9deb8.png


I'm really lost, googling doesnt help :/

4
Changed
""sfml-xxx-d" for Debug, and "sfml-xxx" for Release."

just like official tutorial suggested. Didn't help with this issue sadly.

5
Created another project, installed everything again and im getting the same error, it looks like it's not even looking for the file, just prints the error.
Here are my screenshots of how i installed the sfml (tutorial from another site, since i didnt have any success with the official tutorial.








6
Hi,
I'm very fresh when it comes to coding and just recently installed SFML (and the test code provided on the tutorial page worked).

Now when i tried to draw font or an image on screen im getting this error (this one's font error)

"undefined reference to `_imp___ZN2sf4Font12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE'|"

My code looks like this:

#include <SFML/Graphics.hpp>
#include <iostream>

using namespace std;

int main()
{
      sf::RenderWindow window(sf::VideoMode(800, 600, sf::Style::Default), "RPG Game");
      window.setVerticalSyncEnabled(true);

    sf::Text message;
   
    sf::Font font;
   
    font.loadFromFile("28 Days Later.ttf");

    message.setFont(font);

    message.setString("Hello world");

    message.setCharacterSize(100);

    message.setColor(sf::Color::White);

      while(window.isOpen()){

        sf::Event event;

        while(window.pollEvent(event)){
            if(event.type == sf::Event::Closed){
                window.close();
            }
        }



        window.clear(sf::Color::Black);

        //draw


        window.display();

      }


    return 0;
}
 

here is the line that gets error 
    font.loadFromFile("28 Days Later.ttf");
 

I've copied the font file to the bin folder, then to the folder where the exe is and finally to the project folder. Didnt work anyway.

I would appreciate any help i can get.

I'm using Codeblocks 16.01 (and the default compiler installed with it) and sfml 2.4.0

Pages: [1]
anything