After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 571125 - compilation error in wmf.cpp
compilation error in wmf.cpp
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
devel
Other Linux
: Normal normal
: 0.97
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2009-02-10 04:32 UTC by Jens Getreu
Modified: 2009-02-14 21:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jens Getreu 2009-02-10 04:32:14 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
Comment 1 Hans Breuer 2009-02-14 21:13:48 UTC
2009-02-14  Hans Breuer  <hans@breuer.org>

	* plug-ins/wmf/wmf_gdi.h : define LPCWSTR, bug #571125