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 - seerex

Pages: [1]
1
General / missing -l-lfsml-system?
« on: April 24, 2011, 07:19:01 pm »
i did copy it manually yes :) sry for the slow reply, got hung up on working 12 hours a day :P

2
General / missing -l-lfsml-system?
« on: April 22, 2011, 06:14:22 pm »
[/quote]
Did you get this DLL from somewhere else than your graphics driver?[/quote]

Thats the only error i get, not comming from anywhere else i dont think so atleast.? not entirely sure i understand ur question though :)

3
General / missing -l-lfsml-system?
« on: April 22, 2011, 01:40:59 pm »
i'll be damned, i got it to open my png picture of a penguin! :)

now thats a huge step, thanks A LOT for ur feedback. i kinda noticed a "mistake" in one of the tutorial screenshots. Where it says to link the sfml-system etc, it has marked the "release" in the left side of the picture. i then thought i should add it under release, which, btw, you shouldnt :)

what i get when i run my program
first i get an error? saying c:\windows\system32\atigktxx.dll is not supposed to run on windows or contains an error.
i press "ok" and an empty console window and another window containing my image pops up.

Guess its working? :) but should i care about the error or ignore it?

yet again! thanks A LOT for your help!

4
General / missing -l-lfsml-system?
« on: April 22, 2011, 12:19:46 pm »
ah... right :P

I now tried the above code again, and it pops up with lots and lots of errors, basicly all contains Undefined reference to sf::

I added
-sfml-system
-sfml-window
-sfml-graphic

In the above order. My global compiler is linked to the include and lib as the tutorial states. I followed the tutorial best i had the skills to do, yet im errored up :S

5
General / missing -l-lfsml-system?
« on: April 22, 2011, 11:42:55 am »
oh yea i was talking about that one :P usually i work in console applications, and i just created a win32 gui project now..

HOLY COW what on earth does all that code means? usually i have my includes and main and put my code between main and return 0; :P

Now i dont even know where to write code :P fine subject i am :P

6
General / missing -l-lfsml-system?
« on: April 22, 2011, 10:43:31 am »
no doubt, but still i have :P currently my issue is that i cant even get the SFML project opened in my codeblocks? when i try to find the directory where SFML is it just says that audio file is missing, which it isnt btw.

The tutorial doesnt say anything about the fact that you are not able to even open up the SFML project, hence u arent able to mess with any build options.

I copyed the include and lib folders to my codeblocks folder like the tut says. only error i can see it might have something to do with is that codeblocks claims the variable sfml is not defined or something, but the tutorial doesnt go over something like that either.

Not saying the tut is crap, but im saying even though i follow it i encounter errors, and since these errors appear before i can create a sfml project, much of the tut is useless to me as i cant access the places it wants me to acces hence the above error.

Thanks for taking ur time to read a silly minded chap like me :) but im a bit tired of writing console apps and i wanna move on to some graphic and game programming.

7
General / missing -l-lfsml-system?
« on: April 22, 2011, 10:05:35 am »
i did read the tutorial!

I dont understand why i cant set a SFML project up? it just asks me to find the directory where i installed and unpacked the SFML files, and thats what i did?

I cant edit my build options before i get a SFML project running. although i can make a console application but i kinda assume i need the SFML one?

inside the console application, even though i use the -sfml-system and the graphic / window ones, the one i put on the top is giving an error no matter which order. it cant be found.

8
General / missing -l-lfsml-system?
« on: April 22, 2011, 09:26:10 am »
Hi all, i am sooo new to c++ and extremely new to sfml, so i got this source code from someone on a different forum, and he told me to play around with it

Code: [Select]
#include <SFML/Graphics.hpp>

 int main()
 {
     // Create the main window
     sf::RenderWindow App(sf::VideoMode(800, 600), "SFML window");

     // Load a sprite to display
     sf::Image Image;
     if (!Image.LoadFromFile("tux.jpg"))  // <- save an image on your computer
         return EXIT_FAILURE;
     sf::Sprite Sprite(Image);

     // Start the game loop
     while (App.IsOpened())
     {
         // Process events
         sf::Event Event;
         while (App.GetEvent(Event))
         {
             // Close window : exit
             if (Event.Type == sf::Event::Closed)
                 App.Close();
         }

         // Clear screen
         App.Clear();

         // Draw the sprite
         App.Draw(Sprite);

         // Update the window
         App.Display();
     }

     return EXIT_SUCCESS;
 }



Now when i try to compile and run this, it says it cannot find -l-lfsml-system?

this is all created in a console application, and now i assume thats not what i need so im also trying to get it to run in an SFML project, but when i try and create it, and link the SFML's file location it says it cant find audio.hpp in it?

All i get is errors, errors, errors :(

I have added the inlcude and lib in the global compiler link options, and in my build options added -lfsml-system and -lfsml-graphics.

hope someone can assist me

9
General / Undefined reference?
« on: April 21, 2011, 06:56:01 pm »
Yiiippiiie its fixed :)

sorry for bothering you with the issue. seems like that even if i search for the file in windows search it cant find it, i found it by manually looking through each folder and file eventually.

Then i just copied the file in the codeblocks project.

I just wrote what i did if anyone else like me should stumble upon it :)

Thanks for your help chap!

10
General / Undefined reference?
« on: April 21, 2011, 06:18:48 pm »
Quote from: "Nexus"
Quote from: "seerex"
That makes any sense to you?
Yes. When you link dynamically, you must tell your application where the dynamic libraries (in your case the .dll files) are located. You could set this globally in the PATH environment variable, or you could move the SFML .dll files to C:/Windows/System32 or your executable directory.


Well, i cant seem to find that file. I tried to copy the SFML file into my codeblocks project folder, but that didnt solve the problem. cant find any specefic file named system.dll.

Thanks for so swift replies though!! amazing :)

11
General / Undefined reference?
« on: April 21, 2011, 06:12:19 pm »
Quote from: "Nexus"
For sf::Clock, the sfml-system library is enough. However, the correct linker flag is -lsfml-system and not -isfml-system.


ooh lol i thought it was a capital "i" and not an "l" :P

Alright something happens now, i tried to compile and run it (from codeblocks, guessing thats what i have to do), and even though it still pops up an error, although the console do run.

"program couldnt start since sfml-system.dll is missing on the computer."

The tutorial says i need to copy that file to the executeable directory, which i assume is the folder my c++ codeblocks project is in? but i cant seem to find the exact file.

On a side-note, any specefic place in the folder the file needs to be in once i get it located? :)

12
General / Undefined reference?
« on: April 21, 2011, 06:03:54 pm »
hi all,

i recently started looking into the world of programming. i have for a long time though about it, and especially game programming tends to be my thing, hence i was redirected to using SFML through the cplusplus.com forum.

Anywhoo, i am currently following the tutorial on how to set up SFML with codeblocks and the newest version 4.4 of mingw.

This is the code the tutorial shows me to try and use.

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

int main()
{
    sf::Clock Clock;
    while (Clock.GetElapsedTime() < 5.f)
    {
        std::cout << Clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);
    }

    return 0;
}

But when i try and compile i get - undefined reference to sf::sleep and sf::Clock.

It might have something to do with my build options and other link options, as it is kinda the part where the tutorial lost me. Currently i have
-isfml-system

But not sure thats sufficient? tbh the tutorial does go into the subject a bit on these and clearly states that there are several types of this system thingy all depending on which things you use in your code.

And i have no idea what im using and what it requires in order to compile and run :P

Thanks for taking your time to read.
Best regards

Pages: [1]