Coder Social home page Coder Social logo

Comments (3)

Jake-Shadle avatar Jake-Shadle commented on July 22, 2024

That is not a valid triple, it should be x86_64-pc-windows-msvc

from xwin.

ofersadgat avatar ofersadgat commented on July 22, 2024

Thanks for the help! If I could ask one more thing...after fixing the triple, I now get the following error:

root:/# /usr/bin/clang --target=x86_64-pc-windows-msvc -Wall -std=c99 -o tmp tmp.c
tmp.c:1:10: fatal error: 'stdlib.h' file not found
#include <stdlib.h>
^~~~~~~~~~
1 error generated.
root:/# /usr/bin/clang --target=x86_64-pc-windows-msvc -Wall -std=c99 -o tmpa tmp.c
tmp.c:1:10: fatal error: 'windows.h' file not found
#include <windows.h>
^~~~~~~~~~~

It cant find windows.h either...am I supposed to manually add the include path?

from xwin.

Jake-Shadle avatar Jake-Shadle commented on July 22, 2024

The dockerfile is only provided as an example for compiling C/C++ code via Rust and Cargo and sets up environment variables to do that, if you are compiling C/C++ directly via clang you will need to set up the appropriate include directories and library directories to compile and link.

// Includes
-Wno-unused-command-line-argument -fuse-ld=lld-link /imsvc/xwin/crt/include /imsvc/xwin/sdk/include/ucrt /imsvc/xwin/sdk/include/um /imsvc/xwin/sdk/include/shared
// Libraries
-Lnative=/xwin/crt/lib/x86_64 -Lnative=/xwin/sdk/lib/um/x86_64 -Lnative=/xwin/sdk/lib/ucrt/x86_64

from xwin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.