0
0

i am using dev c++

while trying to compile using fmodvc.lib i am gettn linker error

[b:rbluxlqp]i dd include the library file "fmodvc.lib" in my project[/b:rbluxlqp]

[Linker error] undefined reference to FSOUND_GetVersion'
[Linker error] undefined reference to
FSOUND_Init’
[Linker error] undefined reference to FMUSIC_LoadSong'
[Linker error] undefined reference to
FMUSIC_GetName’
….
….
….

here is my source code..

include <stdio.h>

include <stdlib.h>

include "fmod.h"

define SONG_NAME "techno.mod"

int main()
{
FMUSIC_MODULE *pModule;

if(FSOUND_GetVersion() &lt; FMOD_VERSION )
{
   printf(&quot;Error: You are using the wrong DLL version. You shoule be using FMOD %f&quot;, FMOD_VERSION);
   exit(1);
}

if(!FSOUND_Init(44100, 32, FSOUND_INIT_GLOBALFOCUS))
{
   printf(&quot;%s&quot;, FMOD_ErrorString(FSOUND_GetError()));
   exit(1);
}


pModule =FMUSIC_LoadSong(SONG_NAME);

printf(&quot;Playing......%s&quot;, FMUSIC_GetName(pModule));

while(!getchar())
{
    printf(&quot;order: %d, row: %d channels playing: %d cpu usage: %.02f%%     \r&quot;,
    FMUSIC_GetOrder(pModule),
    FMUSIC_GetRow(pModule),
    FSOUND_GetChannelsPlaying(),
    FSOUND_GetCPUUsage());
}

printf(&quot;\n&quot;);

FMUSIC_FreeSong(pModule);

FSOUND_Close();

return 0;

}

  • You must to post comments
0
0

you didnt read readme.txt. What made you choose the visual studio library to link with?

[quote:21qhkw8g]

WIN32 specific issues.

Remember to use the correct import library!

MSVC Users – use FMODVC.LIB
METROWERKS/CODEWARRIOR Users – use FMODVC.LIB
WATCOM Users – use FMODWC.LIB
BORLAND Users – use FMODBC.LIB
LCC-WIN32 Users – use FMODLCC.LIB
DEV-C++, MINGW AND CYGWIN Users – use LIBFMOD.A

Linux users – link with libfmod-3.75.so (i.e. gcc file.c -lfmod-3.75)
Delphi Users – use FMOD.PAS
Visual Basic Users – use FMOD.BAS
[/quote:21qhkw8g]

  • You must to post comments
0
0

thanx its now solved…

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.