Skip to content

reflect-cpp does not generate .lib file when building as shared on Windows #520

@ErniGH

Description

@ErniGH

When building the library on Windows in shared mode, no symbols are exported and the corresponding .lib file is not generated.

I built it using Conan, and as you can see here the .lib file is not generated:

C:/Users/ernesto/.conan2/p/b/refle6511ce2ce100d/p/lib/cmake/reflectcpp/reflectcpp-exports-release.cmake

reflect-cpp/0.19.0: package(): Packaged 1 '.dll' file: reflectcpp.dll
reflect-cpp/0.19.0: package(): Packaged 376 '.hpp' files
reflect-cpp/0.19.0: package(): Packaged 1 '.h' file: yyjson.h
reflect-cpp/0.19.0: package(): Packaged 1 file: LICENSE
reflect-cpp/0.19.0: Created package revision 09f5cceb5cba84250c48638d6b04e5e5
reflect-cpp/0.19.0: Package 'a5d8167e60ca3058a0934e27117193e1e9ea29c2' created
reflect-cpp/0.19.0: Full package reference: reflect-cpp/0.19.0#613991dd09c0fb51a26864aab6ffed46:a5d8167e60ca305
```
Here you can find the full log:
[reflect-cpp.log](https://github.com/user-attachments/files/22882415/reflect-cpp.log)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions