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

credis can't compile successfully using msvc-9.0 #41

Open
GoogleCodeExporter opened this issue Nov 3, 2015 · 1 comment
Open

credis can't compile successfully using msvc-9.0 #41

GoogleCodeExporter opened this issue Nov 3, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

1>------ Build started: Project: credis, Configuration: Debug Win32 ------
1>Compiling...
1>credis-test.c
1>e:\credis\credis-test.c(35) : fatal error C1083: Cannot open include file: 
'sys/time.h': No such file or directory
1>credis.c
1>e:\credis\credis.c(786) : error C2143: syntax error : missing ';' before 
'type'
1>e:\credis\credis.c(791) : error C2065: 'he' : undeclared identifier
1>e:\credis\credis.c(791) : warning C4047: '=' : 'int' differs in levels of 
indirection from 'hostent *'
1>e:\credis\credis.c(793) : error C2065: 'he' : undeclared identifier
1>e:\credis\credis.c(793) : warning C4047: '=' : 'int' differs in levels of 
indirection from 'hostent *'
1>e:\credis\credis.c(795) : error C2065: 'he' : undeclared identifier
1>e:\credis\credis.c(795) : warning C4047: '==' : 'int' differs in levels of 
indirection from 'void *'
1>e:\credis\credis.c(798) : error C2065: 'he' : undeclared identifier
1>e:\credis\credis.c(798) : error C2223: left of '->h_addr_list' must point to 
struct/union
1>e:\credis\credis.c(798) : warning C4022: 'memcpy' : pointer mismatch for 
actual parameter 2
1>e:\credis\credis.c(798) : error C2198: 'memcpy' : too few arguments for call
1>e:\credis\credis.c(817) : warning C4013: 'fcntl' undefined; assuming extern 
returning int
1>e:\credis\credis.c(817) : error C2065: 'F_GETFL' : undeclared identifier
1>e:\credis\credis.c(818) : error C2065: 'F_SETFL' : undeclared identifier
1>e:\credis\credis.c(818) : error C2065: 'O_NONBLOCK' : undeclared identifier
1>e:\credis\credis.c(823) : error C2065: 'EINPROGRESS' : undeclared identifier
1>e:\credis\credis.c(829) : warning C4133: 'function' : incompatible types - 
from 'int *' to 'char *'
1>e:\credis\credis.c(1860) : warning C4013: 'strcasecmp' undefined; assuming 
extern returning int
1>Generating Code...
1>Project : warning PRJ0018 : The following environment variables were not 
found:
1>$(hge)
1>Build log was saved at "file://e:\credis\Debug\BuildLog.htm"
1>credis - 12 error(s), 7 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Original issue reported on code.google.com by wuchuy...@gmail.com on 27 Nov 2011 at 8:52

@GoogleCodeExporter
Copy link
Author

Hey,
I had the same problems. I attached the fix below.
Feel free to review and add it to the repository.

Original comment by robin.ha...@gmail.com on 27 Apr 2012 at 11:59

Attachments:

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

No branches or pull requests

1 participant