Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem processing X11 include files #257

Open
russel opened this issue May 8, 2020 · 0 comments
Open

Problem processing X11 include files #257

russel opened this issue May 8, 2020 · 0 comments

Comments

@russel
Copy link

russel commented May 8, 2020

I thought I would tackle the problem introduced by Murilo Miranda at https://www.facebook.com/groups/ProgrammingInDlang/?multi_permalinks=1196551170736883%2C1196081524117181%2C1195634324161901%2C1195580357500631&notif_id=1588807395656256&notif_t=group_activity&ref=notif

I created x_stuff.dpp:

#include <X11/extensions/XTest.h>

int main() {
    /* Fake the pointer movement to new relative position */
    Display dpy = XOpenDisplay(NULL);
    XTestFakeMotionEvent(dpy, 0, 300, 300, CurrentTime);
    XSync(dpy, 0);
    return 0;
}

and ran the command "d++ x_stuff.dpp" which resulted in:

Error: Could not execute `dmd ./x_stuff.d -ofx_stuff`:
./x_stuff.d(1231): Error: { } expected following `struct` declaration
./x_stuff.d(1231): Error: { } expected following `struct` declaration
./x_stuff.d(1231): Error: declaration expected, not `(`
./x_stuff.d(10621): Error: unrecognized declaration

Line 1231 is:

struct struct (anonymous at /usr/include/X11/Xlib.h:493:9)

and 10621 is:

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants