1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Compillation error

Discussion in 'C++' started by tsotne1990, Oct 2, 2010.

  1. tsotne1990

    tsotne1990 New Member

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    Hi guys!

    Can anyone help me? Im a new to this site and C++ environment.
    Im running a Microsoft Visual C++ express 2010 and I write a code in 3 separate files. 1 of them is a header file with an extention .h. and 2 of them are .cpp files. I have defined function prototype in the header file and its implementation in .cpp file. Then i execute this code in "int main" function which i have defined into the 3rd separate file. And while compiling it shows a linker error. i think the problem is the location of those many files. How shall i place those files to make the main program execute????
    How can i link those files and where to execute the application

    Thank you

Share This Page