I am trying to create a large program using multiple modules. I have the main source module that contains all of my function prototypes and the 'main' function, as well as my include files for <iostream> ect... and three sub modules where all of my other functions are defined (the ones that are prototyped in the main module). How do I get all the modules to link together? I have an #include directive at the top of each sub module with the filename for the main module in quotes, but that causes all kinds of compiler errors (mostly multiple function definitions).
I guess what I am asking is this : What directives do I need at the top of each sub module to get everything to link together and what is the syntax? I have looked through a few tutorials and books with no luck yet.



LinkBack URL
About LinkBacks


