Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Qb64 is inherently broken (simple example)
#3
(03-06-2024, 10:09 PM)JamesAlexander Wrote: Just doing a loop, I should expect it to display 2 variables to display in sequence. But no...

-----------------------
For x1 = 0 To 255
For x2 = 0 To 255
        Print x2, x1
        Sleep
    Next x2
Next x1
--------------------

I cannot even get it to do a simple loop. It kicks out the compile log and gives me this overly verbose error:

"
g++  -no-pie -w -std=gnu++11 -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/src/ -I./internal/c/parts/core/glew/include/ -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal/c/qbx2.cpp -c -o internal/c/qbx2.o
g++  -no-pie -w -std=gnu++11 -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/src/ -I./internal/c/parts/core/glew/include/ -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE ./internal/c/libqb_make_000000000000.o  ./internal/c/qbx2.o -o "untitled"  ./internal/c/libqb/src/threading.o ./internal/c/libqb/src/buffer.o ./internal/c/libqb/src/filepath.o ./internal/c/libqb/src/datetime.o ./internal/c/libqb/src/rounding.o ./internal/c/libqb/src/http-stub.o ./internal/c/libqb/src/threading-posix.o ./internal/c/libqb/src/glut-main-thread.o ./internal/c/libqb/src/glut-message.o ./internal/c/libqb/src/glut-msg-queue.o ./internal/c/parts/gui/tinyfiledialogs.o ./internal/c/parts/gui/gui.o ./internal/c/parts/video/font/stub_font.o ./internal/c/parts/core/src.a  -lGL -lGLU -lX11 -lpthread -ldl -lrt
objcopy --only-keep-debug "untitled" "./internal/temp2/untitled.sym"
objcopy --strip-unneeded "untitled"
"

In Quickbasic 4.5 for Dosbox, it works fine. This is BS.

Making me really rethink just dropping this and going back to VB6 or hell, even Dos and qb4.5. At least it will work!
Can you clarify what the IDE said, just a generic `C++ compilation error` message? That log shows a successful compilation, there's no error. If you run the created `untitled` executable then it should work.
Reply


Messages In This Thread
RE: Qb64 is inherently broken (simple example) - by DSMan195276 - 03-06-2024, 10:26 PM



Users browsing this thread: 7 Guest(s)