+ 2

How does the compatibility of c++'s codes works?

I sent some codes to a friend of mine to make the layout, but i have a mac and he has a PC, but when he tried to execute the code he got a lot of errors messages about variables not declared and also a problem with a line of the library warning.h.It perfectly works on my mac, what's the problem?

11th Mar 2017, 7:19 AM
Giovanni Del Gallo
Giovanni Del Gallo - avatar
2 ответов
+ 1
You both use the compiler following the ANSI CPP standards. GCC compiler is one of them. Your problem will be sorted.
11th Mar 2017, 10:19 AM
Aditi Thakur
Aditi Thakur - avatar
0
You both can try same c++ compiler. Or which compiler you use recommend you friend to install on his PC of same build and number.
11th Mar 2017, 7:22 AM
Vishal Prajapati