From: SourceForge.net <no...@so...> - 2007-09-22 08:07:15
|
Bugs item #1800110, was opened at 2007-09-22 11:07 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1800110&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: mingw runtime Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: O. Sezer (sezero) Assigned to: Nobody/Anonymous (nobody) Summary: error with %l in mingw-runtime-3.13-20070825-1 Initial Comment: If I use snprintf / vsnprintf in my code (not the msvcrt underscore-prefixed versions), %l or %lu prints incorrect numbers. I use this format (dwBufferBytes is DWORD): ("%lu bytes in sound buffer\n", (unsigned long)dsbcaps.dwBufferBytes) With runtime 3.12 it reports 262144, but with the new runtime-3.13-20070825-1 I get 67548840450064384 . This looks like a problem with the C99 compatibility added in the new version. The full suit I use to compile my binaries is like this: 'Good' version: gcc-core-3.4.5-20060117-1 gcc-g++-3.4.5-20060117-1 binutils-2.17.50-20070129-1 w32api-3.9 mingw-runtime-3.12 It is a cross compile toolchain I compiled, here are links for the compiled versions: http://heanet.dl.sourceforge.net/sourceforge/uhexen2/cross-tools-20070519.tgz http://heanet.dl.sourceforge.net/sourceforge/uhexen2/cross-tools-20070519-src.tgz Broken version: gcc-core-3.4.5-20060117-1 gcc-g++-3.4.5-20060117-1 binutils-2.17.50-20070129-1 w32api-3.10 mingw-runtime-3.13-20070825-1 It is a cross compile toolchain I compiled, here are links for the compiled versions: http://heanet.dl.sourceforge.net/sourceforge/uhexen2/cross-tools-20070825.tgz http://heanet.dl.sourceforge.net/sourceforge/uhexen2/cross-tools-20070825-src.tgz If you need anything else, please tell me. Ozkan ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1800110&group_id=2435 |