I am in the process of porting the nomacs image viewer to FreeBSD. My Makefile is quite ready, including (obviously) all needed libraries.
However, one of them is the sysinfo.h file (I added the required libsysinfo dependency). For some yet unknown reason the linker fails to use it:
The sysinfo struct is defined in the sysinfo.h file. Do I have to tell the linker to accept it separately?
However, one of them is the sysinfo.h file (I added the required libsysinfo dependency). For some yet unknown reason the linker fails to use it:
Linking CXX executable nomacs
CMakeFiles/nomacs.dir/src/DkUtils.cpp.o: In function `nmc:kMemory::getFreeMemory()':
DkUtils.cpp.text+0x68): undefined reference to `sysinfo'
CMakeFiles/nomacs.dir/src/DkUtils.cpp.o: In function `nmc:kMemory::getTotalMemory()':
DkUtils.cpp.text+0xc8): undefined reference to `sysinfo'
*** Error code 1
The sysinfo struct is defined in the sysinfo.h file. Do I have to tell the linker to accept it separately?