Giter Club home page Giter Club logo

Comments (4)

clintbellanger avatar clintbellanger commented on May 22, 2024

I don't know enough about those Windows libraries to say whether this is a good idea.

If we made these changes it would have to:

  • Work on all other Windows compilers (MinGW / gcc especially)
  • Be Free/Libre (I'm not in favor of linking a proprietary library)

As for Point, we can add a default constructor to Point (even as a struct).

I'm not familiar with that "vector iterators are incompatible" issue, I'll have to read up on it.

from flare-game.

 avatar commented on May 22, 2024
If we made these changes it would have to:

Work on all other Windows compilers (MinGW / gcc especially)

The source change (apart from the constructors in the Point struct and changes to the construction in the code) are all inside a #ifndef and # else block, so the other build systems would not be affected.

Be Free/Libre (I'm not in favor of linking a proprietary library)

You don't need to add any libraries if you have Visual Studio working with SDL and the other prerequisites - so setting up on there is no different to setting up in mingw or cmake for example.

As for Point, we can add a default constructor to Point (even as a struct).

I wasn't sure if having a constructor in the struct would be possible in some of the other windows compilers.

I'm not familiar with that "vector iterators are incompatible" issue, I'll have to read up on it.

I found this page quite helpful, because I did not understand how the program would run in release mode and not in debug mode:

http://msdn.microsoft.com/en-us/library/aa985982(v=vs.80).aspx

I stepped back through the stack and found it occurred when the code looped over the events (from the current zone?) when I tried to enter an unknown zone. Obviously I don't yet understand what is going on there, so I think to repair that someone would have to recreate the same problem - I am using MSVC 2010 express edition.

from flare-game.

igorko avatar igorko commented on May 22, 2024

Flare compiles under MSVC2010 without any problems. You should get dirent.h from here http://softagalleria.net/dirent.php and put it into ...Microsoft Visual Studio 10.0\VC\include\ folder.

@clintbellanger I guess you should add this note to README to avoid such questions in future, though getting dirent.h for MSVC is one of the basic things. that programmer should do to compile crossplatform project.

from flare-game.

 avatar commented on May 22, 2024

Thanks I didn't know about dirent for MSVC. I think the compile will still fail unless the other modifications occur (complains about variables being used without being initialized) and there is also the STL incompatible assert bug, although these could be separate bugs / issues perhaps.

from flare-game.

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.