Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I determine which C++ compiler is used if I only can alter the C++ code and inspect console output?

Tags:

c++

Suppose there's a system like codepad.org - a black box that can accept C++ code, compile it, run it and present the console output. How could I determine what C++ compiler such system uses?

like image 887
sharptooth Avatar asked Apr 05 '11 12:04

sharptooth


1 Answers

You could have an ifdef fest to detect what the compiler is, using all the information compiled in this page.

like image 172
Jon Avatar answered Oct 16 '22 01:10

Jon