Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Relationship Between Library Files And Cpp Files Etc. Got Links?

  • Please log in to reply
1 reply to this topic

#1 chopficaro


  • Members
  • 68 posts
  • Local time:03:12 PM

Posted 11 September 2008 - 10:24 PM

ive got to start making my own libraries and using them, but i have no idea where to start. i know a tiny bit about them, like theres one type of file with all the function paramaters, and one type of file with all the function definitions, and one type of file that may have main it it, but im confusing the c++ and c syntax between these and ive got to learn this stuff fast.

can u point me in the right direction?
anyone got any links?
something for me to read?
tutorial videos?

any help would be greatly appreciated.

BC AdBot (Login to Remove)


#2 chopficaro

  • Topic Starter

  • Members
  • 68 posts
  • Local time:03:12 PM

Posted 12 September 2008 - 10:21 PM

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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users