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? Commented Feb 4, 2015 at 6:15
  • gcc version 4.9.2 (GCC) 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. 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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.