BJPrim BJPrim - 5 months ago 15
C Question

C with Eclipse on Ubuntu: why is an .exe and no linux executable created?

I am using Neon.3 Release (4.6.3) Eclipse IDE for C/C++ Developers under Ubuntu 15.5. When I build an run my C-program the program

  • the program executes without any errors/warnings

  • delivers the expected output in the eclipse-console

  • and generates an .exe file in the the debug folder

For me it is very much surprising that an .exe file is generated using an Linux OS (I thought these files can only be created under Windows?). How can I configure Eclipse to generate a typical Linux-executable instead?

Many thanks!

Answer Source

My comment seems to be the answer OP was looking for:

Extensions don't matter much in Linux. You can name an executable something.exe and it won't change how it runs...