Author Topic: compilation error  (Read 3009 times)

0 Members and 1 Guest are viewing this topic.

Offline Dremex

  • Newbie
  • Posts: 3
    • View Profile
compilation error
« on: November 15, 2020, 03:03:15 am »
Hello everyone on the Forum.
Using the latest QBv1.4x32 displays the message:

In file included from qbx.cpp: 2208:
.. \\ temp \\ main.txt: In function 'void QBMAIN (void *)':
.. \\ temp \\ main.txt: 541996: note: -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code / headers
  makefit (tqbs);
cc1plus.exe: out of memory allocating 65536 bytes

So I have a question, is there a technical possibility in the future to fix the compiler tool so that this does not happen again.

Regards - Dremex

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: compilation error
« Reply #1 on: November 15, 2020, 03:13:32 am »
Probably not in the 32-bit version.  You’ve got over 541,000 lines of translated code, and c is running out of memory to compile.

My guess is you have too many complex PRINT statements in your code, and you need to restructure it to reduce translated line count.  I’ve talked about it several times in the past:  PRINT is a real piece of work in translating QB64-code into c-code.  Minimize its use, as much as possible.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

FellippeHeitor

  • Guest
Re: compilation error
« Reply #2 on: November 15, 2020, 04:25:07 am »
Wow, that's a massive project. As Steve said, there must be optimizations we can do to your code to prevent the error from happening. Please attach it so we can peek.

Did you try the 64bit version? Get it from https://github.com/QB64Team/qb64/releases/tag/v1.4

Also, try it with the latest development build: https://www.qb64.org/portal/development-build/

We want everyone, u included, to party with QB64.

Welcome to the forum.
« Last Edit: November 15, 2020, 04:27:44 am by FellippeHeitor »

Offline Dremex

  • Newbie
  • Posts: 3
    • View Profile
Re: compilation error
« Reply #3 on: November 15, 2020, 05:02:38 am »
Hello FellippeHeitor
The 64-bit version works fine.
If there is no technical possibility to fix QB64x32, I consider the topic closed.
Regards

FellippeHeitor

  • Guest
Re: compilation error
« Reply #4 on: November 15, 2020, 05:09:33 am »
Good to hear. Unfortunately criss-compilation isn't possible, so you will have to stick with 64bit. It's natural that there are limitations due to the difference in architecture.

FellippeHeitor

  • Guest
Re: compilation error
« Reply #5 on: November 15, 2020, 05:10:04 am »
*cross-compilation

Offline Dremex

  • Newbie
  • Posts: 3
    • View Profile
Re: compilation error
« Reply #6 on: November 15, 2020, 07:26:49 am »
Thank You very much FellippeHeitor
This is a concrete answer.

Regards - Dremex