--- Jos Timanta Tarigan wrote: > im > planning to make a util.cpp file with some methods, and include the cpp file > in > every classes. but i wonder since i havent seen an included .cpp files(all > included are header files)
You should not include .cpp files in other .cpp files, but you should instead include a .h header, compile both files separately and link them together. How to do this? It depends on your compiler and platform. It also depends on: Do you want your general library to be a shared library? Or do you want it to be packed with every executable? (Static or dynamic linkage?)