+ 1

How to link two of the cpp files?

I wanna link my two of the cpp files, how can achieve it? Are there any particular function regarding the same?

5th Sep 2018, 9:24 AM
Vaibhav
Vaibhav - avatar
6 Answers
+ 2
What compiler do you use? In GCC, you can link multiple files like this: g++ -o test main.cpp anotherfile.o
5th Sep 2018, 10:12 AM
Anna
Anna - avatar
+ 1
I see. Personally, I use GCC with Linux. I'm not familiar with compilers for Windows, sorry
5th Sep 2018, 10:30 AM
Anna
Anna - avatar
+ 1
That's ok. Thanks for your guidance.
5th Sep 2018, 10:32 AM
Vaibhav
Vaibhav - avatar
0
Anna I use turbo c++ on my pc for coding in c++
5th Sep 2018, 10:16 AM
Vaibhav
Vaibhav - avatar
0
Thanks but due to board curriculum I've to use the same. By the way, and what can be other better options over turbo?
5th Sep 2018, 10:26 AM
Vaibhav
Vaibhav - avatar