Hi there Roger,
RS>DB> If I have my source code...graph.c and I compile it giving me my
RS>DB> graph.obj,how on this earth do I manage to get my graph.h file to
RS>DB> #include in later programs? Maybe there is an easy answer but I just
RS>DB> cant seem to work it out.
RS> In Borland C++ I think the easiest way is to always create a Project
RS> for each program you are working on. To include program A in program B
RS> copy the source files for program A into project B. I think this will
RS> be easiest for the newbie.
I always wondered what the Project Manager thing was for. Thanks for
answering that question too :-)
RS> You can also, of course make a Library containing obj files you want to
RS> use in other programs. You would also make a header file containing the
RS> prototypes and decelerations needed to use the library routines. You
RS> would '#include' this header file in source that calls the library
RS> routines.
See, thats what I've been trying to do. When I write the original source
code, do I make the header file then compile the *.C into the *.OBJ file to
put in my library? Usually when I do this, then #include the *.H, I get
Linker errors complaining about undefined functions and wot not. Any ideas?
(I'm sorry if I seem to be dumping this on you, but at the mo this is the
only way I can get help on this sorta stuff :-/ )
Anyway, Thanks For The Help
See ya
Dave Boyd
Where The Sewage Meets The Sand
---
---------------
* Origin: UKRAS RA Support group +44-232-768163 (2:443/59)
|