Compiling a C header file by mistake…

Compiling a C header file in Win8 64 bit

Today by mistake I compiled a C header file (*.h). The first I knew of this was when an error message box appeared telling me this version of Windows did not support 16 bit applications.

Compiling C header file by mistake

Compiling header by mistake gives 16 bit unsupported error message..

At this point I was unaware that by mistake I had compiled the header file and not the intended .c file (with the main function). I thought it was my code not working and I started to Google search this error.
Only after spending ten minutes searching did I look at what I had done again in Geany4Windows and notice I had compiled the wrong file!

Of course when I compiled the intended *.c file all was well as a binary file was created….

Be Sociable, Share!
This entry was posted in C programming and tagged , . Bookmark the permalink. | Permalink | 15582 Views

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge