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

Author Topic: Successfully Set up Dev C+ Orwell Version for Wiki  (Read 10184 times)

0 Members and 1 Guest are viewing this topic.

cnoffsin

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Successfully Set up Dev C+ Orwell Version for Wiki
« on: June 14, 2014, 05:00:23 am »
I googled around and I saw some people wanted to get SFML working in Dev C++.

I got it to work in the Orwell version which is still maintained and I am sorry it is the one I am comfortable in because its what is taught at my college.

This is of course for Windows.

Its similar to the codeblocks set up but there are a couple of different items and it gets confusing as to what download to get and I pieced the items I found for the linker from various forum posts.

So get Orwell Dev C++ from Sourceforge here Dev-Cpp 5.6.3 TDM-GCC x64 4.8.1 Setup.exe
http://sourceforge.net/projects/orwelldevcpp/files/Setup%20Releases/

And get the GCC 4.7 TDM (SJLJ) version from the download page:
http://www.sfml-dev.org/download/sfml/2.1/

I extracted it to c:\sfml

Click on Tools-Compiler Options
And in the "Add the following commands when calling the linker:" box have these items
-static-libgcc -DSFML_STATIC -lsfml-graphics -lsfml-window -lsfml-system

In that same spot on the Directories-Binaries tab have c:\sfml\bin
                                                           Libraries tab have c:\sfml\lib
                                                           C++ Includes tab have c:\sfml\include

I could do screenshots.

It would be nice to have this on the main "http://www.sfml-dev.org/tutorials/2.1/" page because from what I saw on the web (and in this forum) there are some people that would use it.
« Last Edit: June 14, 2014, 03:33:45 pm by cnoffsin »

cnoffsin

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Successfully Set up Dev C+ Orwell Version for Wiki
« Reply #1 on: June 14, 2014, 05:15:23 am »
And I guess I should add that with this config you have to copy all the files in the sfml\bin folder (the dlls) to the place where the .exe will be compiled and executed.

I am sure there is a better way to do this if someone wants to chime in that would be nice.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: Successfully Set up Dev C+ Orwell Version for Wiki
« Reply #2 on: June 14, 2014, 08:25:55 am »
"A lot" is a bit exaggerated but I guess it's useful for those that use it. :D
« Last Edit: June 14, 2014, 08:45:00 am by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/