Code::Blocks Forums

User forums => Help => Topic started by: veeman28 on February 22, 2012, 08:14:50 pm

Title: code blocks having trouble with fmob and irrklang
Post by: veeman28 on February 22, 2012, 08:14:50 pm
hi  :)  im new with code blocks so hope im in the rite place for this

i downloaded code blocks about a week ago so i could learn c++
got SFML working on it and had a play around with that so i thought
i would have a go at playing with mp3's so i got irrklang but couldn't
get it working so i tried FMOD but couldent get that working either  :(

I get errors like:-
Quote
E:\c++ proj\sound1\main.cpp|53|undefined reference to `FMOD::System::getVersion(unsigned int*)@8'|

been tryin to figure out what i'm doing wrong for 3 days now but my head
has started hurting!!!! can anyone help???

thanks :)
Title: Re: code blocks having trouble with fmob and irrklang
Post by: MortenMacFly on February 22, 2012, 08:39:57 pm
Quote
E:\c++ proj\sound1\main.cpp|53|undefined reference to `FMOD::System::getVersion(unsigned int*)@8'|
So why don't you ask the FMOD people? This is a Code::Blocks forum.
Title: Re: code blocks having trouble with fmob and irrklang
Post by: veeman28 on February 22, 2012, 08:45:55 pm
ahh ok i'll try that thanks :)
Title: Re: code blocks having trouble with fmob and irrklang
Post by: veeman28 on February 22, 2012, 11:21:09 pm
not having much luck with FMOD forum so if anyone can help
here it will be much appreciated

gonna get some kip so i'll check my posts tomoz

cheerz 
Title: Re: code blocks having trouble with fmob and irrklang
Post by: stahta01 on February 22, 2012, 11:40:45 pm
Learn to post the compiler name and version when you ask for help in a forum thread.

Turn on Full Compiler Logging
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)

Read how to ask a smart question is a good thing to do and also understand.
http://catb.org/esr/faqs/smart-questions.html#forum (http://catb.org/esr/faqs/smart-questions.html#forum)

FYI: I never heard of this library before today; but, just looking at a few links implies you NEED to use C instead of C++ to link the library correctly with the MinGW GCC compiler.
I suggest using the C example code.
http://stackoverflow.com/questions/8309342/compiling-fmod-using-gcc-on-windows (http://stackoverflow.com/questions/8309342/compiling-fmod-using-gcc-on-windows)

Once you get that to work; find a programming site to teach you how to mix C and C++ code.
WARNING: This NOT a site that supports programming questions on how to mix C and C++ code.

Tim S.



Title: Re: code blocks having trouble with fmob and irrklang
Post by: p2rkw on February 22, 2012, 11:47:18 pm
Did u add these libraries to linker settings? ( project->properties->build options->linker ). Check out wiki for an examples for other 3-rd party libs.
Title: Re: code blocks having trouble with fmob and irrklang
Post by: veeman28 on March 06, 2012, 11:38:55 pm
thanks p2rkw :) it was the linker settings ((found it in)settings->compiler & debugger->linker settings)

@stahta01 - thanks for the links and advice i'll try n keep it in mind

cheers guys :)

p.s sorry i took so long to reply had some rl stuff to sort
Title: Re: code blocks having trouble with fmob and irrklang
Post by: Jenna on March 07, 2012, 12:10:21 am
thanks p2rkw :) it was the linker settings ((found it in)settings->compiler & debugger->linker settings)

@stahta01 - thanks for the links and advice i'll try n keep it in mind

cheers guys :)

p.s sorry i took so long to reply had some rl stuff to sort

Be aware, taht all settings you make their are used for all projects that use the compiler.
This will most likely lead to problems sooner or later, and it will break compilage on other computers, that do not have the same global settings.

In most cases it's better to make the settings for your project only in "Project -> Build options -> [your project or a special target] -> Linker settings" .