Skip to content

msvc2013 errors #3

@r-lyeh-archived

Description

@r-lyeh-archived
D:\prj\cppcomponents\examples\example1>cl example1.cpp -I ..\.. /EHsc 
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30501 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

example1.cpp
d:\prj\cppcomponents\examples\example1\library.h(17) : error C2440: 'specialization' : cannot convert from 'std::string (__cdecl *)(void)' to 'const char *(__cdecl *)(void)'
        Incompatible calling conventions for UDT return value
D:\prj\cppcomponents\examples\plugin>cl plugin1.cpp -I ..\.. /EHsc
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30501 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

plugin1.cpp
d:\prj\cppcomponents\examples\plugin\plugin.hpp(23) : error C2440: 'specialization' : cannot convert from 'std::string (__cdecl *)(void)' to 'const char *(__cdecl *)(void)'
        Incompatible calling conventions for UDT return value
d:\prj\cppcomponents\examples\plugin\plugin.hpp(31) : error C2039: 'cr_string' : is not a member of 'cppcomponents'
d:\prj\cppcomponents\examples\plugin\plugin.hpp(31) : error C2061: syntax error : identifier 'cr_string'
d:\prj\cppcomponents\examples\plugin\plugin.hpp(32) : error C2039: 'cr_wstring' : is not a member of 'cppcomponents'
d:\prj\cppcomponents\examples\plugin\plugin.hpp(32) : error C2061: syntax error : identifier 'cr_wstring'
d:\prj\cppcomponents\examples\plugin\plugin.hpp(40) : error C2440: 'specialization' : cannot convert from 'std::string (__cdecl *)(void)' to 'const char *(__cdecl *)(void)'
        Incompatible calling conventions for UDT return value
plugin1.cpp(5) : error C2440: 'specialization' : cannot convert from 'std::string (__cdecl *)(void)' to 'const char *(__cdecl *)(void)'
        Incompatible calling conventions for UDT return value
plugin1.cpp(24) : error C2440: 'specialization' : cannot convert from 'std::string (__cdecl *)(void)' to 'const char *(__cdecl *)(void)'
        Incompatible calling conventions for UDT return value

etc...

ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions