I can't believe I'm writing this... just #include <abc.cpp> right above the main() function in your test.cpp file.
Then compile your application like:Code:... class P { }; #include "abc.cpp" int main() { ... }
Code:g++ test.cpp
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 14 of 14
Thread: Unable to compile?Threaded View
|
Click Here to Expand Forum to Full Width |