What is a C header file?

How do you run a program in c++ allegro file that contains a source code and a separated header file?

  • I'm new to allegro in c++ and I downloaded a game code that came in a folder with a header file and a source code, how do I run the game with two separate files?

  • Answer:

    You don't. You have to compile the source and header file with a compiler, which produces an object file. You then have to link the object file with a linker to produce an executable file which you can then run. Since most people don't want to be bothered, look again and see if there's already an executable in what you downloaded. The source and header are usually included so people who are into such things can look at or modify them.

bandnerd... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.