Well done VANYA.
Works without any problems in Linux 32, but have these errors in Linux 64.
Code: Select all
fbc -v -gen gcc -g -exx -w all "Debug.bas" (in directory: /home/dinosaur/GDBFrontEnd)
FreeBASIC Compiler - Version 1.08.1 (2021-07-08), built for linux-x86_64 (64bit)
Copyright (C) 2004-2021 The FreeBASIC development team.
target: linux-x86_64, x86-64, 64bit
backend: gcc
compiling: Debug.bas -o Debug.c (main module)
compiling C: gcc -m64 -march=x86-64 -S -nostdlib -nostdinc -Wall -Wno-unused-label -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-main -Werror-implicit-function-declaration -O0 -fno-strict-aliasing -frounding-math -fno-math-errno -fwrapv -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-format -g -masm=intel "Debug.c" -o "Debug.asm"
assembling: as --64 "Debug.asm" -o "Debug.o"
linking: ld -m elf_x86_64 -o "Debug" -dynamic-linker /lib64/ld-linux-x86-64.so.2 -T "/usr/local/bin/../lib/freebasic/linux-x86_64/fbextra.x" -L "/usr/local/bin/../lib/freebasic/linux-x86_64" -L "." -L "/usr/lib/gcc/x86_64-linux-gnu/7" "/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crt1.o" "/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o" "/usr/lib/gcc/x86_64-linux-gnu/7/crtbegin.o" "/usr/local/bin/../lib/freebasic/linux-x86_64/fbrt0.o" "Debug.o" "-(" -lgtk-x11-2.0 -lgdk-x11-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0 -lcairo -lpango-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -latk-1.0 -lz -lGL -lGLU -lwindow9 -lX11 -lscintilla -lfb -ltinfo -lm -ldl -lpthread -lgcc -lgcc_eh -lc "-)" "/usr/lib/gcc/x86_64-linux-gnu/7/crtend.o" "/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crtn.o"
Debug.o: In function `INIT_DEBUGING':
/home/dinosaur/GDBFrontEnd/Debug.bas:89: undefined reference to `DEINIT'
/home/dinosaur/GDBFrontEnd/Debug.bas:93: undefined reference to `LOAD_FILE'
/home/dinosaur/GDBFrontEnd/Debug.bas:95: undefined reference to `FILL_GLOBAL_VAR_LISTVIEW'
/home/dinosaur/GDBFrontEnd/Debug.bas:97: undefined reference to `FILL_PANEL'
/home/dinosaur/GDBFrontEnd/Debug.bas:109: undefined reference to `RESIZE_WIN'
/home/dinosaur/GDBFrontEnd/Debug.bas:119: undefined reference to `RESIZE_WIN'
Debug.o: In function `main':
/home/dinosaur/GDBFrontEnd/Debug.bas:127: undefined reference to `CREATE_MAIN_DIALOG'
/home/dinosaur/GDBFrontEnd/Debug.bas:198: undefined reference to `OPENFILEREQUESTEREXE'
/home/dinosaur/GDBFrontEnd/Debug.bas:205: undefined reference to `OPENFILEREQUESTEREXE'
/home/dinosaur/GDBFrontEnd/Debug.bas:226: undefined reference to `INFO_ALL_VARIABLES_DEBUG'
/home/dinosaur/GDBFrontEnd/Debug.bas:232: undefined reference to `INFO_LOC_VARIABLES_DEBUG'
/home/dinosaur/GDBFrontEnd/Debug.bas:244: undefined reference to `TIMER_DATA'
/home/dinosaur/GDBFrontEnd/Debug.bas:246: undefined reference to `RUN_DEBUG'
/home/dinosaur/GDBFrontEnd/Debug.bas:250: undefined reference to `RUN_DEBUG'
/home/dinosaur/GDBFrontEnd/Debug.bas:256: undefined reference to `CONTINUE_DEBUG'
/home/dinosaur/GDBFrontEnd/Debug.bas:260: undefined reference to `STEP_DEBUG'
/home/dinosaur/GDBFrontEnd/Debug.bas:264: undefined reference to `STEP_DEBUG'
/home/dinosaur/GDBFrontEnd/Debug.bas:268: undefined reference to `KILL_DEBUG'
/home/dinosaur/GDBFrontEnd/Debug.bas:276: undefined reference to `COMMAND_DEBUG'
/home/dinosaur/GDBFrontEnd/Debug.bas:290: undefined reference to `RESIZE_WIN'
/home/dinosaur/GDBFrontEnd/Debug.bas:336: undefined reference to `DIALOG_CHOOSE_DEBUG_PATH'
/home/dinosaur/GDBFrontEnd/Debug.bas:374: undefined reference to `DIALOG_SET_VALUE'
/home/dinosaur/GDBFrontEnd/Debug.bas:412: undefined reference to `INFO_LOC_VARIABLES_DEBUG'
/home/dinosaur/GDBFrontEnd/Debug.bas:416: undefined reference to `INFO_ALL_VARIABLES_DEBUG'
linking failed: 'ld' terminated with exit code 1
Compilation failed.
Regards
EDIT: Sorry, same old mistake. I was loading only Debug.bas and expecting the includes to automatically include all other files.
Had to specifically nominate each file to be compiled.
All good now.
Especially impressed that I can see all values in Struct elements.
You have just exceeded the Gede debugger.
Once again well done.