Skip to content

Missing stdio.h on build #249

@Bobitsmagic

Description

@Bobitsmagic

Hello, i am trying to run the rust example and i cannot build it.

i am on Windows and used the installer from scipopt.org and set the SCIPOPDIR environtment variable to the installed location.

When i try to compile my project i get an error saying that "stdio.h" could not be found.

   Compiling scip-sys v0.1.21
warning: [email protected]: Detected OS: windows
warning: [email protected]: Detected arch: x86_64
warning: [email protected]: Downloading from https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.7.0/libscip-windows-debug.zip
warning: [email protected]: Downloaded to "C:\\Users\\hmart\\AppData\\Local\\Temp\\.tmpShr5j9\\libscip.zip"
warning: [email protected]: Extracting to "C:\\Users\\hmart\\Documents\\GitHub\\multi-label-classification-miqp\\scip_rust\\target\\debug\\build\\scip-sys-c9e265f3817d9184\\out"
warning: [email protected]: Using SCIP from C:\Users\hmart\Documents\GitHub\multi-label-classification-miqp\scip_rust\target\debug\build\scip-sys-c9e265f3817d9184\out\scip_install\lib
error: failed to run custom build command for `scip-sys v0.1.21`

Caused by:
  process didn't exit successfully: `C:\Users\hmart\Documents\GitHub\multi-label-classification-miqp\scip_rust\target\debug\build\scip-sys-af6739401844de6c\build-script-build` (exit code: 1)
  --- stdout
  cargo:warning=Detected OS: windows
  cargo:warning=Detected arch: x86_64
  cargo:warning=Downloading from https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.7.0/libscip-windows-debug.zip
  cargo:warning=Downloaded to "C:\\Users\\hmart\\AppData\\Local\\Temp\\.tmpShr5j9\\libscip.zip"
  cargo:warning=Extracting to "C:\\Users\\hmart\\Documents\\GitHub\\multi-label-classification-miqp\\scip_rust\\target\\debug\\build\\scip-sys-c9e265f3817d9184\\out"
  cargo:warning=Using SCIP from C:\Users\hmart\Documents\GitHub\multi-label-classification-miqp\scip_rust\target\debug\build\scip-sys-c9e265f3817d9184\out\scip_install\lib
  cargo:rustc-link-search=C:\Users\hmart\Documents\GitHub\multi-label-classification-miqp\scip_rust\target\debug\build\scip-sys-c9e265f3817d9184\out\scip_install\lib
  cargo:libdir=C:\Users\hmart\Documents\GitHub\multi-label-classification-miqp\scip_rust\target\debug\build\scip-sys-c9e265f3817d9184\out\scip_install\lib
  cargo:rustc-link-search=C:\Users\hmart\Documents\GitHub\multi-label-classification-miqp\scip_rust\target\debug\build\scip-sys-c9e265f3817d9184\out\scip_install\bin
  cargo:rustc-link-arg=-Wl,-rpath,C:\Users\hmart\Documents\GitHub\multi-label-classification-miqp\scip_rust\target\debug\build\scip-sys-c9e265f3817d9184\out\scip_install\lib
  cargo:rustc-link-lib=libscip

  --- stderr
  C:\Users\hmart\Documents\GitHub\multi-label-classification-miqp\scip_rust\target\debug\build\scip-sys-c9e265f3817d9184\out\scip_install\include\scip\scip.h:42:10: fatal error: 'stdio.h' file not found
  Error: ClangDiagnostic("C:\\Users\\hmart\\Documents\\GitHub\\multi-label-classification-miqp\\scip_rust\\target\\debug\\build\\scip-sys-c9e265f3817d9184\\out\\scip_install\\include\\scip\\scip.h:42:10: fatal error: 'stdio.h' file not found\n")

I tried using diffrent libclang.dll directories and i tried to build the rust project with the "boundled" and the "from source" option.
I used VS2022 to install the necessary clang libraries.

What can i do to get my project running?

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