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

SlimDx can't be used from a VS2015 C++ Project #506

Open
0x53A opened this issue May 10, 2016 · 7 comments
Open

SlimDx can't be used from a VS2015 C++ Project #506

0x53A opened this issue May 10, 2016 · 7 comments

Comments

@0x53A
Copy link

0x53A commented May 10, 2016

When I try to compile a Visual Studio 2015 C++/CLI Project referencing SlimDx, I get the error 'std::errc': has already been defined to be a namespace

I think the issue is that SlimDx includes std::errc as a namespace:
image

Could you publish a version compiled with VC++ 2015?

Ref http://stackoverflow.com/questions/32051099/migrating-clr-project-to-vs-2015-throws-c2869-compiler-error

@robertxwu
Copy link

I encountered the same problem. I managed to build the SlimDx.dll with vs2015 by changing some code.

@DankersW
Copy link

@robertxwu I’m stuck with the same problem. I’m wondering how you were able to fix this problem. Are you willing to help me?
Kind regards,
Wouter

@robertxwu
Copy link

@DankersW Surely I would like to help. Do you know how to create a new branch for VS2015?

@DankersW
Copy link

@robertxwu No sorry I don’t know how to do that, thank you in advance for the help

@robertxwu
Copy link

@DankersW, the attachment (you have to change its extension to .7z) includes all changes I made to SlimDX-master in order to build them with VS2015.
slimdx-master_vs2015.zip

Note: although a large number of files are included in the attachment, only a very small portion of them were modified.

What you have to do:

  1. download the SlimDX master branch
  2. replace files/folders with those included in the attachment.
  3. open and compile the solution with the latest VS2015

Note: the solution was modified so that only project SlimDX and Effects11 were loaded.

Good luck!
Robert

@AraHaan
Copy link

AraHaan commented Jul 12, 2016

@robertxwu
or here is a good approach.

  1. Fork this Repo.
  2. Create or new Branck or Just change the same one on your fork.
  3. Create a Pull Request with the following. [your name here]/slimdx -> SlimDX/slimdx.
  4. Profit?

@johnnyontheweb
Copy link

In vs2019 it's not working, I still get a syntax error: identifier '__RPC__inout_xcount' at Effects11 C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\um\objidl.h, line 14528
It's an issue related to DirectX SDK and Windows SDK 10.0, see here, but I suspect there's something related to c++ language version specs.

Unfortunately no way to solve this (I tried also to change order of include by modifying include path), any advice on that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants