Git Product home page Git Product logo

Comments (13)

hintjens avatar hintjens commented on August 19, 2024

The code needed fixing to build on Windows. I've made a patch
#225 - but not tested it.

On Sun, Sep 8, 2013 at 11:42 PM, Ernest Lee [email protected]:

ztree.c fails to compile in MSVC 2012 for me. It seem to be valid c code
that doesn't compile as c++.

2> ztree.c
2>C:\Czmq\src\ztree.c(68): error C2440: 'initializing' : cannot convert
from 'void ' to 'ztree_t *'
2> Conversion from 'void
' to pointer to non-'void' requires an explicit
cast
2>C:\Czmq\src\ztree.c(308): error C2440: 'initializing' : cannot convert
from 'void ' to 'node_t *'
2> Conversion from 'void
' to pointer to non-'void' requires an explicit
cast
2>C:\Czmq\src\ztree.c(344): error C2440: 'initializing' : cannot convert
from 'void ' to 'node_t *'
2> Conversion from 'void
' to pointer to non-'void' requires an explicit
cast
2>C:\Czmq\src\ztree.c(556): error C2440: 'initializing' : cannot convert
from 'void ' to 'node_t *'
2> Conversion from 'void
' to pointer to non-'void' requires an explicit
cast
2>C:\Czmq\src\ztree.c(615): error C2440: 'initializing' : cannot convert
from 'void ' to 'zlist_t *'
2> Conversion from 'void
' to pointer to non-'void' requires an explicit
cast
2>C:\Czmq\src\ztree.c(636): error C2440: 'initializing' : cannot convert
from 'void ' to 'ztree_t *'
2> Conversion from 'void
' to pointer to non-'void' requires an explicit
cast
2>C:\Czmq\src\ztree.c(667): error C2440: 'initializing' : cannot convert
from 'void ' to 'FILE *'
2> Conversion from 'void
' to pointer to non-'void' requires an explicit
cast
2>C:\Czmq\src\ztree.c(796): error C2664: 'strcmp' : cannot convert
parameter 1 from 'void ' to 'const char *'
2> Conversion from 'void
' to pointer to non-'void' requires an explicit
cast
2>C:\Czmq\src\ztree.c(815): error C2065: 'strcasecmp' : undeclared
identifier
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========


Reply to this email directly or view it on GitHubhttps://github.com//issues/224
.

from czmq.

fire avatar fire commented on August 19, 2024

It seems to compile, but I haven't run testing on it.

from czmq.

momo-the-monster avatar momo-the-monster commented on August 19, 2024

I'm trying to get czmq to compile in MSVC11 (Visual Studio 2012) and had the above issue plus many more casting issues. I inserted casts in many places.

I also had a few that I couldn't fix. Zchunk uses aligned, which doesn't seem to exist in a similar format that I could find, and I attempted to change the usage of S_IRUSR as _S_IREAD but this seemed to break the zfile selftest.

You can see all the commits I did to get this working in MSVC here

With the above changes, I was able to compile in MSVC but zfile and zauth fail their tests (though I don't have libsodium installed - that could perhaps explain the zauth fail?). Attempts to build with mingw were fruitless because I can't get libzmq compiled with mingw.

from czmq.

fire avatar fire commented on August 19, 2024

A log for reference.

3>  2>------ Build started: Project: czmq, Configuration: Debug Win32 ------
3>  
3>  2>  zbeacon.c
3>  
3>C:\Czmq\src\Czmq\src\zbeacon.c(306): warning C4018: '<' : signed/unsigned mismatch
3>  
3>C:\Czmq\src\Czmq\src\zbeacon.c(413): warning C4018: '>=' : signed/unsigned mismatch
3>  
3>C:\Czmq\src\Czmq\src\zbeacon.c(522): warning C4996: 'strerror': This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(164) : see declaration of 'strerror'
3>  
3>C:\Czmq\src\Czmq\src\zbeacon.c(720): warning C4018: '>=' : signed/unsigned mismatch
3>  
3>C:\Czmq\src\Czmq\src\zbeacon.c(757): warning C4390: ';' : empty controlled statement found; is this the intent?
3>  
3>  2>  zclock.c
3>  
3>C:\Czmq\src\Czmq\src\zclock.c(113): warning C4996: 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\time.inl(112) : see declaration of 'localtime'
3>  
3>C:\Czmq\src\Czmq\src\zclock.c(134): warning C4996: 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\time.inl(112) : see declaration of 'localtime'
3>  
3>C:\Czmq\src\Czmq\src\zclock.c(137): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>  2>  zconfig.c
3>  
3>C:\Czmq\src\Czmq\src\zconfig.c(184): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\zconfig.c(376): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(218) : see declaration of 'fopen'
3>  
3>C:\Czmq\src\Czmq\src\zconfig.c(562): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\zconfig.c(566): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\zconfig.c(618): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(218) : see declaration of 'fopen'
3>  
3>  2>  zctx.c
3>  
3>  2>  zfile.c
3>  
3>C:\Czmq\src\Czmq\src\zfile.c(66): error C2440: '=' : cannot convert from 'void *' to 'char *'
3>  
3>  2>          Conversion from 'void*' to pointer to non-'void' requires an explicit cast
3>  
3>C:\Czmq\src\Czmq\src\zfile.c(210): error C2065: 'S_IRUSR' : undeclared identifier
3>  
3>C:\Czmq\src\Czmq\src\zfile.c(223): error C2065: 'S_IWUSR' : undeclared identifier
3>  
3>C:\Czmq\src\Czmq\src\zfile.c(321): warning C4018: '>' : signed/unsigned mismatch
3>  
3>  2>  zframe.c
3>  
3>  2>  zhash.c
3>  
3>C:\Czmq\src\Czmq\src\zhash.c(197): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\zhash.c(235): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\zhash.c(288): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\zhash.c(341): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\zhash.c(498): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(218) : see declaration of 'fopen'
3>  
3>C:\Czmq\src\Czmq\src\zhash.c(540): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\zhash.c(544): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(218) : see declaration of 'fopen'
3>  
3>C:\Czmq\src\Czmq\src\zhash.c(548): error C2440: 'initializing' : cannot convert from 'void *' to 'char *'
3>  
3>  2>          Conversion from 'void*' to pointer to non-'void' requires an explicit cast
3>  
3>C:\Czmq\src\Czmq\src\zhash.c(774): error C2664: 'strcmp' : cannot convert parameter 1 from 'void *' to 'const char *'
3>  
3>  2>          Conversion from 'void*' to pointer to non-'void' requires an explicit cast
3>  
3>C:\Czmq\src\Czmq\src\zhash.c(775): error C2664: 'strcmp' : cannot convert parameter 1 from 'void *' to 'const char *'
3>  
3>  2>          Conversion from 'void*' to pointer to non-'void' requires an explicit cast
3>  
3>  2>  zlist.c
3>  
3>C:\Czmq\src\Czmq\src\zlist.c(179): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\zlist.c(208): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>  2>  zloop.c
3>  
3>  2>  zmsg.c
3>  
3>C:\Czmq\src\Czmq\src\zmsg.c(713): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(218) : see declaration of 'fopen'
3>  
3>C:\Czmq\src\Czmq\src\zmsg.c(717): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(218) : see declaration of 'fopen'
3>  
3>C:\Czmq\src\Czmq\src\zmsg.c(724): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(218) : see declaration of 'fopen'
3>  
3>C:\Czmq\src\Czmq\src\zmsg.c(730): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(218) : see declaration of 'fopen'
3>  
3>C:\Czmq\src\Czmq\src\zmsg.c(736): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(218) : see declaration of 'fopen'
3>  
3>  2>  zmutex.c
3>  
3>  2>  zsocket.c
3>  
3>C:\Czmq\src\Czmq\src\zsocket.c(78): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(349) : see declaration of '_vsnprintf'
3>  
3>C:\Czmq\src\Czmq\src\zsocket.c(87): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(357) : see declaration of 'sprintf'
3>  
3>C:\Czmq\src\Czmq\src\zsocket.c(118): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(349) : see declaration of '_vsnprintf'
3>  
3>C:\Czmq\src\Czmq\src\zsocket.c(137): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(349) : see declaration of '_vsnprintf'
3>  
3>C:\Czmq\src\Czmq\src\zsocket.c(153): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(349) : see declaration of '_vsnprintf'
3>  
3>  2>  zsockopt.c
3>  
3>  2>  zstr.c
3>  
3>  2>  zsys.c
3>  
3>C:\Czmq\src\Czmq\src\zsys.c(107): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\zsys.c(334): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(349) : see declaration of '_vsnprintf'
3>  
3>C:\Czmq\src\Czmq\src\zsys.c(346): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(349) : see declaration of '_vsnprintf'
3>  
3>  2>  zthread.c
3>  
3>  2>  ztree.c
3>  
3>C:\Czmq\src\Czmq\src\ztree.c(318): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\ztree.c(320): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\ztree.c(354): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\ztree.c(356): warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\string.h(241) : see declaration of 'strdup'
3>  
3>C:\Czmq\src\Czmq\src\ztree.c(685): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(218) : see declaration of 'fopen'
3>  
3>C:\Czmq\src\Czmq\src\ztree.c(705): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3>  
3>  2>          C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdio.h(218) : see declaration of 'fopen'
3>  
3>C:\Czmq\src\Czmq\src\ztree.c(800): error C2664: 'strcmp' : cannot convert parameter 2 from 'void *' to 'const char *'
3>  
3>  2>          Conversion from 'void*' to pointer to non-'void' requires an explicit cast
3>  
3>  2>  Generating Code...

from czmq.

hintjens avatar hintjens commented on August 19, 2024

OK, fixed these (I think, don't have an MSVC box). Waiting on #251

from czmq.

fire avatar fire commented on August 19, 2024

Apparently, I missed this one.

2>------ Build started: Project: czmq, Configuration: Release Win32 ------
3>
3> 2> zchunk.c
3>
3>C:\Czmq\src\Czmq\src\zchunk.c(42): error C3861: 'aligned': identifier not found
3>
3>C:\Czmq\src\Czmq\src\zchunk.c(95): error C2440: '=' : cannot convert from 'void ' to 'byte *'
3>
3> 2> Conversion from 'void
' to pointer to non-'void' requires an explicit cast
3>

from czmq.

hintjens avatar hintjens commented on August 19, 2024

OK, I've pushed a patch for that.

On Sun, Sep 29, 2013 at 9:25 PM, Ernest Lee [email protected]:

Apparently, I missed this one.

2>------ Build started: Project: czmq, Configuration: Release Win32 ------
3>

3> 2> zchunk.c
3>

3>C:\Czmq\src\Czmq\src\zchunk.c(42): error C3861: 'aligned': identifier
not found
3>

3>C:\Czmq\src\Czmq\src\zchunk.c(95): error C2440: '=' : cannot convert
from 'void *' to 'byte *'
3>

3> 2> Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
3>


Reply to this email directly or view it on GitHubhttps://github.com//issues/224#issuecomment-25327091
.

from czmq.

fire avatar fire commented on August 19, 2024

What's platform.h?

3> 2>------ Build started: Project: czmq, Configuration: Release Win32 ------
3>
3> 2> zauth.c
3>
3>C:\Czmq\src\Czmq\src\zauth.c(235): error C2440: '=' : cannot convert from 'void ' to 'char *'
3>
3> 2> Conversion from 'void
' to pointer to non-'void' requires an explicit cast
3>
3> 2> zcert.c
3>
3>C:\Czmq\src\Czmq\src\zcert.c(48): fatal error C1083: Cannot open include file: 'platform.h': No such file or directory
3>
3> 2> zcertstore.c
3>
3> 2> zchunk.c
3>
3>C:\Czmq\src\Czmq\src\zchunk.c(42): error C3861: 'aligned': identifier not found
3>
3>C:\Czmq\src\Czmq\src\zchunk.c(95): error C2440: '=' : cannot convert from 'void ' to 'byte *'
3>
3> 2> Conversion from 'void
' to pointer to non-'void' requires an explicit cast
3>
3> 2> zdir.c
3>
3>C:\Czmq\src\Czmq\src\zdir.c(109): error C2440: '=' : cannot convert from 'void ' to 'char *'
3>
3> 2> Conversion from 'void
' to pointer to non-'void' requires an explicit cast
3>
3>C:\Czmq\src\Czmq\src\zdir.c(130): error C2440: 'initializing' : cannot convert from 'void ' to 'char *'
3>
3> 2> Conversion from 'void
' to pointer to non-'void' requires an explicit cast
3>
3> 2> zpoller.c
3>
3> 2> Generating Code...
3>

from czmq.

hintjens avatar hintjens commented on August 19, 2024

To be honest I've no idea how platform.h gets generated on Windows.
Something missing from my understanding of the toolchain.

On Sun, Sep 29, 2013 at 9:42 PM, Ernest Lee [email protected]:

What's platform.h?

3> 2>------ Build started: Project: czmq, Configuration: Release Win32

3>

3> 2> zauth.c
3>

3>C:\Czmq\src\Czmq\src\zauth.c(235): error C2440: '=' : cannot convert
from 'void *' to 'char *'
3>

3> 2> Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
3>

3> 2> zcert.c
3>

3>C:\Czmq\src\Czmq\src\zcert.c(48): fatal error C1083: Cannot open include
file: 'platform.h': No such file or directory
3>

3> 2> zcertstore.c

3>

3> 2> zchunk.c
3>

3>C:\Czmq\src\Czmq\src\zchunk.c(42): error C3861: 'aligned': identifier
not found
3>

3>C:\Czmq\src\Czmq\src\zchunk.c(95): error C2440: '=' : cannot convert
from 'void *' to 'byte *'
3>

3> 2> Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
3>

3> 2> zdir.c
3>

3>C:\Czmq\src\Czmq\src\zdir.c(109): error C2440: '=' : cannot convert from
'void *' to 'char *'
3>

3> 2> Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
3>

3>C:\Czmq\src\Czmq\src\zdir.c(130): error C2440: 'initializing' : cannot
convert from 'void *' to 'char *'
3>

3> 2> Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
3>

3> 2> zpoller.c

3>

3> 2> Generating Code...
3>


Reply to this email directly or view it on GitHubhttps://github.com//issues/224#issuecomment-25327483
.

from czmq.

hintjens avatar hintjens commented on August 19, 2024

OK, it's pre-supplied in builds/msvc. Let me add that...

On Sun, Sep 29, 2013 at 9:48 PM, Pieter Hintjens [email protected] wrote:

To be honest I've no idea how platform.h gets generated on Windows.
Something missing from my understanding of the toolchain.

On Sun, Sep 29, 2013 at 9:42 PM, Ernest Lee [email protected]:

What's platform.h?

3> 2>------ Build started: Project: czmq, Configuration: Release Win32

3>

3> 2> zauth.c
3>

3>C:\Czmq\src\Czmq\src\zauth.c(235): error C2440: '=' : cannot convert
from 'void *' to 'char *'
3>

3> 2> Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
3>

3> 2> zcert.c
3>

3>C:\Czmq\src\Czmq\src\zcert.c(48): fatal error C1083: Cannot open
include file: 'platform.h': No such file or directory
3>

3> 2> zcertstore.c

3>

3> 2> zchunk.c
3>

3>C:\Czmq\src\Czmq\src\zchunk.c(42): error C3861: 'aligned': identifier
not found
3>

3>C:\Czmq\src\Czmq\src\zchunk.c(95): error C2440: '=' : cannot convert
from 'void *' to 'byte *'
3>

3> 2> Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
3>

3> 2> zdir.c
3>

3>C:\Czmq\src\Czmq\src\zdir.c(109): error C2440: '=' : cannot convert
from 'void *' to 'char *'
3>

3> 2> Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
3>

3>C:\Czmq\src\Czmq\src\zdir.c(130): error C2440: 'initializing' : cannot
convert from 'void *' to 'char *'
3>

3> 2> Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
3>

3> 2> zpoller.c

3>

3> 2> Generating Code...
3>


Reply to this email directly or view it on GitHubhttps://github.com//issues/224#issuecomment-25327483
.

from czmq.

hintjens avatar hintjens commented on August 19, 2024

OK, pushed more fixes: #252

On Sun, Sep 29, 2013 at 9:42 PM, Ernest Lee [email protected]:

What's platform.h?

3> 2>------ Build started: Project: czmq, Configuration: Release Win32

3>

3> 2> zauth.c
3>

3>C:\Czmq\src\Czmq\src\zauth.c(235): error C2440: '=' : cannot convert
from 'void *' to 'char *'
3>

3> 2> Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
3>

3> 2> zcert.c
3>

3>C:\Czmq\src\Czmq\src\zcert.c(48): fatal error C1083: Cannot open include
file: 'platform.h': No such file or directory
3>

3> 2> zcertstore.c

3>

3> 2> zchunk.c
3>

3>C:\Czmq\src\Czmq\src\zchunk.c(42): error C3861: 'aligned': identifier
not found
3>

3>C:\Czmq\src\Czmq\src\zchunk.c(95): error C2440: '=' : cannot convert
from 'void *' to 'byte *'
3>

3> 2> Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
3>

3> 2> zdir.c
3>

3>C:\Czmq\src\Czmq\src\zdir.c(109): error C2440: '=' : cannot convert from
'void *' to 'char *'
3>

3> 2> Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
3>

3>C:\Czmq\src\Czmq\src\zdir.c(130): error C2440: 'initializing' : cannot
convert from 'void *' to 'char *'
3>

3> 2> Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
3>

3> 2> zpoller.c

3>

3> 2> Generating Code...
3>


Reply to this email directly or view it on GitHubhttps://github.com//issues/224#issuecomment-25327483
.

from czmq.

fire avatar fire commented on August 19, 2024

3> 2> zcert.c
3>
3>C:\Czmq\src\Czmq\src\zcert.c(201): error C2440: 'return' : cannot convert from 'void ' to 'char *'
3>
3> 2> Conversion from 'void
' to pointer to non-'void' requires an explicit cast

from czmq.

hintjens avatar hintjens commented on August 19, 2024

I think these are all fixed.

from czmq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.