Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] boost/1.86.0: Boost::process can't be used #25242

Open
Nekto89 opened this issue Sep 12, 2024 · 0 comments
Open

[package] boost/1.86.0: Boost::process can't be used #25242

Nekto89 opened this issue Sep 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Nekto89
Copy link
Contributor

Nekto89 commented Sep 12, 2024

Description

Boost::process became compilable library in 1.86.0. Currently conan doesn't build it.

Package and Environment Details

  • Package Name/Version: boost/1.86.0
  • Operating System+version: Windows 11
  • Compiler+version: VS 2022 17.10.4
  • Docker image: -
  • Conan version: conan 2.7.1
  • Python version: Python 3.9.1

Conan profile

[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=194
os=Windows

Steps to reproduce

from conan import ConanFile
from conan.tools.files import copy

class MyApp(ConanFile):
    name = "app"
    version = "1.0"
    settings = "os", "arch", "compiler", "build_type"

    def requirements(self):
        self.requires("boost/1.86.0")

    def generate(self):
        pass
cmake_minimum_required(VERSION 3.15)
project(test CXX)

find_package(Boost REQUIRED)

add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME} Boost::filesystem)
#include <boost/process/v2/pid.hpp>

#include <iostream>

int main() {
    std::cout << boost::process::v2::current_pid() << '\n';
    return 0;
}

conan install -g CMakeToolchain -g CMakeDeps ..\src\conanfile.py
cmake -G"Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake ../src
cmake --build . --config Release -j

Logs

Click to expand log
MSBuild version 17.10.4+10fbfbf2e for .NET Framework

  1>Checking Build System
  Building Custom Rule C:/dev/conan/test_boost_process/src/CMakeLists.txt
  main.cpp
main.obj : error LNK2019: unresolved external symbol "unsigned long __cdecl boost::process::v2::current_pid(void)" (?cu
rrent_pid@v2@process@boost@@YAKXZ) referenced in function main [C:\dev\conan\test_boost_process\bld\test.vcxproj]
C:\dev\conan\test_boost_process\bld\Release\test.exe : fatal error LNK1120: 1 unresolved externals [C:\dev\conan\test_b
oost_process\bld\test.vcxproj]
@Nekto89 Nekto89 added the bug Something isn't working label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants