
u/Bubbly_Tough_284

a lot of "undefined reference"s even when raylib is linked
I am using devuan testing that is up to date with the latest raylib version, a test program does compile and link and checking with ldd all the stuff is properly linked.
With my makefile
# Tuxanci 2 - A first person shooter
# Copyright (C) 2025-2026 Connor Thomson
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Enable debug. true or false?
DEBUG ?= false
# Paths
SRC := src
INCLUDE := include
BUILD ?= build
TARGET := tuxanci2
# clang might work too
CSTD ?= c99
CFLAGS := -std=$(CSTD) \
-lraylib \
-Wall \
-Wextra \
-Werror \
-pedantic \
-pedantic-errors \
-I$(INCLUDE)
# If DEBUG is true, enable debugging stuff
ifeq '$(DEBUG)' 'true'
# Define DEBUG
FLAGS += -DDEBUG
# Compile for debugging
CFLAGS += -O0 -g
endif
# Find all C source files
CSRCS := $(shell find src -name "*.c")
all: $(TARGET)
$(BUILD):
mkdir -p $(BUILD)
$(TARGET): $(BUILD)
$(CC) $(CFLAGS) $(CSRCS) -o $(TARGET)
# Remove $(BUILD)
clean:
rm -rf $(BUILD)
i get
connor@dell:~/tuxanci2$ make
cc -std=c99 -lraylib -Wall -Wextra -Werror -pedantic -pedantic-errors -Iinclude src/main.c src/monitor.c src/window.c src/log.c -o tuxanci2
/usr/bin/x86_64-linux-gnu-ld.bfd: /tmp/ccG6XtfP.o: in function `monitorUpdate':
monitor.c:(.text+0x5): undefined reference to `GetCurrentMonitor'
/usr/bin/x86_64-linux-gnu-ld.bfd: monitor.c:(.text+0x28): undefined reference to `GetMonitorWidth'
/usr/bin/x86_64-linux-gnu-ld.bfd: monitor.c:(.text+0x3b): undefined reference to `GetMonitorHeight'
/usr/bin/x86_64-linux-gnu-ld.bfd: monitor.c:(.text+0x4e): undefined reference to `GetMonitorRefreshRate'
/usr/bin/x86_64-linux-gnu-ld.bfd: /tmp/ccG6XtfP.o: in function `monitorInit':
monitor.c:(.text+0x60): undefined reference to `GetCurrentMonitor'
/usr/bin/x86_64-linux-gnu-ld.bfd: monitor.c:(.text+0x73): undefined reference to `GetMonitorWidth'
/usr/bin/x86_64-linux-gnu-ld.bfd: monitor.c:(.text+0x86): undefined reference to `GetMonitorHeight'
/usr/bin/x86_64-linux-gnu-ld.bfd: monitor.c:(.text+0x99): undefined reference to `GetMonitorRefreshRate'
/usr/bin/x86_64-linux-gnu-ld.bfd: /tmp/ccN6CUEt.o: in function `windowSetFullscreen':
window.c:(.text+0x19): undefined reference to `SetWindowState'
/usr/bin/x86_64-linux-gnu-ld.bfd: window.c:(.text+0x25): undefined reference to `ClearWindowState'
/usr/bin/x86_64-linux-gnu-ld.bfd: /tmp/ccN6CUEt.o: in function `windowUpdateWindowValues':
window.c:(.text+0x31): undefined reference to `WindowShouldClose'
/usr/bin/x86_64-linux-gnu-ld.bfd: window.c:(.text+0x5c): undefined reference to `SetWindowSize'
/usr/bin/x86_64-linux-gnu-ld.bfd: window.c:(.text+0x8d): undefined reference to `SetWindowSize'
/usr/bin/x86_64-linux-gnu-ld.bfd: window.c:(.text+0xb6): undefined reference to `SetTargetFPS'
/usr/bin/x86_64-linux-gnu-ld.bfd: window.c:(.text+0xe4): undefined reference to `SetWindowTitle'
/usr/bin/x86_64-linux-gnu-ld.bfd: /tmp/ccN6CUEt.o: in function `windowInit':
window.c:(.text+0x169): undefined reference to `InitWindow'
/usr/bin/x86_64-linux-gnu-ld.bfd: /tmp/ccy7ca6B.o: in function `logInit':
log.c:(.text+0xa): undefined reference to `SetTraceLogLevel'
/usr/bin/x86_64-linux-gnu-ld.bfd: /tmp/ccy7ca6B.o: in function `logWarning':
log.c:(.text+0x4f): undefined reference to `TraceLog'
/usr/bin/x86_64-linux-gnu-ld.bfd: /tmp/ccy7ca6B.o: in function `logError':
log.c:(.text+0x7e): undefined reference to `TraceLog'
/usr/bin/x86_64-linux-gnu-ld.bfd: /tmp/ccy7ca6B.o: in function `logFatal':
log.c:(.text+0xad): undefined reference to `TraceLog'
collect2: error: ld returned 1 exit status
make: *** [Makefile:56: tuxanci2] Error 1
connor@dell:~/tuxanci2$
Some packages not available on testing
deb http://us.deb.devuan.org/merged testing main contrib non-free non-free-firmware
deb-src http://us.deb.devuan.org/merged testing main contrib non-free non-free-firmware
I do not use the new /etc/apt/sources.list.d so here is my /etc/apt/sources.listand some packages are missing like Blender and tilp2
connor@dell:~$ sudo apt install tilp2
Package tilp2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Error: Package 'tilp2' has no installation candidate
connor@dell:~$
Is there any way to hide the cursor when there is no container selected?
Is there any way to hide the cursor when there is no container selected? Thanks!
How do I increase mouse sensitivity on river-classic
I used `riverctl input pointer-3727-32-PS2toUSB_PS2toUSB_Adapter_Mouse pointer-accel 1.0` but I need even more faster
Making my first 65C02 computer, anything I could improve?
Destroyed this IBM travelstar
Had some classified data and windows 98 on it to my knowledge, had the click of death so i took a sledge hammer to it and saw the glass platters get everywhere, pretty fun.
Is the drivers on the HD 280 Pro MK1 the same as the ones on the MK2?
I have blown the drivers on my MK2 and I have a old MK1 that I would like to use the drivers from, is the drivers the same?