Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

[Windows] compile error C2062 #386

@yunge

Description

@yunge

Win10 64bit, vs2013 update5, with Visual C++ Compiler Nov 2013 CTP, just followed Installation Guide.

error C2062: type 'const char' unexpected ...\include\mxnet\c_api.h 58
error C2062: type 'int' unexpected ...\include\mxnet\c_api.h 68
.....

cmake output:
-- The C compiler identification is MSVC 18.0.21114.0
-- The CXX compiler identification is MSVC 18.0.21114.0
-- Check for working C compiler using: Visual Studio 12 2013 Win64
-- Check for working C compiler using: Visual Studio 12 2013 Win64 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 12 2013 Win64
-- Check for working CXX compiler using: Visual Studio 12 2013 Win64 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Atlas: D:/weiyun/software/dev/OpenBLAS-v0.2.14-Win64-int32/include
-- Found Atlas (include: D:/weiyun/software/dev/OpenBLAS-v0.2.14-Win64-int32/include, library: D:/weiyun/software/dev/OpenBLAS-v0.2.14-Win64-int32/lib/libopenblas.dll)
-- CUDA detected: 7.5
-- Added CUDA NVCC flags for: sm_52
-- OpenCV found (D:/software/opencv/build)
-- Try OpenMP C flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: /openmp
-- Found PythonInterp: C:/Python35/python.exe (found suitable version "3.5", minimum required is "2")
-- Found PythonInterp: C:/Python35/python.exe (found suitable version "3.5", minimum required is "3")
-- Found PythonInterp: C:/Python35/python.exe (found suitable version "3.5", minimum required is "2")
-- Found PythonInterp: C:/Python35/python.exe (found suitable version "3.5", minimum required is "3")
-- Configuring done
-- Generating done
-- Build files have been written to: c:/mxnetbuild

Please help, thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions