|
2013-02-20
| ||
| 18:41 | • Closed ticket [3605401fff]: Compiler error with latest mingw-w64 headers plu... artifact: afac8c879f user: nijtmans | |
| 17:43 | • Ticket [3605401fff]: 4 changes artifact: 4c18df9989 user: oehhar | |
| 17:27 | • Ticket [3605401fff]: 5 changes artifact: f01fb83a37 user: nijtmans | |
| 10:24 | • New ticket [3605401fff]. artifact: da2ffae7fa user: nijtmans | |
Compiler error with latest mingw-w64 headers
Closed / Fixed3605401fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2013-02-20 10:24:16
Already submitted to the mingw-w64 folks: <https://sourceforge.net/tracker/?func=detail&atid=983354&aid=3605392&group_id=202880> However, it turns out that different Visual Studio versions have a different signature of _stprintf (in fact: swprintf) function: Ough. It looks like the best option is to change tclWinDde to use _sntprintf in stead of _stprintf, only I'm not sure if that macro is available in VC++ 6.0 as well.
nijtmansplain2013-02-20 17:27:06
Andreas, could you please try the "bug-3605401" branch on VC++ 6.0?
Thanks!
Jan Nijtmans
oehharplain2013-02-20 17:43:35
Compiled with MSVC 6++, SDK2003SP1, Vista32bit:
nmake -f Makefile.vc release OPTS=threads
The dde compile comment is:
cl -nologo -c -W3 -DUNICODE -D_UNICODE -QI0f -W3 -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE -Fp.\Release\tcl_ThreadedDynamic\ -O2 -Ot -Oi -Op -Gs -YX -MD -I"C:\test\tcl-bug-3605401\win\..\win" -I"C:\test\tcl-bug-3605401\win\..\generic" -I"C:\test\tcl-bug-3605401\win\..\libtommath" -DTCL_TOMMATH -DMP_PREC=4 -Dinline=__inline -DHAVE_ZLIB=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DSTDC_HEADERS -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DNDEBUG -DTCL_CFG_OPTIMIZED -DNO_STRTOI64 -DTCL_THREADS=1 -DUSE_TCL_STUBS -Fo.\Release\tcl_ThreadedDynamic\tclWinDde.obj C:\test\tcl-bug-3605401\win\..\win\tclWinDde.c
tclWinDde.c
C:\test\tcl-bug-3605401\win\..\win\tclWinDde.c(15) : warning C4005: 'USE_TCL_STUBS' : macro redefinition
unknown(0) : see previous definition of 'USE_TCL_STUBS'
link -nologo -machine:IX86 -release -opt:ref -opt:icf,3 -opt:nowin98 -dll -base:@C:\test\tcl-bug-3605401\win\..\win\coffbase.txt,tcldde -out:.\Release\tcldde14.dll .\Release\tcl_ThreadedDynamic\tclWinDde.obj .\Release\tclstub86.lib netapi32.lib kernel32.lib user32.lib advapi32.lib ws2_32.lib
Creating library .\Release\tcldde14.lib and object .\Release\tcldde14.exp
I will send you the resulting library.
Hope this helps,
Harald
nijtmansplain2013-02-20 18:41:37
Thanks, Harold. Well if you already tested it on MSVC++ 6.0, there is no reason for Andreas to repeat that. Committed to trunk.
Log in (anonymous is fine) to add a comment.