Menu

information on the errors

2002-11-28
2012-09-26
  • Nobody/Anonymous

    i'm new to dev-c++ it looks good but don't understand the error messages. i'm trying to run Fmod MP3 player example on this site, it compiles without error but  the linker gives this message and doesn't run.
    [c:/unzipped/fmod_mp3_cpp_devc/playing mp3 and wav using fmod/main.o(.text+0x69b):main.cpp: undefined reference to `CFmod::CFmod(void)']
    is there anywhere i can find information on the errors messages?

     
    • Curtis Sutter

      Curtis Sutter - 2002-11-29

      are you including the libfmod.a file in your project?  You must link this file for Fmod to work.

      Curtis

       
    • Nobody/Anonymous

      thanks Curtis , i just get this error message now [g++: c:\unzipped\fmod_mp3_cpp_devc\playing mp3 and wav using fmod\libfmod.a: linker input file unused since linking not done]
      i guess i'm not linking properly, i'm not sure how. i've tryed adding the path of the file in  to the field for the objects in the project options and tried adding the actual file to the project and rebuilding but i'm sure this is not right. how do i link properly?

       
    • Curtis Sutter

      Curtis Sutter - 2002-11-29

      Try this.
      add this line to your Project options under "Linker Options..."
      libfmod.a
      then make sure that the libfmod.a file is in your project folder.  You do not have to add this file to your project.  Just that line.  If it compiles, Great.  If not, then goto ftp://curtis.servebeer.com , log in as an anon, and upload all the files required for your lab.
      If you get a error messagebox, after running your prog, then make sure the fmod.dll file is in the same directory as the .exe

      Curtis

       
    • Curtis Sutter

      Curtis Sutter - 2002-11-29

      Just a note...

      The FMod license is as follows...
      Free
          Yes that's right, if your product is not intended to make any money, and is not charged for in any way, then you may use FMOD in it for FREE!
      Many people use it for free until their commercial product is about to be published. This is a great way to evaluate FMOD and see if it suits your needs without any obligations.

      There are other ways to implement sound like openal http://www.openal.org/home/
      I personally like fmod myself, but can't afford it if I were to make something to sell.

      Curtis

       
    • Nobody/Anonymous

      i reinstalled the "FMod_MP3_Cpp_DEVC"  file, i still get this error tho, not sure why? [c:/unzipped/fmod_mp3_cpp_devc/playing mp3 and wav using fmod/main.cpp:68: implicit declaration of function `int _kbhit(...)']
      anyway.. i hacked around it and did what you said, and now its working.
      thank you its give me a good start.
      ps the license thing is not a problem at the moment my programs are not good enougth, besides i just do it for fun.

       
    • Nobody/Anonymous

      i reinstalled the "FMod_MP3_Cpp_DEVC"  file, i still get this error tho, not sure why? [c:/unzipped/fmod_mp3_cpp_devc/playing mp3 and wav using fmod/main.cpp:68: implicit declaration of function `int _kbhit(...)']
      anyway.. i hacked around it and did what you said, and now its working.
      thank you its give me a good start.
      ps the license thing is not a problem at the moment my programs are not good enougth, besides i just do it for fun.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.