≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
How exactly are the examples set up?
Posted by:
(you are not logged in)
Enter the missing letter in: "Interna?ional"
(you are not logged in)
Text:
[quote][b]captaincode[/b] wrote: Hey there, I've been learning C++, and while I've been able to pick up the language very quickly (I'm a developer with experience in a bunch of other languages) but I've been struggling to learn how all the additional "configuration" works (if that's the right word for it); compiler settings, linker settings, .a files, .o files, .lib files, and all the other subatomic particles that make up the nuts and bolts of the finished EXE (apparently). :D Specific to irrklang, I can't seem to completely include all the bits and pieces required to create an empty project that can use it. 1. My first step was to try the tutorial here: http://www.ambiera.com/irrklang/tutorial-helloworld.html This didn't compile; I forget what the error was, but it basically led to the conclusion that the header files were missing. 2. So I tried copy/pasting all the header files from the "include" folder into my project, and changed the second line (including irrklang.h) to use quotes instead of < and >. This got rid of the first set of errors and caused some others. 3. Then I figured it must be the pragma comment() line pointing to a file that doesn't exist, and copy/pasted/added that. No dice. 4. Then I looked in the one in the "examples" folder and found a reference to a ".a" file, and did the same in my project. 5. Then I tried adding irrklang.dll just cuz. No luck. 6. So just for the heck of it, I went into the "examples" folder and those compiled and ran perfectly. 7. So I copy/pasted the code in "main.cpp" into my project, guessing I missed a step somewhere else. And of course, the compiler had kittens again; I forget what it was, but I'm sure I could get it to crash again if you need that. :D 8. Did some Googlefishing and tried a few other things, but none of the random Stack Overflow posts I found seemed to do the trick. So I've exhausted all the common-sense and code-related options that I'm aware of... so I'm sure there's some random little nano-detail I'm missing that's goofing things up in my blank project, but I'm totally clueless as to what. At this point I'm considering just copy/pasting the entire irrklang folder for each new project, using it as a sort of template, since it contains whatever mysterious micro-tweaks it takes to make this guy work. But there must be a better way (and usually is when I'm considering resorting to something like that, lol). And here's a bit of info that might be useful: I'm using the Code::Blocks IDE on Windows 7 64-bit, and the "GCC" compiler. I've seen people on Stack Overflow ask for that, so I just figured it might be helpful. So, how *exactly* do I have to rig up the project to make it work with irrklang? The tutorial makes it look as easy as "hello world" but clearly it's a lot more involved than that. Thanks in advance. PS: Sorry for the very noobish question; I'm sure it's my limited knowledge of the inner workings of compilers and/or the IDE, so I appreciate any insights into how to crack this. Thanks! :D [b]EDIT:[/b] Sure enough, if you keep fighting with something and don't give up, eventually you'll get there - just as an FYI to any other newbies dealing with the same problem(s), check out this link: [url]http://www.learncpp.com/cpp-tutorial/a3-using-libraries-with-codeblocks/[/url] This took care of it for me. Now I can get to the fun stuff - the actual irrKlang API (which looks [i]way[/i] more straightforward than the initial setup process. Sorry again for the newbie question, and ttyl. *smile*[/quote]
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