Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>SFML is statically linked both in the DLL project and the project which uses it.</p> </blockquote> <p>If you do indeed link SFML statically against your DLL, then you'll have a problem, because now your finally application holds a copy of SFML and your DLL holds a copy of SFML. Thus allocated stuff by SFML in the DLL won't be necessarily available in the application and the other way around.</p> <p>AS a solution you can only link everything dynamic or everything static in the final application. This means you either use the dynamic libraries of SFML or you link your library static as well and only link against SFML static in your application and not in your library.</p> <p>Since you're using VS 2013 you'll also have to rebuild SFML itself and if you use the latest version the statically linking has changed (<a href="http://en.sfml-dev.org/forums/index.php?topic=9362.0" rel="nofollow">full discussion</a>). So here's some ASCII art for how it would work with SFML 2.0 or 2.1.</p> <pre><code> winmm gdi32 opengl / \ | / / \ | / v v v v sfml-system-s sfml-window-s | | | | | +---------------+ | | | | | +---------+ | | | | | | v v v v example.exe &lt;--- yourlib.dll </code></pre> <p>With SFML from source (target 2.3), it would looks something like this.</p> <pre><code> sfml-system-s sfml-window-s winmm gdi32 opengl | | | | | +------------+ +-------+ | | | | | | +-----------------+ | | | +-----------+ | +-----------------------+ | | | | | | | +----------------------------+ | | | | | | | v v v v v v v yourlib.dll -&gt; example.exe </code></pre> <p>What you essentially want however is this:</p> <pre><code>sfml-system-s sfml-window-s winmm gdi32 opengl yourlib-s | | | | | | | +-------+ | | | | | | +-----------------+ | | | | | | +-----------------------+ | | | | | | +----------------------------+ | | | | | | +----------------------------------+ | | | | | | v v v v v v example.exe </code></pre> <p>Dynamic linking essentially works already like the last diagram (just different), thus the dynamic linking works fine "out of the box".</p> <p>There's a lot of information around the web how linking works etc. One example would be <a href="http://en.sfml-dev.org/forums/index.php?topic=7281.msg48091#msg48091" rel="nofollow">this forum post</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload