Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi Guys, When I try to compile (an empty project), I get the error "C206: syntax error: identifier 'irrklang'in the namespace line of the irrKlang header archives and in I added irrKlang-1.4.0\include in C/C++ >> General >> Additional Included Directories VC++ Directories >> Include Directories irrKlang-1.4.0\lib\Win32-visualStudio in Linker >> General >> Additional Library Directories VC++ Directories >>Library Directories irrKlang.lib in Linker >> Input >> Additional Dependencies In my code include "irrklang.h" Copy to my project directory irrKlang.lib irrKlang.dll ikpMP3.dll I have tried with and without the pragma thanks! |
||||
|
What is the line of code exactly where this error happens? |
||||
|
First of all, I need to make a correction, I realized that I put in title "C++", but it's a "C" project. Sorry! The error happens in "include "irrklang.h" line in my c code and in the "namespace irrklang {" line of the archives of irrKlang Printscreen https://docs.google.com/file/d/0... I saw in this forum that people already use irrklang in C project, so how is correct way to do this? Thanks Camilla |
||||
|
You are using a C-Sharp project? But the code you pasted is C++ only. Try the CSharp tutorials on this page instead. |
||||
|
wrote: You are using a C-Sharp project? But the code you pasted is C++ only. No, it's a C project. |
||||
|
irrKlang is C++ only, you cannot use it from C :) |
|