Comments (2)
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.
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)
- Mingw64 & MSYS2 ; unable to compile libSDL2pp (linking to stdlib failed) HOT 3
- Mix_Init: MP3 support not available HOT 4
- Malformed build command HOT 2
- Compile errors from SDL2pp/external/libcpp_optional.hh HOT 2
- Error compiling example(and any other program) HOT 5
- Cant Compile SDL2PP HOT 2
- Error when using Cmake on Windows HOT 1
- modern C++ library should use modern CMake
- how to compile with emscripten? HOT 4
- Examples UB: exception out of main HOT 4
- Update bundling instructions in readme
- Bump C++ version in the repository description
- Linking failed on macos HOT 2
- Error when linking under MinGW
- Missing cmake file HOT 1
- CMake error finding SDL_image HOT 4
- SDL2pp.hh cannot find a directory to SDL_stdinc.h HOT 14
- Missing SDL_Palette support HOT 4
- Will there be a SDL2pp wrapper over Vulkan? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libsdl2pp.