Giter Club home page Giter Club logo

Comments (6)

fallahn avatar fallahn commented on June 27, 2024 1

OK, still a linker problem, this time it can't find the sfml libs. General rule of thumb with unresolved external errors is to look at the function name after _thiscall and find the library to which it belongs. In this case all the functions start with sf:: - so you just need to link sfml to your project in the same way as tmxlite. There are guides for visual studio on the sfml website.

from tmxlite.

andrewr1991 avatar andrewr1991 commented on June 27, 2024 1

Man I finally got it working. So my issue was that I was using the tmxlite static release library, not the debug library. And I also had to run the code in debug mode, not release. I knew something was weird because I had the exact same SFML settings with another project but I wasn't getting the linker errors.

Thank you for all of your help

from tmxlite.

fallahn avatar fallahn commented on June 27, 2024

Assuming you haven't built the library already, open the sln file from the download and build each version you require (debug, release etc). Once you have the resulting .lib files follow the linking instructions here: #20

from tmxlite.

andrewr1991 avatar andrewr1991 commented on June 27, 2024

I opened the .sln file with visual studio and built the tmxlite project which is part of the tmxlite solution. It only created one .lib file though: 'libtmxlite-s.lib'. Do I need the other file, 'libtmxlite-s-d.lib', to use tmxlite for being able to parse my Tiled map?

from tmxlite.

fallahn avatar fallahn commented on June 27, 2024

Typically, yes, you would use libtmxlite-s-d.lib in your debug build, although it's not strictly necessary. Use the configuration drop down at the top of visual studio to select 'debug' then rebuild tmxlite to get the debug version.

from tmxlite.

andrewr1991 avatar andrewr1991 commented on June 27, 2024

So I was able to create the debug .lib file as in your previous instructions.

I followed the directions from your #20 link. I made the file path to the include folder "C:\Program Files (x86)\tmxlite\tmxlite\include". For the Linker->General->Additional Library Directories, when I built the tmxlite project, it only created 2 .lib files and each was in a separate folder. "libtmxlite-s.lib" in "C:\Program Files (x86)\tmxlite\tmxlite\bin\ReleaseStatic" and "libtmxlite-s-d.lib" in "C:\Program Files (x86)\tmxlite\tmxlite\bin\DebugStatic". So I chose the ReleaseStatic. And lastly, I chose libtmxlite-s.lib, for Linker->Input->Additional Dependencies.

I have attached a snapshot of what happens when I then try to build the SFML example code from the download. I'm sorry to be so much trouble but I really want to make this work.

tiledtestsnap

from tmxlite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.