Coder Social home page Coder Social logo

Problem in VS Code. about libsdl2pp HOT 2 CLOSED

 avatar commented on May 25, 2024
Problem in VS Code.

from libsdl2pp.

Comments (2)

digumx avatar digumx commented on May 25, 2024

I faced a similar issue at some point, could you try changing the signature of main to include the arguments? That is, try with int main(int argc, char** argv).

I believe SDL does something wierd on windows by macroing out the main method definition and implementing it's own main that calls the user defined main method. My wild guess is that the macro they use is the definition of main with the arguments included, and since you do not have the arguments included the macro magic is failing.

from libsdl2pp.

AMDmi3 avatar AMDmi3 commented on May 25, 2024

I don't see how this relates to libSDL2pp - you don't include its headers or link its libraries. You should probably start with mingw32 documentation and my guess is that you should define WinMain() instead of main() as the error says. SDL does provide machinery which allows you to use main() on all platforms, but since you don't use it directly or via libSDL2pp it doesn't work here.

from libsdl2pp.

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.