QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Ryster on April 09, 2019, 02:41:16 pm

Title: c++ compilation failed
Post by: Ryster on April 09, 2019, 02:41:16 pm
You have to praise the creators for QB64 under Windows - it works fine since December 2018. I downloaded a new version under Linux to test my code. Earlier QB64 under Linux worked only to a certain point. When the code was significantly enlarged, the compilation was no longer successful. Returning to the new version under Linux. I wanted to test my code and unfortunately to my surprise the compilation failed. And it was written that the problem with memory was solved, and here is such a surprise. Error plug below compile.log: cc1plus: out of memory allocating 16 bytes after a total of 5422440448 bytes
Title: Re: c++ compilation failed
Post by: Raven_Singularity on April 09, 2019, 07:00:14 pm
I don't have any help for you, but I do have a question:

Can the Windows version of QB64 compile MacOS and Linux binaries?
Title: Re: c++ compilation failed
Post by: FellippeHeitor on April 09, 2019, 07:01:24 pm
Nope, it can't.
Title: Re: c++ compilation failed
Post by: Raven_Singularity on April 09, 2019, 07:23:08 pm
Ah, that's too bad.

If cross-compiling worked, one could fall back to compiling on whichever system was working when compiler quirks (like Ryster's) show up.

Would it be hard to add cross-compiling support for QB64?  Most compilers support cross-compiling without too much difficulty.  But if different compilers are being used on the different OSes, then it would probably be a lot of work.
Title: Re: c++ compilation failed
Post by: FellippeHeitor on April 09, 2019, 07:24:46 pm
We ship a compiler for Windows and use whatever is available on Linux. For macOS we use Xcode's command-line tools.
Title: Re: c++ compilation failed
Post by: Raven_Singularity on April 09, 2019, 07:42:38 pm
Thanks for the info.