Author Topic: c++ compilation failed  (Read 3713 times)

0 Members and 1 Guest are viewing this topic.

Offline Ryster

  • Newbie
  • Posts: 77
    • View Profile
c++ compilation failed
« 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

Offline Raven_Singularity

  • Forum Regular
  • Posts: 158
    • View Profile
Re: c++ compilation failed
« Reply #1 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?

FellippeHeitor

  • Guest
Re: c++ compilation failed
« Reply #2 on: April 09, 2019, 07:01:24 pm »
Nope, it can't.

Offline Raven_Singularity

  • Forum Regular
  • Posts: 158
    • View Profile
Re: c++ compilation failed
« Reply #3 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.

FellippeHeitor

  • Guest
Re: c++ compilation failed
« Reply #4 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.

Offline Raven_Singularity

  • Forum Regular
  • Posts: 158
    • View Profile
Re: c++ compilation failed
« Reply #5 on: April 09, 2019, 07:42:38 pm »
Thanks for the info.