Encountered a problem while building with Makefile

20 views
Skip to first unread message

Gasim Gasimzada

unread,
Aug 2, 2011, 1:50:16 AM8/2/11
to gwen-discuss
Hello,
I have encountered a problem while building the project with Makefile.

Utility.cpp
../../src/Utility.cpp: In function ‘Gwen::UnicodeString
Gwen::Utility::Format(const wchar_t*, ...)’:
../../src/Utility.cpp:22: error: invalid conversion from ‘const
wchar_t*’ to ‘size_t’
../../src/Utility.cpp:22: error: cannot convert ‘char*’ to ‘const
wchar_t*’ for argument ‘3’ to ‘int vswprintf(wchar_t*, size_t, const
wchar_t*, char*)’

Line 22 in Utility.cpp:
vswprintf( strOut, fmt, s );

So i added the size_t parameter myself manually.

Please fix that issue for future releases.

Thanks,
Gasim Gasimzada
Message has been deleted

Garry Newman

unread,
Aug 2, 2011, 2:42:33 PM8/2/11
to gwen-d...@googlegroups.com
Annoyingly vswprintf seems to vary from platform to platform.. so it's probably going to require some ifdef's from me.

garry

scott lee

unread,
Aug 2, 2011, 2:42:39 PM8/2/11
to gwen-d...@googlegroups.com
You should also post an issue at this url so that it can be fixed.

http://code.google.com/p/gwen/issues/list

Isaac Wagner

unread,
Aug 2, 2011, 3:31:02 PM8/2/11
to gwen-d...@googlegroups.com
I encountered this problem when building on Windows with MinGW. I put up instructions on removing the offending code, but it seems like there ought to be a better solution. 
Reply all
Reply to author
Forward
0 new messages