0

I am currently trying to use the libssh.dll library to implement a c program that shall connect to remote computers.I am using gcc to compile the program. When compiling this program, I received this error:

i386 architecture of input file 'libssh/bin/libssh.ddl' is incompatible with i386:x86-64 output

I tried compiling the program with the -m32 flag, but then i receive these errors:

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-cygwin/4.8.2//libgcc_s.dll.a when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-cygwin/4.8.2//libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../libcygwin.a when searching for -lcygwin
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-cygwin/4.8.2/libgcc_s.dll.a when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-cygwin/4.8.2//libgcc.a when searching for -lgcc

Any ideas how to fix this issue?

1 Answers1

0

You need to install the 32-bit version of the C library.

The 32-bit libraries are required if you want to be able to compile and link with the -m32 option.

Have you installed cygwin32 ?

Thomas Coudray
  • 134
  • 1
  • 4