It is normal for the compiler to generate an application!
What is surprising is the location for the executable, it should have been generated in the parent directory:
C:\TDM-GCC-64\> gcc Chess/chess.c Chess/init.c -o chess
The explanation is interesting:
- You are using the Windows operating system, where the filenames are case insensitive.
- You instructed gcc to generate the executable into
chess, but this is the name of the
Chessdirectory. In this case, gcc generates the executable in the named directory and gives it a name that is the basename of the first source file
- Furthermore, the application name really is
chess.exein Windows, but the default setting for the file manager is to not display file extensions. This is a very unfortunate choice. I suggest you change this setting in the Windows/File Explorer Options window to always show file extensions. This will allow you to distinguish
You have a
Makefile in the Chess directory, you should use the
make command to build the executable:
C:\TDM-GCC-64\> make -C Chess
cd to the
Chess subdirectory and type: