MADEAPPS / newton-dynamics

Newton Dynamics is an integrated solution for real time simulation of physics environments.
http://www.newtondynamics.com
Other
938 stars 182 forks source link

Fix compilation for MinGW #226

Closed iSLC closed 3 years ago

iSLC commented 3 years ago

Several fixes and changes to allow compilation of 4.0 version with MinGW.

Some of these might not be necessary just for MinGW. Few of them are up for debate but they're not bad.

PS EDIT: Very impressed with how smooth and fast the whole thing runs.

JulioJerez commented 3 years ago

ok I tried to merge ths pull request, but is says is has some conflict. I do no really knwo hwo to resolve them. can you check the out and re submit it? the I try again?

JulioJerez commented 3 years ago

ok I when over the changes one by one and I applied them manually. some where already made, but most where very important. thank you very much

JulioJerez commented 3 years ago

these where the changes and the conflicts Do not use undeclared variables. done Default argument for template parameters should only be assigned once. … done (kept lowercase allocator) Forward declare missing ndScene class/include. done Remove extra qualification from ndBodyPlayerCapsule class method. done Add missing include before attempting to use dMemory class. done Workaround for missing _clearfp/_controlfp on mingw. done Check against _MSC_VER instead of WIN32 to be consistent with declara… … done Fix anonymous union usage. done Actually enable AVX in compiler before attempting to use it in code. done The code actually uses AVX2 and FMA. … done Forward declare class ndDemoDebriEntityRoot before using it. done Allow this method to be used with string literals without compiler wa… … done LPSTR is char and string literals are const char. … done Fix declaration of thread local variable for mingw. … done