On Fri, 2 Sep 2011, cnook wrote:

> Dear All, Hello!
>
> I have tried to build EFL on Windows 7 and met a problem when I had build
> evas_ddraw_buffer.cpp
>
> evas_ddraw_buffer.cpp includes its evas_engine.h
> And evas_engine.h includes evas_common_soft16.h that includes evas_private.h
> finally.
> (evas_ddraw_buffer.cpp -> evas_engine.h -> evas_common_soft16.h ->
> evas_private.h)
>
>
> g++ is used for compile the evas_ddraw_buffer.cpp.
> it gives some error message as the followings.
>
> 1) evas_prevate.h:50:14: error: use of enum '_Evas_Font_Style' without
> previous declaration
>    you would be able to test using gcc and g++ to compile following code.
> g++ will give error message as above.
>     #include <stdio.h>
>     typedef enum _myenum myenum;
>     enum _myenum
>     {
>         A, B, C
>     };
>     int main()
>     {
>         printf("%d\n", B);
>         return 0;
>     }

using typedef enum _foo
{ *** } foo;

would be cleaner. I'm wondering if the c++ standard forbid such 
construction

>
> 2) evas_prevate.h:651:14: error: expected unqualified-id before 'new'
>    you would be able to test using gcc and g++ to compile following code.
> g++ will give error message.
>     #include <stdio.h>
>     struct ex1
>     {
>      int new;
>     };
>     int main()
>     {
>      struct ex1 ev;
>      ev.new = 9;
>      printf("%d\n", ev.new);
>      return 0;
>     }

no problem for me

> Anyhow I have attached patch to resolve this issue.
> Please review this and give your opinion. Thanks.

provide 2 patches

Vincent

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to