Lib32ncurses5-dev
When porting or maintaining older C/C++ applications that were originally designed for 32-bit architectures, this package ensures the terminal interface code still compiles correctly. Installation and Dependencies
The package lib32ncurses5-dev is a development library used on 64-bit Debian-based Linux systems (like Ubuntu and Kali) to compile and build 32-bit applications that require terminal handling capabilities via Stack Overflow Key Functions and Purpose 32-bit Development Support lib32ncurses5-dev
The linker is finding the 64-bit version of the library, but you are compiling for 32-bit. Solution: Explicitly tell GCC to look in the 32-bit library path: When porting or maintaining older C/C++ applications that
# Step 1: Enable 32-bit architecture (if not already enabled) sudo dpkg --add-architecture i386 lib32ncurses5-dev
gcc -o example example.c -lncurses