Page 1 of 1

compiling trunk with gcc/mingw

Posted: Tue Mar 28, 2017 9:16 am
by AReichl
In "line2d.h" in function "bool incidentSegments(...)" gcc/mingw complains about one too much ';'.
Funnily for Visual Studio it's ok. Wonder what the result would be.

Re: compiling trunk with gcc/mingw

Posted: Wed Mar 29, 2017 8:47 am
by REDDemon
my fault sorry. Since Visual studio didn't complained I skipped it. Also beware if you use that function, I added it recently so maybe more experienced Irrlicht developers want to change method/signature double check it etc. I'm still writing unit tests and trying to divide the changes in smaller patches so it is easy to track eventual changes.

Re: compiling trunk with gcc/mingw

Posted: Wed Mar 29, 2017 11:18 am
by CuteAlien
Aside from semicolon it looked fine to me :-)

Re: compiling trunk with gcc/mingw

Posted: Thu Mar 30, 2017 7:56 am
by AReichl
More errors in line2d and vector2d.
I assume VisualStudio does not complain, if a template is not used anywhere, but gcc is more accurate in checking.
I can check everything you do with gcc/mingw, but i cannot write back.

Re: compiling trunk with gcc/mingw

Posted: Thu Mar 30, 2017 10:27 am
by CuteAlien
Uhm no - that also doesn't compile on VS.

Re: compiling trunk with gcc/mingw

Posted: Thu Mar 30, 2017 10:33 am
by CuteAlien
Reverted for now - should compile again. Part of the errors is that wrong variable names are used (x,y,z instead of X,Y,Z). Which should never have compiled really? Also some complains about types which I didn't understand on a quick look (have to work now, so can't check for longer).

Anyway - I guess you'll figure it out and can then apply the fixed version.

Re: compiling trunk with gcc/mingw

Posted: Thu Mar 30, 2017 1:23 pm
by REDDemon
It is time I setup cmake/gcc for irrlicht again XD. I'm finishing writing unit tests now, so any typo that VS missed because in templated code will be fixed now XD

Re: compiling trunk with gcc/mingw

Posted: Thu Mar 30, 2017 10:09 pm
by CuteAlien
Sorry, had to revert some more stuff to get it compiling on Linux again.

Re: compiling trunk with gcc/mingw

Posted: Fri Mar 31, 2017 9:37 am
by AReichl
there are some places with:

const & vector<...> Parameter

it compiles when changing to:

const vector<...> & Parameter

Visual Studio let it through, gcc not.

I am compiling Irrlicht on different compilers all the time anyway ( just for fun ),
so i could check such typos, correct them and commit ( need permission for that ).

Re: compiling trunk with gcc/mingw

Posted: Fri Mar 31, 2017 10:20 am
by CuteAlien
Yeah, maybe not a bad idea to give you write access for that. Thought we can still fix that one for now. Just wondering which gcc version you got that with (as I fixed all problems I had with my gcc there last evening). Or was that the error for the version from yesterday. Could be the one I didn't figure last morning with the wrong types... must admit I didn't even know const& was not OK.

Re: compiling trunk with gcc/mingw

Posted: Mon Apr 03, 2017 8:35 am
by AReichl
I have all Versions from 4.8.4 up to 6.3.0 from the MinGW-w64 "distribution". For some special libraries i sometimes HAVE to use TDM.

Re: compiling trunk with gcc/mingw

Posted: Mon Apr 03, 2017 10:46 am
by CuteAlien
Ah ok. I hope it works again. I also messed up MinGW accidentally last days because I didn't know it compiles per default still in a way that works on Windows 98. And I'm also not always testing that one immediately.