microsoftarchive / redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes
http://redis.io
Other
20.84k stars 5.38k forks source link

Build failed in Visual studio 2015 in windows 8.1 pro #452

Closed keerthivasan-r closed 8 years ago

keerthivasan-r commented 8 years ago

Hi, I'm trying to build solution in Visual studio 2015 community edition in Windows 8.1 pro. But, it get multiple errors as follows. Can anyone help? I think something is missing with my setup.

Severity    Code    Description Project File    Line    Suppression State
Error   LNK2001 unresolved external symbol "double __cdecl wstrtod(char const *,char * *)" (?wstrtod@@YANPEBDPEAPEAD@Z) RedisBenchmark  E:\BaskarProject\softwares\redis\msvs\RedisBenchmark\Win32_Interop.lib(Win32_CommandLine.obj)   1    
Error   LNK1120 1 unresolved externals  RedisBenchmark  E:\BaskarProject\softwares\redis\msvs\x64\Release\redis-benchmark.exe   1    
Error   LNK2001 unresolved external symbol "double __cdecl wstrtod(char const *,char * *)" (?wstrtod@@YANPEBDPEAPEAD@Z) RedisCli    E:\BaskarProject\softwares\redis\msvs\RedisCli\Win32_Interop.lib(Win32_CommandLine.obj) 1    
Error   LNK1120 1 unresolved externals  RedisCli    E:\BaskarProject\softwares\redis\msvs\x64\Release\redis-cli.exe 1    
Error   LNK2001 unresolved external symbol "double __cdecl wstrtod(char const *,char * *)" (?wstrtod@@YANPEBDPEAPEAD@Z) RedisServer E:\BaskarProject\softwares\redis\msvs\Win32_Interop.lib(Win32_CommandLine.obj)  1    
Error   LNK1120 1 unresolved externals  RedisServer E:\BaskarProject\softwares\redis\msvs\x64\Release\redis-server.exe  1    
enricogior commented 8 years ago

Hi @keerthivasan-r can you please do a clean build of the Win32_Interop project and show the output? Thank you.

keerthivasan-r commented 8 years ago

hi @enricogior

I have cleaned and build it. Here is the output

1>------ Build started: Project: Win32_Interop, Configuration: Release x64 ------
1>  Performing Custom Build Tools
1>  A subdirectory or file resources already exists.
1>  MC: Compiling EventLog.mc
1>  Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336
1>
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1>
1>
1>  Microsoft (R) Incremental Linker Version 14.00.23918.0
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1>
1>LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
1>  win32fixes.c
1>  Win32_ANSI.c
1>  Win32_APIs.c
1>  Win32_dlmalloc.c
1>  Win32_Error.c
1>  Win32_PThread.c
1>  Win32_QFork_impl.c
1>  Win32_RedisLog.c
1>  Win32_Signal_Process.c
1>  Win32_ThreadControl.c
1>  Win32_Time.c
1>  win32_wsiocp.c
1>  Win32_CommandLine.cpp
1>  Win32_Common.cpp
1>  Win32_EventLog.cpp
1>  Win32_FDAPI.cpp
1>  Win32_fdapi_crt.cpp
1>  Win32_QFork.cpp
1>Win32_QFork.cpp(513): warning C4312: 'type cast': conversion from 'unsigned long' to 'HANDLE' of greater size
1>  win32_rfdmap.cpp
1>  Win32_service.cpp
1>  Win32_StackTrace.cpp
1>C:\Program Files (x86)\Windows Kits\8.1\Include\um\DbgHelp.h(1544): warning C4091: 'typedef ': ignored on left of '' when no variable is declared
1>C:\Program Files (x86)\Windows Kits\8.1\Include\um\DbgHelp.h(3190): warning C4091: 'typedef ': ignored on left of '' when no variable is declared
1>  Win32_variadicFunctor.cpp
1>  Win32_Interop.vcxproj -> E:\BaskarProject\softwares\redis\msvs\x64\Release\Win32_Interop.lib
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
enricogior commented 8 years ago

@keerthivasan-r this should be fixed now, please pull the latest commit from the repo. I'm closing the issue, but please reopen it if needed. Thank you.