If I have my source code...graph.c and I compile it giving me my graph.obj,
how
on this earth do I manage to get my graph.h file to #include in later
rograms
? Maybe there is an easy answer but I just cant seem to work it out.
In Borland C++ I think the easiest way is to always create a Project
for each program you are working on. To include program A in program B
copy the source files for program A into project B. I think this will
be easiest for the newbie.
You can also, of course make a Library containing obj files you want to
use in other programs. You would also make a header file containing the
prototypes and decelerations needed to use the library routines. You
would '#include' this header file in source that calls the library
routines.
Best bet would be to browse local book stores for Borland C reference
that covers creation and use of libraries.
--- AdeptXBBS v2.14(WC) (*FREEWare/2*)
---------------
* Origin: The Cereal Port BBS 603-899-3335 199.125.78.133 (1:132/152)
|