GNOME Bugzilla – Bug 571125
compilation error in wmf.cpp
Last modified: 2009-02-14 21:13:48 UTC
OS: ubuntu 08.10 snapshot: dia-SVN-20090210-0400.tar.gz make ... libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../intl -I../../lib -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2 -g -O2 -MT wmf.lo -MD -MP -MF .deps/wmf.Tpo -c wmf.cpp -fPIC -DPIC -o .libs/wmf.o wmf.cpp: In function ‘void draw_string(DiaRenderer*, const char*, Point*, Alignment, Color*)’: wmf.cpp:963: erreur: expected type-specifier wmf.cpp:963: erreur: expected `>' wmf.cpp:963: erreur: expected `(' wmf.cpp:963: erreur: ‘LPCWSTR’ is not a member of ‘W32’ wmf.cpp: In function ‘void export_data(DiagramData*, const gchar*, const gchar*, void*)’: wmf.cpp:1333: attention : ignoring return value of ‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result wmf.cpp: In function ‘PluginInitResult dia_plugin_init(PluginInfo*)’: wmf.cpp:1411: attention : deprecated conversion from string constant to ‘gchar*’ make[3]: *** [wmf.lo] Erreur 1 cheers Jens
2009-02-14 Hans Breuer <hans@breuer.org> * plug-ins/wmf/wmf_gdi.h : define LPCWSTR, bug #571125