Re: Ubuntu Edgy vs wxWidgets
- Posted by ChrisBurch2 <crylex at freeuk.co.uk> Mar 22, 2007
- 565 views
Matt Lewis wrote: > > Matt Lewis wrote: > > > > ChrisBurch2 wrote: > > > > > > Hi > > > > > > I'm getting a few cpp cast errors. Heres the output of make with your > > > new makefile > > <snip> > > > The solution isn't trivial, I think, because of the way I've got the > > c calls set up, so that euphoria does the work of converting atoms > > too big for integers into C_INTs. I've never worked with a 64-bit > > machine, so I'm not familiar with the sorts of things that would need > > to be done. > > Thinking about it some more, I think part of the solution has to be making > euphoria build on a 64-bit architecture. There's not even a way for > euphoria to hold a 64-bit number in a primitive data type. An atom only > holds a double, which is itself 64 bits, but not all bits are devoted to > the mantissa. > > I suppose your best bet is to see if you can get (or figure out the flags) > to get gcc to cross compile to 32-bit. > > Matt Hi Adding -m32 to the CXX flags forces 32 bit compilation, and reduces the error count. It shouldn't make a difference whether this is present or not on 32 bit machines, so try it, if it doesn't then perhaps add it (or make an option for 64 bit machine detection) However, it still produces a couple of errors (and I can't copy and paste on this machine), namely /usr/local/include/wx-2.8/wx/string.h line 827 : wxChar& wxstring::operator[](unsigned int) cannot be overloaded line 824 : wxChar& wxstring::operator[](size_t) this is c++ stuff, which is hopelessly over my head. Sorry. Nearly there! Chris