03-06-2024, 10:46 PM
(03-06-2024, 10:26 PM)DSMan195276 Wrote:@Dsman: Yes. It could not compile as shown, so I checked the compilelog.txt and I got this. Despite what is being shown in that log, it does not compile with this. I am using stock g++ on Lubuntu.(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...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.
-----------------------
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!
@SMcNeill: I did not install anything. I was on it last night and writing code. When I came back to it, I could not compile anything, even a simple "hello world" program.