This seems like an straightforward question, but I looked all over and could not find a solution.
So I have 2 .cpp files: a main file, and a function library that the main file needs to see. For various reasons, I do not wish to make a header file for the function library. I do, however, have a header file containing several constant variables that both .cpp files need to see.
It was to my apparently incorrect understanding that the way I would link these 3 files together is by having both cpp files "include" the header file. When I do this, however, main does not have access to the functions in the library. If I add an additional "including library" line to main, I get "error LNK2005". If I try something like having main "include" the library, and have the library "include" the header I also get "error LNK2005".
So... how can I make this set-up work?