Skip to main content
GameDev.net gamedev.net
🔒 Locked

Newbie source code management question!

Started by WoolyUK Oct 8, 2002 at 5:58 PM 1 replies 200+ views
Original Post
WoolyUK
WoolyUK
Hi guys, was wondering if I could get some help or a couple of links to any sites that explain how to seperate your code up into seperate files, .h files etc and how to include them in your projects! I would like to be able to have several different files for related functions and include them in any of my projects - I know this is probably simple but I just cant figure it out properly! Any links or comments would be very welcome! Thanks a lot, Adam
Fruny
Fruny
http://www.gamedev.net/reference/programming/features/orgfiles/

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
WoolyUK
WoolyUK
Thanks!

So if I split functions into a file called "test.cpp" and it has a header file "test.h", do I just #include <test.h> in my project and it will auto use test.cpp too or do I have to specify both files?

Thanks again, Adam

[edited by - WoolyUK on October 9, 2002 5:38:17 AM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.