GithubHelp home page GithubHelp logo

Comments (4)

walbourn avatar walbourn commented on May 28, 2024 1

For Windows I'm assuming use of MSVC or MSVC-like compiler: cl.exe, clang-cl, icl.exe, icx.exe.

I could potentially update DirectXMath to use fully qualified name resolution in these cases if that would help.

from directxtk.

walbourn avatar walbourn commented on May 28, 2024 1

The use of Internal in multiple contexts is the problem.

Ok, I propose that I change the DirectXMath library to use DirectX::MathInternal, and DirectX Tool Kit for DX11 & DX12 to use DirectX::DX1?::ToolKitInternal.

That should work, yes?

from directxtk.

joshuamaiche avatar joshuamaiche commented on May 28, 2024

I tried it, and unfortunately fully-qualified name resolution won't work.

namespace DirectX
{
    namespace Internal {}
    inline namespace DX11 { namespace Internal {} }
}

means that while DirectX::DX11::Internal is not ambiguous, DirectX::Internal is.

The only solution that worked for me was just getting rid of the ambiguity. If DX11::Internal really is internal, is there a big risk to its name being changed? I was able to get DirectXTK compiling on clang by changing DX11::Internal to DX11::InlinedInternal in ScreenGrab.cpp and WICTextureLoader.cpp, but I'm not sure if there are consequences I'm not seeing.

Let me know if you want me to put up a PR with those changes.

from directxtk.

joshuamaiche avatar joshuamaiche commented on May 28, 2024

That should fix it, thanks!

from directxtk.

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.