From 6035abf10234e511c9f6a9f2ecc717fb369e4f2a Mon Sep 17 00:00:00 2001 From: Abdellah El Morabit Date: Sun, 26 Oct 2025 21:22:33 +0100 Subject: [PATCH] [bugfix] fixed a linker error when importing the structs --- CMakeLists.txt | 6 +----- source/lib.c | 7 ++++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 70399bf..cf54ff2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,9 +5,5 @@ SET(CMAKE_C_STANDARD_REQUIRED TRUE) PROJECT(synf-core) -ADD_EXECUTABLE(main - - source/main.c - source/lib.c -) +ADD_EXECUTABLE(main source/main.c source/lib.c) diff --git a/source/lib.c b/source/lib.c index 8a443ad..3460320 100644 --- a/source/lib.c +++ b/source/lib.c @@ -31,18 +31,19 @@ void cpu_name(); void cpu_threads(); void cpu_temperature(); void cpu_frequency(); - void get_total(); void get_usage(); - void mem_size(); void av_mem_size(); - void device_up_time(); void device_os_version(); void device_hostname(); void device_model(); +cpu_s *u_cpu ; +ram_s *u_ram ; +disk_s *u_disk ; +device_s *u_device ; #ifdef __gnu_linux__