Re: relationship between library files and cpp files etc. got links?

  • 10 years ago

     so, i got a project,

    main is in main.cpp

    i have a bunch of functions that are used everywhere, the declarations in func.hpp, and the definitions in func.cpp.

    at the top of main.cpp, and in func.cpp, i have #include "func"

    when i compile the project, there are only 2 files under the word "project": main.cpp and func.cpp, HOWEVER, i do have func.hpp in the same directory

    do i have it right so far?

    if so, heres my beef:

    in the past i have included other files such as iostream, but i have never had, under the word "project", the file iostream.cpp

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” - Antoine de Saint Exupéry