Skip to content
Tcl Source Code View Ticket
Login

View Ticket

MS-VC6 compile error in 8.6: 'long' followed by 'long' is illegal

Closed / Fixedbf482486b99d0a680fbfa690e8f9b30692f82665Created 266 days agoUpdated 266 days ago
Descriptionplain2026-03-12 09:16:33
Sorry,
with MS-VC6++ 32 bit, the curren core-8-6-branch does not compile any more.

The error lines are:

<verbatim>
C:\test\fossil\tcl\core-8-6-branch\win\..\compat\zlib\zlib.h(2016) : error C2632: 'long' followed by 'long' is illegal
C:\test\fossil\tcl\core-8-6-branch\win\..\compat\zlib\zlib.h(2016) : error C2632: 'long' followed by 'long' is illegal
C:\test\fossil\tcl\core-8-6-branch\win\..\compat\zlib\zlib.h(2017) : error C2632: 'long' followed by 'long' is illegal
C:\test\fossil\tcl\core-8-6-branch\win\..\compat\zlib\zlib.h(2018) : error C2632: 'long' followed by 'long' is illegal
C:\test\fossil\tcl\core-8-6-branch\win\..\compat\zlib\zlib.h(2019) : error C2632: 'long' followed by 'long' is illegal
C:\test\fossil\tcl\core-8-6-branch\win\..\compat\zlib\zlib.h(2020) : error C2632: 'long' followed by 'long' is illegal
C:\test\fossil\tcl\core-8-6-branch\win\..\compat\zlib\zlib.h(2021) : error C2632: 'long' followed by 'long' is illegal
</verbatim>

Sorry,
Harald
Referenced by2
  • f597e6a51aFix [bf482486b9]: MS-VC6 compile error in 8.6: 'long' followed by 'long' is illegal. Disable false-flag warning C4550 check-in2026-03-12 11:27:47
  • a9796c1287Proposed fix for [bf482486b9]: MS-VC6 compile error in 8.6: 'long' followed by 'long' is illegal check-in2026-03-12 10:21:20
oehhar Ticket [bf482486b9]: 2 changes [History diff]2026-03-12 09:16:44
oehhar Ticket [bf482486b9]: 2 changes [History diff]2026-03-12 09:17:02
jan.nijtmanswiki2026-03-12 10:26:40

Does [this] work?

This was introduced in zlib, already almost 2 years ago: https://github.com/madler/zlib/commit/c5e87dcdef72abfb599579bb1b8176948be979c9

I don't think it's worth to report this upstream ....

oehharwiki2026-03-12 10:50:27

Yes, that compiles well. Light speed solution !

I have the following unrelated and ignored warning while compiling:

generic\tclProc.c(2275) : warning C4550: expression evaluates to a function which is missing an argument list

Thanks for all, Harald

jan.nijtmanswiki2026-03-12 11:00:44

Easiest would be just disable it: [f2e024b717e638a5]

It's a false-positive anyway

oehharwiki2026-03-12 11:22:42

Fix for the warning is effective. No more comments, ready to merge.

Thanks for all, Harald

jan.nijtmanswiki2026-03-12 11:31:14

[merged|f597e6a51ad4a54f]

There is no need to mention this change in the changelog, since it can be considered as part of the zlib upgrade, and it was never published in any official Tcl release.

Log in (anonymous is fine) to add a comment.