Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

made it compile and link on Widnows (as static library) #164

Closed
wants to merge 1 commit into from
Closed

made it compile and link on Widnows (as static library) #164

wants to merge 1 commit into from

Conversation

andreasbaumann
Copy link

This is a rather quick-and-dirty hack to make it usable on Windows.

@jamesmyatt
Copy link
Contributor

"Debug" build works in VS2013 against VS2010 toolset, but "Release" one doesn't, even after setting it to "static library"

1>------ Rebuild All started: Project: json-c, Configuration: Release Win32 ------
1>  arraylist.c
1>  debug.c
1>  json_c_version.c
1>  json_object.c
1>c:\src\json-c\json_inttypes.h(17): warning C4005: 'INT32_MIN' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(74) : see previous definition of 'INT32_MIN'
1>c:\src\json-c\json_inttypes.h(18): warning C4005: 'INT32_MAX' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(78) : see previous definition of 'INT32_MAX'
1>c:\src\json-c\json_inttypes.h(22): warning C4005: 'INT64_MIN' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(149) : see previous definition of 'INT64_MIN'
1>c:\src\json-c\json_inttypes.h(23): warning C4005: 'INT64_MAX' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(150) : see previous definition of 'INT64_MAX'
1>c:\src\json-c\math_compat.h(27): fatal error C1189: #error :  This platform does not have nan()
1>  json_object_iterator.c
1>c:\src\json-c\json_inttypes.h(17): warning C4005: 'INT32_MIN' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(74) : see previous definition of 'INT32_MIN'
1>c:\src\json-c\json_inttypes.h(18): warning C4005: 'INT32_MAX' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(78) : see previous definition of 'INT32_MAX'
1>c:\src\json-c\json_inttypes.h(22): warning C4005: 'INT64_MIN' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(149) : see previous definition of 'INT64_MIN'
1>c:\src\json-c\json_inttypes.h(23): warning C4005: 'INT64_MAX' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(150) : see previous definition of 'INT64_MAX'
1>  json_tokener.c
1>c:\src\json-c\math_compat.h(27): fatal error C1189: #error :  This platform does not have nan()
1>  json_util.c
1>c:\src\json-c\json_inttypes.h(17): warning C4005: 'INT32_MIN' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(74) : see previous definition of 'INT32_MIN'
1>c:\src\json-c\json_inttypes.h(18): warning C4005: 'INT32_MAX' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(78) : see previous definition of 'INT32_MAX'
1>c:\src\json-c\json_inttypes.h(22): warning C4005: 'INT64_MIN' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(149) : see previous definition of 'INT64_MIN'
1>c:\src\json-c\json_inttypes.h(23): warning C4005: 'INT64_MAX' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(150) : see previous definition of 'INT64_MAX'
1>..\json_util.c(74): warning C4013: 'open' undefined; assuming extern returning int
1>..\json_util.c(76): 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.
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(157) : see declaration of 'strerror'
1>..\json_util.c(80): warning C4013: 'close' undefined; assuming extern returning int
1>..\json_util.c(84): warning C4013: 'read' undefined; assuming extern returning int
1>..\json_util.c(90): 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.
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(157) : see declaration of 'strerror'
1>..\json_util.c(114): 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.
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(157) : see declaration of 'strerror'
1>..\json_util.c(126): warning C4013: 'write' undefined; assuming extern returning int
1>..\json_util.c(129): 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.
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(157) : see declaration of 'strerror'
1>..\json_util.c(150): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(325) : see declaration of 'sscanf'
1>..\json_util.c(163): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(325) : see declaration of 'sscanf'
1>..\json_util.c(167): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(325) : see declaration of 'sscanf'
1>..\json_util.c(197): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(325) : see declaration of 'sscanf'
1>..\json_util.c(226): warning C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(363) : see declaration of '_snprintf'
1>  libjson.c
1>c:\src\json-c\json_inttypes.h(17): warning C4005: 'INT32_MIN' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(74) : see previous definition of 'INT32_MIN'
1>c:\src\json-c\json_inttypes.h(18): warning C4005: 'INT32_MAX' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(78) : see previous definition of 'INT32_MAX'
1>c:\src\json-c\json_inttypes.h(22): warning C4005: 'INT64_MIN' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(149) : see previous definition of 'INT64_MIN'
1>c:\src\json-c\json_inttypes.h(23): warning C4005: 'INT64_MAX' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(150) : see previous definition of 'INT64_MAX'
1>  linkhash.c
1>c:\src\json-c\json_inttypes.h(17): warning C4005: 'INT32_MIN' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(74) : see previous definition of 'INT32_MIN'
1>c:\src\json-c\json_inttypes.h(18): warning C4005: 'INT32_MAX' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(78) : see previous definition of 'INT32_MAX'
1>c:\src\json-c\json_inttypes.h(22): warning C4005: 'INT64_MIN' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(149) : see previous definition of 'INT64_MIN'
1>c:\src\json-c\json_inttypes.h(23): warning C4005: 'INT64_MAX' : macro redefinition
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(150) : see previous definition of 'INT64_MAX'
1>  printbuf.c
1>..\printbuf.c(135): 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.
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(363) : see declaration of '_vsnprintf'
1>..\printbuf.c(142): warning C4996: 'vsprintf': This function or variable may be unsafe. Consider using vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'vsprintf'
1>..\printbuf.c(162): 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.
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(363) : see declaration of '_vsnprintf'
1>  random_seed.c
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

@jamesmyatt
Copy link
Contributor

Also, doesn't compile against Visual Studio 2013:

1>------ Rebuild All started: Project: json-c, Configuration: Debug Win32 ------
1>          1 file(s) copied.
1>          1 file(s) copied.
1>  random_seed.c
1>  printbuf.c
1>  linkhash.c
1>c:\src\json-c\json_object.h(478): error C2065: 'int32_t' : undeclared identifier
1>c:\src\json-c\json_object.h(478): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.h(478): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.h(485): error C2065: 'int64_t' : undeclared identifier
1>c:\src\json-c\json_object.h(485): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.h(485): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.h(502): error C2146: syntax error : missing ';' before identifier 'json_object_get_int'
1>c:\src\json-c\json_object.h(502): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_object.h(517): error C2146: syntax error : missing ';' before identifier 'json_object_get_int64'
1>c:\src\json-c\json_object.h(517): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\linkhash.c(238): error C2146: syntax error : missing ';' before identifier 'hashlittle'
1>c:\src\json-c\linkhash.c(238): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\linkhash.c(238): error C2061: syntax error : identifier 'uint32_t'
1>c:\src\json-c\linkhash.c(239): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\linkhash.c(240): error C2146: syntax error : missing ';' before identifier 'a'
1>c:\src\json-c\linkhash.c(240): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(240): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(240): error C2065: 'c' : undeclared identifier
1>c:\src\json-c\linkhash.c(244): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(244): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(244): error C2065: 'c' : undeclared identifier
1>c:\src\json-c\linkhash.c(244): error C2146: syntax error : missing ')' before identifier 'length'
1>c:\src\json-c\linkhash.c(244): error C2059: syntax error : ')'
1>c:\src\json-c\linkhash.c(248): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\linkhash.c(248): error C2143: syntax error : missing ';' before '*'
1>c:\src\json-c\linkhash.c(248): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(248): error C2146: syntax error : missing ')' before identifier 'uint32_t'
1>c:\src\json-c\linkhash.c(248): error C2059: syntax error : ')'
1>c:\src\json-c\linkhash.c(248): error C2297: '*' : illegal, right operand has type 'const void *'
1>c:\src\json-c\linkhash.c(253): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(253): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(254): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(254): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(255): error C2065: 'c' : undeclared identifier
1>c:\src\json-c\linkhash.c(255): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(256): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(256): error C2065: 'c' : undeclared identifier
1>c:\src\json-c\linkhash.c(256): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(258): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(275): error C2065: 'c' : undeclared identifier
1>c:\src\json-c\linkhash.c(275): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(275): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(275): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(276): error C2065: 'c' : undeclared identifier
1>c:\src\json-c\linkhash.c(276): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(276): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(276): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(277): error C2065: 'c' : undeclared identifier
1>c:\src\json-c\linkhash.c(277): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(277): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(277): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(278): error C2065: 'c' : undeclared identifier
1>c:\src\json-c\linkhash.c(278): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(278): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(278): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(279): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(279): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(279): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(280): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(280): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(280): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(281): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(281): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(281): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(282): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(282): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(282): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(283): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(283): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(284): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(284): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(285): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(285): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(286): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(286): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(287): error C2065: 'c' : undeclared identifier
1>c:\src\json-c\linkhash.c(313): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\linkhash.c(313): error C2143: syntax error : missing ';' before '*'
1>c:\src\json-c\linkhash.c(313): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(313): error C2146: syntax error : missing ')' before identifier 'uint16_t'
1>c:\src\json-c\linkhash.c(313): error C2059: syntax error : ')'
1>c:\src\json-c\linkhash.c(313): error C2297: '*' : illegal, right operand has type 'const void *'
1>c:\src\json-c\linkhash.c(314): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\linkhash.c(314): error C2143: syntax error : missing ';' before '*'
1>c:\src\json-c\linkhash.c(314): error C2065: 'k8' : undeclared identifier
1>c:\src\json-c\linkhash.c(319): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(319): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(319): error C2146: syntax error : missing ')' before identifier 'k'
1>c:\src\json-c\linkhash.c(319): error C2059: syntax error : ')'
1>c:\src\json-c\linkhash.c(320): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(320): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(320): error C2146: syntax error : missing ')' before identifier 'k'
1>c:\src\json-c\linkhash.c(320): error C2059: syntax error : ')'
1>c:\src\json-c\linkhash.c(321): error C2065: 'c' : undeclared identifier
1>c:\src\json-c\linkhash.c(321): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(321): error C2146: syntax error : missing ')' before identifier 'k'
1>c:\src\json-c\linkhash.c(321): error C2059: syntax error : ')'
1>c:\src\json-c\linkhash.c(322): error C2065: 'a' : undeclared identifier
1>c:\src\json-c\linkhash.c(322): error C2065: 'c' : undeclared identifier
1>c:\src\json-c\linkhash.c(322): error C2065: 'b' : undeclared identifier
1>c:\src\json-c\linkhash.c(324): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(328): error C2065: 'k8' : undeclared identifier
1>c:\src\json-c\linkhash.c(328): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\linkhash.c(328): error C2146: syntax error : missing ')' before identifier 'uint8_t'
1>c:\src\json-c\linkhash.c(328): error C2059: syntax error : ')'
1>c:\src\json-c\linkhash.c(328): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(331): error C2065: 'c' : undeclared identifier
1>c:\src\json-c\linkhash.c(331): error C2065: 'k' : undeclared identifier
1>c:\src\json-c\linkhash.c(331): error C2146: syntax error : missing ')' before identifier 'k'
1>c:\src\json-c\linkhash.c(331): fatal error C1003: error count exceeds 100; stopping compilation
1>  libjson.c
1>c:\src\json-c\json_object.h(478): error C2065: 'int32_t' : undeclared identifier
1>c:\src\json-c\json_object.h(478): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.h(478): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.h(485): error C2065: 'int64_t' : undeclared identifier
1>c:\src\json-c\json_object.h(485): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.h(485): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.h(502): error C2146: syntax error : missing ';' before identifier 'json_object_get_int'
1>c:\src\json-c\json_object.h(502): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_object.h(517): error C2146: syntax error : missing ';' before identifier 'json_object_get_int64'
1>c:\src\json-c\json_object.h(517): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>  json_util.c
1>c:\src\json-c\json_object.h(478): error C2065: 'int32_t' : undeclared identifier
1>c:\src\json-c\json_object.h(478): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.h(478): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.h(485): error C2065: 'int64_t' : undeclared identifier
1>c:\src\json-c\json_object.h(485): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.h(485): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.h(502): error C2146: syntax error : missing ';' before identifier 'json_object_get_int'
1>c:\src\json-c\json_object.h(502): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_object.h(517): error C2146: syntax error : missing ';' before identifier 'json_object_get_int64'
1>c:\src\json-c\json_object.h(517): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_util.h(36): error C2061: syntax error : identifier 'int64_t'
1>c:\src\json-c\json_util.c(160): error C2146: syntax error : missing ';' before identifier 'num64'
1>c:\src\json-c\json_util.c(160): error C2065: 'num64' : undeclared identifier
1>c:\src\json-c\json_util.c(163): error C2146: syntax error : missing ')' before identifier 'SCNd64'
1>c:\src\json-c\json_util.c(163): error C2059: syntax error : ')'
1>c:\src\json-c\json_util.c(165): error C2065: 'num64' : undeclared identifier
1>c:\src\json-c\json_util.c(165): error C2065: 'INT64_MIN' : undeclared identifier
1>c:\src\json-c\json_util.c(167): error C2146: syntax error : missing ')' before identifier 'SCNd64'
1>c:\src\json-c\json_util.c(167): error C2059: syntax error : ')'
1>c:\src\json-c\json_util.c(169): error C2065: 'num64' : undeclared identifier
1>c:\src\json-c\json_util.c(169): error C2065: 'INT64_MAX' : undeclared identifier
1>c:\src\json-c\json_util.c(179): error C2061: syntax error : identifier 'int64_t'
1>c:\src\json-c\json_util.c(181): error C2146: syntax error : missing ';' before identifier 'num64'
1>c:\src\json-c\json_util.c(181): error C2065: 'num64' : undeclared identifier
1>c:\src\json-c\json_util.c(197): error C2146: syntax error : missing ')' before identifier 'SCNd64'
1>c:\src\json-c\json_util.c(197): error C2059: syntax error : ')'
1>c:\src\json-c\json_util.c(198): error C2143: syntax error : missing ';' before '{'
1>c:\src\json-c\json_util.c(223): error C2065: 'num64' : undeclared identifier
1>c:\src\json-c\json_util.c(226): error C2146: syntax error : missing ')' before identifier 'PRId64'
1>c:\src\json-c\json_util.c(226): error C2059: syntax error : ')'
1>c:\src\json-c\json_util.c(258): error C2065: 'num64' : undeclared identifier
1>c:\src\json-c\json_util.c(258): error C2065: 'INT64_MIN' : undeclared identifier
1>c:\src\json-c\json_util.c(260): error C2065: 'num64' : undeclared identifier
1>c:\src\json-c\json_util.c(260): error C2065: 'INT64_MAX' : undeclared identifier
1>c:\src\json-c\json_util.c(262): error C2065: 'retval' : undeclared identifier
1>c:\src\json-c\json_util.c(262): error C2065: 'num64' : undeclared identifier
1>  json_tokener.c
1>c:\src\json-c\json_object.h(478): error C2065: 'int32_t' : undeclared identifier
1>c:\src\json-c\json_object.h(478): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.h(478): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.h(485): error C2065: 'int64_t' : undeclared identifier
1>c:\src\json-c\json_object.h(485): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.h(485): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.h(502): error C2146: syntax error : missing ';' before identifier 'json_object_get_int'
1>c:\src\json-c\json_object.h(502): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_object.h(517): error C2146: syntax error : missing ';' before identifier 'json_object_get_int64'
1>c:\src\json-c\json_object.h(517): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_util.h(36): error C2061: syntax error : identifier 'int64_t'
1>c:\src\json-c\json_tokener.c(254): error C2065: 'INT32_MAX' : undeclared identifier
1>c:\src\json-c\json_tokener.c(375): warning C4056: overflow in floating-point constant arithmetic
1>c:\src\json-c\json_tokener.c(693): error C2146: syntax error : missing ';' before identifier 'num64'
1>c:\src\json-c\json_tokener.c(693): error C2065: 'num64' : undeclared identifier
1>c:\src\json-c\json_tokener.c(695): error C2065: 'num64' : undeclared identifier
1>c:\src\json-c\json_tokener.c(696): error C2065: 'num64' : undeclared identifier
1>c:\src\json-c\json_tokener.c(701): error C2065: 'num64' : undeclared identifier
1>  json_object_iterator.c
1>c:\src\json-c\json_object.h(478): error C2065: 'int32_t' : undeclared identifier
1>c:\src\json-c\json_object.h(478): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.h(478): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.h(485): error C2065: 'int64_t' : undeclared identifier
1>c:\src\json-c\json_object.h(485): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.h(485): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.h(502): error C2146: syntax error : missing ';' before identifier 'json_object_get_int'
1>c:\src\json-c\json_object.h(502): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_object.h(517): error C2146: syntax error : missing ';' before identifier 'json_object_get_int64'
1>c:\src\json-c\json_object.h(517): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_util.h(36): error C2061: syntax error : identifier 'int64_t'
1>c:\src\json-c\json_object_private.h(31): error C2146: syntax error : missing ';' before identifier 'c_int64'
1>c:\src\json-c\json_object_private.h(31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>  json_object.c
1>c:\src\json-c\json_object.h(478): error C2065: 'int32_t' : undeclared identifier
1>c:\src\json-c\json_object.h(478): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.h(478): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.h(485): error C2065: 'int64_t' : undeclared identifier
1>c:\src\json-c\json_object.h(485): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.h(485): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.h(502): error C2146: syntax error : missing ';' before identifier 'json_object_get_int'
1>c:\src\json-c\json_object.h(502): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_object.h(517): error C2146: syntax error : missing ';' before identifier 'json_object_get_int64'
1>c:\src\json-c\json_object.h(517): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_object_private.h(31): error C2146: syntax error : missing ';' before identifier 'c_int64'
1>c:\src\json-c\json_object_private.h(31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_util.h(36): error C2061: syntax error : identifier 'int64_t'
1>c:\src\json-c\json_object.c(487): error C2039: 'c_int64' : is not a member of 'json_object::data'
1>          c:\src\json-c\json_object_private.h(28) : see declaration of 'json_object::data'
1>c:\src\json-c\json_object.c(505): error C2146: syntax error : missing ')' before identifier 'PRId64'
1>c:\src\json-c\json_object.c(505): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.c(508): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.c(508): error C2374: 'json_object_new_int' : redefinition; multiple initialization
1>          c:\src\json-c\json_object.h(478) : see declaration of 'json_object_new_int'
1>c:\src\json-c\json_object.c(508): error C2440: 'initializing' : cannot convert from 'int' to 'json_object *'
1>          Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1>c:\src\json-c\json_object.c(508): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.c(509): error C2143: syntax error : missing ';' before '{'
1>c:\src\json-c\json_object.c(509): error C2447: '{' : missing function header (old-style formal list?)
1>c:\src\json-c\json_object.c(518): error C2146: syntax error : missing ';' before identifier 'json_object_get_int'
1>c:\src\json-c\json_object.c(518): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_object.c(519): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_object.c(520): error C2146: syntax error : missing ';' before identifier 'cint64'
1>c:\src\json-c\json_object.c(520): error C2065: 'cint64' : undeclared identifier
1>c:\src\json-c\json_object.c(526): error C2065: 'cint64' : undeclared identifier
1>c:\src\json-c\json_object.c(526): error C2039: 'c_int64' : is not a member of 'json_object::data'
1>          c:\src\json-c\json_object_private.h(28) : see declaration of 'json_object::data'
1>c:\src\json-c\json_object.c(534): error C2065: 'cint64' : undeclared identifier
1>c:\src\json-c\json_object.c(542): error C2065: 'cint64' : undeclared identifier
1>c:\src\json-c\json_object.c(542): error C2065: 'INT32_MIN' : undeclared identifier
1>c:\src\json-c\json_object.c(543): error C2065: 'INT32_MIN' : undeclared identifier
1>c:\src\json-c\json_object.c(544): error C2065: 'cint64' : undeclared identifier
1>c:\src\json-c\json_object.c(544): error C2065: 'INT32_MAX' : undeclared identifier
1>c:\src\json-c\json_object.c(545): error C2065: 'INT32_MAX' : undeclared identifier
1>c:\src\json-c\json_object.c(547): error C2146: syntax error : missing ';' before identifier 'cint64'
1>c:\src\json-c\json_object.c(547): error C2065: 'cint64' : undeclared identifier
1>c:\src\json-c\json_object.c(549): error C2146: syntax error : missing ';' before identifier 'jso'
1>c:\src\json-c\json_object.c(557): error C2146: syntax error : missing ')' before identifier 'i'
1>c:\src\json-c\json_object.c(557): error C2374: 'json_object_new_int64' : redefinition; multiple initialization
1>          c:\src\json-c\json_object.h(485) : see declaration of 'json_object_new_int64'
1>c:\src\json-c\json_object.c(557): error C2440: 'initializing' : cannot convert from 'int' to 'json_object *'
1>          Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1>c:\src\json-c\json_object.c(557): error C2059: syntax error : ')'
1>c:\src\json-c\json_object.c(558): error C2143: syntax error : missing ';' before '{'
1>c:\src\json-c\json_object.c(558): error C2447: '{' : missing function header (old-style formal list?)
1>c:\src\json-c\json_object.c(567): error C2146: syntax error : missing ';' before identifier 'json_object_get_int64'
1>c:\src\json-c\json_object.c(567): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_object.c(568): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\src\json-c\json_object.c(569): error C2146: syntax error : missing ';' before identifier 'cint'
1>c:\src\json-c\json_object.c(569): error C2065: 'cint' : undeclared identifier
1>c:\src\json-c\json_object.c(576): error C2039: 'c_int64' : is not a member of 'json_object::data'
1>          c:\src\json-c\json_object_private.h(28) : see declaration of 'json_object::data'
1>c:\src\json-c\json_object.c(576): error C2617: 'json_object_get_int64' : inconsistent return statement
1>          c:\src\json-c\json_object.h(517) : see declaration of 'json_object_get_int64'
1>c:\src\json-c\json_object.c(578): error C2146: syntax error : missing ';' before identifier 'jso'
1>c:\src\json-c\json_object.c(582): error C2065: 'cint' : undeclared identifier
1>c:\src\json-c\json_object.c(583): error C2065: 'cint' : undeclared identifier
1>c:\src\json-c\json_object.c(684): error C2039: 'c_int64' : is not a member of 'json_object::data'
1>          c:\src\json-c\json_object_private.h(28) : see declaration of 'json_object::data'
1>  json_c_version.c
1>  debug.c
1>  arraylist.c
1>  Generating Code...
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

@andreasbaumann
Copy link
Author

Sorry about that. I should really have made myself clear as I tested it with VC 2010 debug mode only.

@jamesmyatt
Copy link
Contributor

I think I've now addressed all these issues in my fork: https://github.com/Nzbuu/json-c/tree/fix-win32-build-problems. I've raised a PR to update #163, but I couldn't have done it without comparing with your configuration.

@jamesmyatt
Copy link
Contributor

I've moved my changes to PR #171.

@hawicz hawicz closed this May 9, 2015
@hawicz
Copy link
Member

hawicz commented May 9, 2015

Merged #171 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants