+ 1
How do I call a function without getting the error "#include nested too deeply"?
Hi all, I have been making a console game with C++. You can view the source code and a README file at Dropbox. https://www.dropbox.com/sh/op1ndj247hp0t0c/AAABd_aNCwLQRcvTuaulekcLa?dl=0
1 Resposta
+ 1
Never ever include .cpp files.
You should put declarations in a header file and definitions in a cpp file, then, only include the header file. The linker will deal with the rest.
Read up on it here:
http://www.math.uaa.alaska.edu/~afkjm/csce211/handouts/SeparateCompilation.pdf