Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Building in VS2010 C++

ecureuill
Registered User
Quote
2013-02-23 18:37:40

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"
using namespace irrklang;
pragma comment(lib, "irrKlang.lib")


Copy to my project directory
irrKlang.lib
irrKlang.dll
ikpMP3.dll

I have tried with and without the pragma

thanks!


niko
Moderator
Quote
2013-02-24 21:26:59

What is the line of code exactly where this error happens?


ecureuill
Registered User
Quote
2013-02-24 23:23:20

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


erik
Registered User
Quote
2013-02-25 19:36:48

You are using a C-Sharp project? But the code you pasted is C++ only. Try the CSharp tutorials on this page instead.


ecureuill
Registered User
Quote
2013-02-25 20:39:22

wrote:
You are using a C-Sharp project? But the code you pasted is C++ only.


No, it's a C project.


niko
Moderator
Quote
2013-02-27 09:25:47

irrKlang is C++ only, you cannot use it from C :)


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact