7280172f84186a2ed1290793f7ed46e1946745ab — Romain Vimont a month ago 68a821c
Fix gcc arguments order

The command to build the example failed with gcc, because
-lwayland-client was passed before client.c:

    $ clang -o client client.c -lwayland-client
    $ gcc   -o client client.c -lwayland-client
    $ clang -o client -lwayland-client client.c
    $ gcc   -o client -lwayland-client client.c
    /usr/bin/ld: /tmp/ccgg4wcL.o: in function `main':
    client.c:(.text+0x15): undefined reference to `wl_display_connect'
    /usr/bin/ld: client.c:(.text+0x73): undefined reference to `wl_display_disconnect'
    collect2: error: ld returned 1 exit status
1 files changed, 1 insertions(+), 1 deletions(-)

M src/wayland-display/creation.md
M src/wayland-display/creation.md => src/wayland-display/creation.md +1 -1
@@ 30,7 30,7 @@ Let's compile and run this program. Assuming you're using a Wayland compositor
as you read this, the result should look like this:

$ cc -o client -lwayland-client client.c
$ cc -o client client.c -lwayland-client
$ ./client
Connection established!