Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
How can i call a function in another .cpp file?
[b][red]This message was edited by akfucc at 2006-5-31 20:10:31[/red][/b][hr]
Hi,everyone,I have a problem that is how How can I call a function in another .cpp file?
Take the following code for example!
the code in main.cpp
extern void add();
the code in puts.cpp:#include
Then there are one warning and one error.
warning C4182: #include
nesting level is 363 deep; possible infinite recursion
atal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
I have solve it with using .h file.
Can you tell me how can do it with using .cpp file?
0 · ·