Marzac / le3d

A straightforward and easy to use 3D software renderer for real-time retro graphics.
https://marzac.github.io/le3d/
MIT License
60 stars 6 forks source link

Cmake #4

Closed m0ppers closed 6 years ago

m0ppers commented 6 years ago

ok...next try...this works locally for me (tm)...I can build using mingw and visual studio...and was also able to compile on a linux machine.

I had trouble getting geometry.cpp to compile (mingw).

http://en.cppreference.com/w/cpp/memory/c/aligned_alloc

this says that it is part of c++17. there is however aligned_alloc in C11 (http://en.cppreference.com/w/c/memory/aligned_alloc) but it is a cpp file :S

Apparently on windows there is malloc.h which solves the problem. But as I said. For me this works on linux, windows-msvc and windows-mingw