2

I am trying to run a code by someone which can be perfectly "make"ed in linux and it works fine. When I "make" in cygwin and run it I get the "cannot execute binary file" error. When I "file" the executable it says:

$ file kmeans
kmeans: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped

Does "for GNU/Linux 2.6.9" I can't run it inside the Windows? Or what do you think the problem it?

Here is a screenshot: enter image description here

Here are my files, in case you want to take a look.

Update: my gcc version: gcc version 4.9.2 (GCC)

4
  • What's the value tor Target when you run gcc -v?
    – user657267
    Commented Feb 4, 2015 at 6:15
  • gcc version 4.9.2 (GCC)
    – Daniel
    Commented Feb 4, 2015 at 6:18
  • 4
    Every time you post a screenshot of a console, Buddha kills a kitten. Commented Feb 4, 2015 at 7:25
  • @Daniel I asked for the Target, not the compiler version.
    – user657267
    Commented Feb 4, 2015 at 8:20

1 Answer 1

2

It looks like you have a kmeans (linux binary) and kmeans.exe Windows/cygwin version of your programm.
When you call ./kmeans you try to execute the Linux version in Windows.

Try to run kmeans.exe.

Not the answer you're looking for? Browse other questions tagged or ask your own question.