Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Untitled Source In Second Window Causes Compilation Failure in IDE #604

Open
spriggsyspriggs opened this issue Jan 26, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@spriggsyspriggs
Copy link

spriggsyspriggs commented Jan 26, 2025

Describe the bug
IDE shows that the compilation has failed, even though an exe has been generated. exe is missing the increment (2), (3), etc at the end to identify which untitled source it is.

To Reproduce
Steps to reproduce the behavior:

Open a window of QB64PE Linux. Make sure it is an untitled source.
Open a second window. The source should show as Untitled(2).
Try to compile anything.
IDE will show compilation has failed. exe will be generated in appropriate folder but missing the (2), (3), etc at the end and instead be named untitled.
Generated exe will run just fine.

Expected behavior
IDE should compile the name as untitled(2), untitled(3), etc. and not show an error in the IDE.

Screenshots

Image

Image

Desktop (please complete the following information):

  • OS: Zorin OS 17.2
  • QB64PE v4.0

Additional context
Compile log from attempt:

internal/c/qbx2.cpp: In function ‘void chain_input()’:
internal/c/qbx2.cpp:679:22: warning: ignoring return value of ‘int chdir(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  679 |                 chdir((char *)chdir_data);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~~
g++ -O2 -no-pie -std=gnu++17 -fno-strict-aliasing -Wno-conversion-null -DFREEGLUT_STATIC -I./internal/c/libqb/include -I./internal/c/parts/core/freeglut/include -I./internal/c/parts/core/glew/include -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE -DDEPENDENCY_AUDIO_MINIAUDIO ./internal/c/libqb_make_00000000.o ./internal/c/qbx2.o -o "untitled" ./internal/c/libqb/src/threading.o ./internal/c/libqb/src/buffer.o ./internal/c/libqb/src/bitops.o ./internal/c/libqb/src/command.o ./internal/c/libqb/src/environ.o ./internal/c/libqb/src/file-fields.o ./internal/c/libqb/src/filepath.o ./internal/c/libqb/src/filesystem.o ./internal/c/libqb/src/datetime.o ./internal/c/libqb/src/error_handle.o ./internal/c/libqb/src/gfs.o ./internal/c/libqb/src/qblist.o ./internal/c/libqb/src/hexoctbin.o ./internal/c/libqb/src/mem.o ./internal/c/libqb/src/math.o ./internal/c/libqb/src/shell.o ./internal/c/libqb/src/qbs.o ./internal/c/libqb/src/qbs_str.o ./internal/c/libqb/src/qbs__tostr.o ./internal/c/libqb/src/qbs_cmem.o ./internal/c/libqb/src/qbs_mk_cv.o ./internal/c/libqb/src/string_functions.o ./internal/c/libqb/src/logging/logging.o ./internal/c/libqb/src/logging/qb64pe_symbol.o ./internal/c/libqb/src/logging/stacktrace.o ./internal/c/libqb/src/logging/handlers/fp_handler.o ./internal/c/libqb/src/logging/unix/symbol.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/os/clipboard/clipboard.a ./internal/c/parts/video/font/stub_font.o ./internal/c/parts/audio/audio.a ./internal/c/parts/compression/compression.a ./internal/c/parts/core/freeglut.a ./internal/c/parts/core/glew/glew.o  -lGL -lGLU -lX11 -lpthread -ldl -lrt -lxcb -lpng -lm -lasound
objcopy --only-keep-debug "untitled" "./internal/temp2/untitled.sym"
objcopy --strip-unneeded "untitled"
@spriggsyspriggs spriggsyspriggs added the bug Something isn't working label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant