Forum Thread: Error while Compiling a C program into a 32-bit executable in 64-bit Kali Linux

When I Try to Compile the Program, I Get the Following Error in the Attached Screenshot and I Googled It and Tried Running "Apt-Get Install libc6-Dev-i386" but It Didn't Work. Can Someone Help Me to Figure Out What's Wrong? (Any Help Is Greatly Appreciated)

Join the Next Reality AR Community

Get the latest in AR — delivered straight to your inbox.

4 Responses

according to your error message it could not find <bit/predefs.h>
try to find which part of your program looking for these library

umm I didn't call that library... not sure what's wrong here.. it's not in the coding

Okay installing 'libc6-dev-i386' solved part of the problem

Now the error I'm getting is "/usr/bin/ld: error: ld returned 1 exit status"

Share Your Thoughts

  • Hot
  • Active