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

Author Topic: SFML 2.2 Static linking  (Read 25223 times)

0 Members and 1 Guest are viewing this topic.

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: SFML 2.2 Static linking
« Reply #15 on: December 25, 2014, 06:29:21 pm »
You are using MinGW compiler with TDM SFML. You should use MinGW SFML with MinGW compiler.

notidehunter

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: SFML 2.2 Static linking
« Reply #16 on: December 25, 2014, 06:40:22 pm »
Damn, now I feel like an idiot.  Well, thanks for the help everyone.  I appreciate your patience.

SpeCter

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Re: SFML 2.2 Static linking
« Reply #17 on: December 25, 2014, 08:08:56 pm »
TDM should have been the right one though, since codeblocks uses the tdm version of gcc. Well if it works :D

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: SFML 2.2 Static linking
« Reply #18 on: December 25, 2014, 08:46:57 pm »
Thats not really true. Code::Blocks is not a compiler, its an IDE (The same way that Visual Studio is not a compiler). notidehunter is using MinGW implementation for Code::Blocks but is trying to compile the TDM version of SFML. This sort of mismatch can work but is not guaranteed.

notidehunter

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: SFML 2.2 Static linking
« Reply #19 on: December 25, 2014, 09:04:14 pm »
Ok, now I'm even more confused.  So MinGW is a gcc port; TDM-GCC is a different port that uses the same runtime APIs?

I guess what I need now is for someone to tell me where to get a compiler that works with one of the available SFML binaries.

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: SFML 2.2 Static linking
« Reply #20 on: December 25, 2014, 09:12:08 pm »
MinGW is not a compiler, its a set of tools which includes a bunch of compiles (Including GCC) and some other stuff.

The tutorial on setting up Code::Blocks use MinGW, not TDM. eXpl0it3r's nightly builds contain some TDM builds. If you use TDM, you should probably look at getting the TDM-GCC implementation for Code::Blocks.

SpeCter

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Re: SFML 2.2 Static linking
« Reply #21 on: December 25, 2014, 10:17:40 pm »
Thats not really true. Code::Blocks is not a compiler, its an IDE (The same way that Visual Studio is not a compiler). notidehunter is using MinGW implementation for Code::Blocks but is trying to compile the TDM version of SFML. This sort of mismatch can work but is not guaranteed.

Who said that Code::Blocks is a compiler???

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: SFML 2.2 Static linking
« Reply #22 on: December 25, 2014, 11:21:13 pm »
Quote
since codeblocks uses the tdm version of gcc

The way you worded it made it sound like you were saying Code::Blocks ships with a compiler like Visual Studio does (Some people think that Visual Studio is a compiler). My post is for clarity.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFML 2.2 Static linking
« Reply #23 on: December 26, 2014, 01:21:51 am »
Gambit you're wrong and are confusing people. ;)

Code::Blocks provides three versions to download:
  • Code::Blocks without compiler
  • Code::Blocks with the TDM 4.7.1 compiler
  • Code::Blocks with the TDM 4.8.1 compiler

So yes, if you downloaded the codeblocks-13.12mingw-setup.exe version, you have downloaded the TDM 4.7.1 compiler with Code::Blocks and the TDM 4.7.1 SFML package should work without issues. Thus I've no idea why it would crash.
Are you sure you don't have any other version lying around? Does a non-SFML application run fine?
« Last Edit: December 26, 2014, 01:36:11 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/

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: SFML 2.2 Static linking
« Reply #24 on: December 26, 2014, 01:38:17 am »
Gambit you're wrong and are confusing people. ;)

Oops, sorry  :'(.

notidehunter

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: SFML 2.2 Static linking
« Reply #25 on: December 26, 2014, 02:41:43 am »
This is a pretty fresh install of Windows (8.1 btw, not sure if that matters), so I'm certain this is the only version of Code::Blocks/TDM that I've downloaded.

Also, I just set it up to link dynamically instead, and it does the same thing (builds with no errors, same crash when I run it).

Edit: well, I got it to work on Ubuntu.  Not exactly a solution but I suppose it'll do for now :P
« Last Edit: December 26, 2014, 04:22:09 am by notidehunter »

 

anything