have u linked X11 library while compiling
the general way of compiling is
gcc file.c -L/usr/lib/X11 -lX11
sometimes /usr/lib/X11 may not be present
it cud be like /usr/lib/Xfree86
depending on the availability you give the required options..i hope it cud lelp..
On Nov 6, 2007 10:31 AM, maxwell <max@xxxxxxxxxxxxx> wrote:
I DO NOT KNOW MUCH ...
I tried to compile program that need X11
get this error :
/usr/include/X11/extensions/XKBsrv.h:633: error: variable or field
'XkbFlushLedEvents' declared void
/usr/include/X11/extensions/XKBsrv.h:633: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:634: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:635: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:636: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:636: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:637: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:639: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:639: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:647: warning:
'XkbIndicatorsToUpdate' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:647: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:648: error: expected
primary-_expression_ before 'unsigned'
/usr/include/X11/extensions/XKBsrv.h:649: error: expected
primary-_expression_ before 'int'
/usr/include/X11/extensions/XKBsrv.h:650: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:664: warning:
'XkbCheckIndicatorMaps' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:664: error: variable or field
'XkbCheckIndicatorMaps' declared void
/usr/include/X11/extensions/XKBsrv.h:664: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:665: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:666: error: expected
primary-_expression_ before 'unsigned'
/usr/include/X11/extensions/XKBsrv.h:667: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:675: warning: 'XkbSendStateNotify'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:675: error: variable or field
'XkbSendStateNotify' declared void
/usr/include/X11/extensions/XKBsrv.h:675: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:676: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:677: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:677: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:680: warning: 'XkbSendMapNotify'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:680: error: variable or field
'XkbSendMapNotify' declared void
/usr/include/X11/extensions/XKBsrv.h:680: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:681: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:682: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:682: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:685: warning:
'XkbComputeControlsNotify' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:685: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:686: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:687: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:688: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:688: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:689: error: expected
primary-_expression_ before 'int'
/usr/include/X11/extensions/XKBsrv.h:690: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:693: warning:
'XkbSendControlsNotify' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:693: error: variable or field
'XkbSendControlsNotify' declared void
/usr/include/X11/extensions/XKBsrv.h:693: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:694: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:695: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:695: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:698: warning:
'XkbSendCompatMapNotify' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:698: error: variable or field
'XkbSendCompatMapNotify' declared void
/usr/include/X11/extensions/XKBsrv.h:698: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:699: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:700: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:700: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:703: warning:
'XkbSendIndicatorNotify' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:703: error: variable or field
'XkbSendIndicatorNotify' declared void
/usr/include/X11/extensions/XKBsrv.h:703: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:704: error: expected
primary-_expression_ before 'int'
/usr/include/X11/extensions/XKBsrv.h:705: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:706: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:706: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:711: error: 'DeviceIntPtr' has not
been declared
/usr/include/X11/extensions/XKBsrv.h:716: error: 'WindowPtr' has not
been declared
/usr/include/X11/extensions/XKBsrv.h:721: warning:
'XkbSendAccessXNotify' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:721: error: variable or field
'XkbSendAccessXNotify' declared void
/usr/include/X11/extensions/XKBsrv.h:721: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:722: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:723: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:723: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:726: warning: 'XkbSendNamesNotify'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:726: error: variable or field
'XkbSendNamesNotify' declared void
/usr/include/X11/extensions/XKBsrv.h:726: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:727: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:728: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:728: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:731: warning: 'XkbSendCompatNotify'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:731: error: variable or field
'XkbSendCompatNotify' declared void
/usr/include/X11/extensions/XKBsrv.h:731: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:732: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:733: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:733: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:736: warning:
'XkbSendActionMessage' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:736: error: variable or field
'XkbSendActionMessage' declared void
/usr/include/X11/extensions/XKBsrv.h:736: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:737: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:738: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:738: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:741: warning:
'XkbSendExtensionDeviceNotify' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:741: error: variable or field
'XkbSendExtensionDeviceNotify' declared void
/usr/include/X11/extensions/XKBsrv.h:741: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:742: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:743: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:744: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:744: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:747: warning: 'XkbSendNotification'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:747: error: variable or field
'XkbSendNotification' declared void
/usr/include/X11/extensions/XKBsrv.h:747: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:748: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:750: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:750: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:754: error: 'DeviceIntPtr' has not
been declared
/usr/include/X11/extensions/XKBsrv.h:760: error: 'DeviceIntPtr' has not
been declared
/usr/include/X11/extensions/XKBsrv.h:765: warning: 'XkbHandleActions'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:765: error: variable or field
'XkbHandleActions' declared void
/usr/include/X11/extensions/XKBsrv.h:765: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:766: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:767: error: expected
primary-_expression_ before 'struct'
/usr/include/X11/extensions/XKBsrv.h:768: error: expected
primary-_expression_ before 'int'
/usr/include/X11/extensions/XKBsrv.h:769: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:780: warning: 'AccessXInit'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:780: error: variable or field
'AccessXInit' declared void
/usr/include/X11/extensions/XKBsrv.h:780: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:787: error: ISO C++ forbids
declaration of 'DeviceIntPtr' with no type
/usr/include/X11/extensions/XKBsrv.h:793: error: ISO C++ forbids
declaration of 'DeviceIntPtr' with no type
/usr/include/X11/extensions/XKBsrv.h:829: warning:
'XkbFindClientResource' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:829: error: 'DevicePtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:831: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:831: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:834: warning:
'XkbAddClientResource' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:834: error: 'DevicePtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:835: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:837: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:837: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:840: warning: 'XkbRemoveClient'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:840: error: 'DevicePtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:842: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:842: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:845: warning:
'XkbRemoveResourceClient' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:845: error: 'DevicePtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:847: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:847: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:850: warning: 'XkbDDXInitDevice'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:850: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:854: warning: 'XkbDDXAccessXBeep'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:854: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:855: error: expected
primary-_expression_ before 'unsigned'
/usr/include/X11/extensions/XKBsrv.h:856: error: expected
primary-_expression_ before 'unsigned'
/usr/include/X11/extensions/XKBsrv.h:857: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:860: warning: 'XkbDDXKeyClick'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:860: error: variable or field
'XkbDDXKeyClick' declared void
/usr/include/X11/extensions/XKBsrv.h:860: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:861: error: expected
primary-_expression_ before 'int'
/usr/include/X11/extensions/XKBsrv.h:862: error: expected
primary-_expression_ before 'int'
/usr/include/X11/extensions/XKBsrv.h:863: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:866: warning:
'XkbDDXUsesSoftRepeat' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:866: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:870: warning: 'XkbDDXKeybdCtrlProc'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:870: error: variable or field
'XkbDDXKeybdCtrlProc' declared void
/usr/include/X11/extensions/XKBsrv.h:870: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:871: error: 'KeybdCtrl' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:872: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:872: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:875: warning:
'XkbDDXChangeControls' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:875: error: variable or field
'XkbDDXChangeControls' declared void
/usr/include/X11/extensions/XKBsrv.h:875: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:876: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:878: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:878: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:881: warning:
'XkbDDXUpdateIndicators' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:881: error: variable or field
'XkbDDXUpdateIndicators' declared void
/usr/include/X11/extensions/XKBsrv.h:881: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:883: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:883: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:886: warning:
'XkbDDXUpdateDeviceIndicators' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:886: error: variable or field
'XkbDDXUpdateDeviceIndicators' declared void
/usr/include/X11/extensions/XKBsrv.h:886: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:887: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:889: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:889: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:903: warning:
'XkbDDXFakeDeviceButton' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:903: error: variable or field
'XkbDDXFakeDeviceButton' declared void
/usr/include/X11/extensions/XKBsrv.h:903: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:904: error: expected
primary-_expression_ before 'int'
/usr/include/X11/extensions/XKBsrv.h:905: error: expected
primary-_expression_ before 'int'
/usr/include/X11/extensions/XKBsrv.h:906: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:909: warning:
'XkbDDXTerminateServer' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:909: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:910: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:911: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:912: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:912: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:915: warning: 'XkbDDXSwitchScreen'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:915: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:916: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:917: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:918: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:918: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:921: warning: 'XkbDDXPrivate'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:921: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:922: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:923: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:924: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:924: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:927: warning:
'XkbDisableComputedAutoRepeats' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:927: error: variable or field
'XkbDisableComputedAutoRepeats' declared void
/usr/include/X11/extensions/XKBsrv.h:927: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:928: error: expected
primary-_expression_ before 'unsigned'
/usr/include/X11/extensions/XKBsrv.h:929: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:932: warning: 'XkbSetRepeatKeys'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:932: error: variable or field
'XkbSetRepeatKeys' declared void
/usr/include/X11/extensions/XKBsrv.h:932: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:933: error: expected
primary-_expression_ before 'int'
/usr/include/X11/extensions/XKBsrv.h:934: error: expected
primary-_expression_ before 'int'
/usr/include/X11/extensions/XKBsrv.h:935: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:938: warning: 'XkbLatchModifiers'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:938: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:939: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:941: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:941: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:944: warning: 'XkbLatchGroup'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:944: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:945: error: expected
primary-_expression_ before 'int'
/usr/include/X11/extensions/XKBsrv.h:946: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:949: warning:
'XkbClearAllLatchesAndLocks' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:949: error: variable or field
'XkbClearAllLatchesAndLocks' declared void
/usr/include/X11/extensions/XKBsrv.h:949: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:950: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:951: error: expected
primary-_expression_ before 'int'
/usr/include/X11/extensions/XKBsrv.h:953: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:953: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:964: warning: 'XkbInitDevice'
initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:964: error: variable or field
'XkbInitDevice' declared void
/usr/include/X11/extensions/XKBsrv.h:964: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:968: warning:
'XkbInitKeyboardDeviceStruct' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:968: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:969: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:970: error: 'KeySymsPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:971: error: expected
primary-_expression_ before '[' token
/usr/include/X11/extensions/XKBsrv.h:971: error: expected
primary-_expression_ before ']' token
/usr/include/X11/extensions/XKBsrv.h:972: error: 'BellProcPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:973: error: 'KbdCtrlProcPtr' was
not declared in this scope
/usr/include/X11/extensions/XKBsrv.h:974: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:981: warning:
'XkbLookupNamedGeometry' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:981: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:982: error: expected
primary-_expression_ before ',' token
/usr/include/X11/extensions/XKBsrv.h:983: error: expected
primary-_expression_ before 'int'
/usr/include/X11/extensions/XKBsrv.h:984: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/XKBsrv.h:1004: warning:
'XkbFinishDeviceInit' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:1004: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:1092: warning:
'XkbSendNewKeyboardNotify' initialized and declared 'extern'
/usr/include/X11/extensions/XKBsrv.h:1092: error: variable or field
'XkbSendNewKeyboardNotify' declared void
/usr/include/X11/extensions/XKBsrv.h:1092: error: 'DeviceIntPtr' was not
declared in this scope
/usr/include/X11/extensions/XKBsrv.h:1093: error: expected
primary-_expression_ before '*' token
/usr/include/X11/extensions/XKBsrv.h:1094: error: expected
primary-_expression_ before ')' token
/usr/include/X11/extensions/XKBsrv.h:1094: error: initializer _expression_
list treated as compound _expression_
/usr/include/X11/extensions/Xagsrv.h:61: error: 'WindowPtr' has not been
declared
/usr/include/X11/Xaw/TemplateP.h:56: error: expected unqualified-id
before 'private'
/usr/include/X11/Xaw/TemplateP.h:56: error: abstract declarator 'char*'
used as declaration
/usr/include/X11/Xaw/TemplateP.h:56: error: expected ';' before 'private'
x15.cpp: In function 'int main()':
x15.cpp:351: error: redeclaration of 'cimg_library::CImg<unsigned char> img'
x15.cpp:345: error: 'cimg_library::CImg<unsigned char> img' previously
declared here
x15.cpp: At global scope:
x15.cpp :382: error: expected `}' at end of input
I have included all the header files and was testing it out
ultimately to de the Cimg iage library
Max
_______________________________________________
XFree86 mailing list
XFree86@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86
--
Thanks & Regards
sridhar gupta yerram