Hi,

The ewl book seems to be a bit outdated, take a look here :
http://docs.enlightenment.org/api/ewl/html/getting_started.html

gcc -g -o main main.c `pkg-config ewl --libs --cflags`


Regards

Vincent

2008/12/22 Peter Stumm <peterst...@gmx.de>

> Hi,
> i have installed enlightenment with the easy_e17.sh script from
> http://omicron.homeip.net/projects/#easy_e17.sh ,
> first i can't compile notification and screenshot (i skipped these)
>
> then i want to compile a little program i have from the ewl book
>        #include <stdio.h>
>        #include <Ewl.h>
>        void destroy_cb(Ewl_Widget *w, void *event, void *data) {
>            ewl_widget_destroy(w);
>            ewl_main_quit();
>        }
>        int main(int argc, char ** argv) {
>            Ewl_Widget *win = NULL;
>            if (!ewl_init(&argc, argv)) {
>                printf("Unable to init ewl\n");
>                return 1;
>            }
>            win = ewl_window_new();
>            ewl_window_title_set(EWL_WINDOW(win), "EWL Window");
>            ewl_window_name_set(EWL_WINDOW(win), "EWL_WINDOW");
>            ewl_window_class_set(EWL_WINDOW(win), "EWLWindow");
>            ewl_object_size_request(EWL_OBJECT(win), 200, 100);
>            ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW,
>        destroy_cb, NULL);
>            ewl_widget_show(win);
>            ewl_main();
>            return 0;
>        }
> i compiled the code with
> gcc main.c -I/opt/e17/include/ewl  -I/opt/e17/include/
> -I/opt/e17/include/eina-0  -I/opt/e17/include/eina-0/eina
> -L/opt/e17/lib/ewl
>
> then i get following errors
>        /tmp/ccs04jss.o: In function `destroy_cb':
>        main.c:(.text+0xd): undefined reference to `ewl_widget_destroy'
>        main.c:(.text+0x12): undefined reference to `ewl_main_quit'
>        /tmp/ccs04jss.o: In function `main':
>        main.c:(.text+0x3b): undefined reference to `ewl_init'
>        main.c:(.text+0x5c): undefined reference to `ewl_window_new'
>        main.c:(.text+0x72): undefined reference to
>        `ewl_window_title_set'
>        main.c:(.text+0x85): undefined reference to
>        `ewl_window_name_set'
>        main.c:(.text+0x98): undefined reference to
>        `ewl_window_class_set'
>        main.c:(.text+0xb3): undefined reference to
>        `ewl_object_size_request'
>        main.c:(.text+0xb8): undefined reference to
>        `EWL_CALLBACK_DELETE_WINDOW'
>        main.c:(.text+0xd7): undefined reference to
>        `ewl_callback_append'
>        main.c:(.text+0xe2): undefined reference to `ewl_widget_show'
>        main.c:(.text+0xe7): undefined reference to `ewl_main'
>        collect2: ld gab 1 als Ende-Status zurück
>
> hope you can help me
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> enlightenment-users mailing list
> enlightenment-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
>
------------------------------------------------------------------------------
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to