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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ANSI C++ forbids declaration `XSync'

Status
Not open for further replies.

rick05

Programmer
Feb 23, 2001
15
MX
Hi guys

I am triyng to compile VDK into a Sparc Ultra 10

but I got these errors:

/usr/openwin/include/X11/Xlib.h:3995: ANSI C++ forbids declaration `XSync' with no type
/usr/openwin/include/X11/Xlib.h:4007: ANSI C++ forbids declaration `XTextExtents' with no type
/usr/openwin/include/X11/Xlib.h:4019: ANSI C++ forbids declaration `XTextExtents16' with no type
/usr/openwin/include/X11/Xlib.h:4055: ANSI C++ forbids declaration `XUndefineCursor' with no type
/usr/openwin/include/X11/Xlib.h:4064: ANSI C++ forbids declaration `XUngrabButton' with no type
/usr/openwin/include/X11/Xlib.h:4073: ANSI C++ forbids declaration `XUngrabKey' with no type
/usr/openwin/include/X11/Xlib.h:4080: ANSI C++ forbids declaration `XUngrabKeyboard' with no type
/usr/openwin/include/X11/Xlib.h:4087: ANSI C++ forbids declaration `XUngrabPointer' with no type
/usr/openwin/include/X11/Xlib.h:4093: ANSI C++ forbids declaration `XUngrabServer' with no type
/usr/openwin/include/X11/Xlib.h:4100: ANSI C++ forbids declaration `XUninstallColormap' with no type

aparently this is because those functions doesn't have return type, and c++ doesn't accept this.

could anybody help me?

in my linuxbox is exactly the same but this worked fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top