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

Author Topic: Compile SFML 1.4 with CodeBlocks and MinGW  (Read 2135 times)

0 Members and 1 Guest are viewing this topic.

vri

  • Newbie
  • *
  • Posts: 3
    • View Profile
Compile SFML 1.4 with CodeBlocks and MinGW
« on: January 08, 2009, 02:00:03 pm »
First of all, thank you for the new version!

I try to build the static libs myself with the config mentioned above using the sfml.workspace.
I get a warning during compilation for each .inl file: "linker input file unused because linking not done".

During linking, I get an error that the object-file corresponding to the .inl file is not found.

As the .inl files are included from the .hpp files, I thought I might as well unselect the .inl files from the build targets. Then it compiles fine. However, the resulting lib I get for e.g. the system package, Debug static_Win32 is just 425 kB, whereas the one from the download is 2.3 MB. So this makes me doubt about my 'solution'.
Could you please indicate if I am doing something wrong?

Cheers, Theo.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Compile SFML 1.4 with CodeBlocks and MinGW
« Reply #1 on: January 08, 2009, 02:09:17 pm »
Quote
As the .inl files are included from the .hpp files, I thought I might as well unselect the .inl files from the build targets. Then it compiles fine

Correct, inl files should never been compiled.

Quote
Could you please indicate if I am doing something wrong?

Did you follow the last step described in the tutorial?
Laurent Gomila - SFML developer

vri

  • Newbie
  • *
  • Posts: 3
    • View Profile
Compile SFML 1.4 with CodeBlocks and MinGW
« Reply #2 on: January 08, 2009, 02:27:35 pm »
Ok, you're right, I missed that last step of adding the external libs; I thought I was not that far yet! I'm not that experienced, so please excuse me for bothering you....

Thanks.

Would it be an idea to uncheck the .inl files in the codeblocks project files that you supply?

Theo.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Compile SFML 1.4 with CodeBlocks and MinGW
« Reply #3 on: January 08, 2009, 02:49:27 pm »
Quote
Would it be an idea to uncheck the .inl files in the codeblocks project files that you supply?

I already explained it somewhere in this forum: I can't do this, because my version of Code::Blocks behaves differently (i.e. the default case is not to compile .inl files, so they are already unchecked).
I have to install a more recent version of the EDI to fix it.
Laurent Gomila - SFML developer

 

anything