boostorg / boostorg/boost

Cannot open boost lib file when building CLI dll

Open
#701 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
8.6k
Forks
1.9k
Avg merge
39m
Merged PRs (30d)
2

Description

I am trying to build a CLR dll file in VS22 and dotnet 6.0 that references boost. When I build, I get the following error.
LNK1104 cannot open file 'libboost_program_options-vc142-mt-x64-1_76.lib'

- This file does exist.
- I have restarted to make sure the file isn't locked.
- I have tried building as 32 and 64 bit.
- I have tried 3 different versions of boost

I can build with boost in projects that are not CLI dlls.

The problem is reproduced by this project: https://github.com/MajorMajor0/boostRepro.
Any help would be much appreciated.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.