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

Fixed Compiling with Visual Studio 2015 #39

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

hhyyrylainen
Copy link
Contributor

@hhyyrylainen hhyyrylainen commented Jun 19, 2016

When I tried to compile on windows 10 and Visual Studio 2015 I got the following error:

c:\projects\caudio\caudio\include\cAudioString.h(53): error C2664: 'int WideCharToMultiByte(UINT,DWORD,LPCWCH,int,LPSTR,int,LPCCH,LPBOOL)': cannot convert argument 3 from 'const char *' to 'LPCWCH'
3>  c:\projects\caudio\caudio\include\cAudioString.h(53): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>c:\projects\caudio\caudio\include\cAudioString.h(64): error C2664: 'int MultiByteToWideChar(UINT,DWORD,LPCCH,int,LPWSTR,int)': cannot convert argument 5 from 'char *' to 'LPWSTR'
3>  c:\projects\caudio\caudio\include\cAudioString.h(64): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>c:\projects\caudio\caudio\headers\cOpenALUtil.h(8): fatal error C1083: Cannot open include file: 'OpenAL/al.h': No such file or directory

I was able to fix those errors and successfully compile with these changes.

I didn't remember I had this open so I accidentally included a linux linker fix here as well.

@xerpi
Copy link

xerpi commented Oct 21, 2016

I can confirm this made it able to compile in Visual Studio 2013.

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

Successfully merging this pull request may close these issues.

None yet

5 participants