I have a two year old game code that was completely written in cpp in xcode (not C obj). Now I have to run this game in the latest version of Xcode 4. The game is developing great with Xcode 3.2.5. But when I built the game with Xcode4, it shows the following error.
GCC 4.2 Error: Declaration of C function 'int printf(int, const char*, ...)' conflicts with in /Developer/Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/include/stdio.h
The red mark appear in line number 446 in stdio.h
Can anyone suggest me what is going on here? Thank you in advance. Any suggestions will be very noticeable.
source share