compiling trunk with gcc/mingw

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
AReichl
Posts: 268
Joined: Wed Jul 13, 2011 2:34 pm

compiling trunk with gcc/mingw

Post 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.
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: compiling trunk with gcc/mingw

Post 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.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: compiling trunk with gcc/mingw

Post by CuteAlien »

Aside from semicolon it looked fine to me :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
AReichl
Posts: 268
Joined: Wed Jul 13, 2011 2:34 pm

Re: compiling trunk with gcc/mingw

Post 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.
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: compiling trunk with gcc/mingw

Post by CuteAlien »

Uhm no - that also doesn't compile on VS.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: compiling trunk with gcc/mingw

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: compiling trunk with gcc/mingw

Post 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
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: compiling trunk with gcc/mingw

Post by CuteAlien »

Sorry, had to revert some more stuff to get it compiling on Linux again.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
AReichl
Posts: 268
Joined: Wed Jul 13, 2011 2:34 pm

Re: compiling trunk with gcc/mingw

Post 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 ).
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: compiling trunk with gcc/mingw

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
AReichl
Posts: 268
Joined: Wed Jul 13, 2011 2:34 pm

Re: compiling trunk with gcc/mingw

Post 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.
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: compiling trunk with gcc/mingw

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply