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

Author Topic: Using SFML in own dll  (Read 6011 times)

0 Members and 1 Guest are viewing this topic.

kralo9

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
Re: Using SFML in own dll
« Reply #15 on: June 15, 2013, 08:51:19 am »
Yes ok. But how can I solve my window problem from above?
I'm totally exhausted. I've got 3 children and no money! Why can't I have no children and 3 money? - Homer S.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Using SFML in own dll
« Reply #16 on: June 15, 2013, 09:02:00 am »
Quote
But, since SFML appears in the public interface of your library, the executable indirectly uses it. In particular, it indirectly includes some SFML headers. So it has to know where they are, so you have to configure your project accordingly.

In case it's not clear enough, it means: add SFML/include to the header paths of your executable's project.
Laurent Gomila - SFML developer

kralo9

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
Re: Using SFML in own dll
« Reply #17 on: June 15, 2013, 03:26:53 pm »
Ok it is working now, thanks. But there are some warning messages though:

1. VC is complaining about not finding debug information (.pdb), but that is irrelevant
2. The compiler says, that sf::RenderWindow is no DLL-Interface/port and is used as base class for Window
Code for that (german):
warning C4275: class 'sf::RenderWindow' ist keine DLL-Schnittstelle und wurde als Basisklasse für die DLL-Schnittstelle class 'gse::Window' verwendet

Like said, it is working, but I don't like the second warning

Forgot to mention that I linked statically
« Last Edit: June 15, 2013, 04:47:43 pm by kralo9 »
I'm totally exhausted. I've got 3 children and no money! Why can't I have no children and 3 money? - Homer S.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Using SFML in own dll
« Reply #18 on: June 15, 2013, 04:49:55 pm »
I think you can safely ignore it in this context. But I don't know exactly what it involves.
Laurent Gomila - SFML developer

 

anything