Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiler Flags?

Status
Not open for further replies.

Iceman2005

Programmer
May 6, 2005
22
US
Hi guys... i need to write cross compiler code....
is there a FLAG that can differentiate vc6 vc7 (vs.net)?

example:.... i wish to be able to write code that does this.....

#ifdef VC7_FLAG
printf("THIS IS COMPILED WITH VS.NET");
#else
printf("THIS IS COMPILED WITH VC6");
#endif


so what is this "VC7_FLAG" that i need to use if i want to compile the same code...but using a different compiler it will compile differently?

thanks.
iceman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top