+ 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

11th Dec 2019, 5:52 AM
The C0der
The C0der - avatar
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
11th Dec 2019, 10:20 AM
Dennis
Dennis - avatar