0
0

Hi, I use CBuilder 2006

  1. #include “fmod.hpp”
  2. Add to project “fmodex_bc.lib”

  3. FMOD_RESULT result;
    FMOD::System *system;

    result = FMOD::System_Create(&system);
    result = system->init(100, FMOD_INIT_NORMAL, 0);

result of compilation – linker error
[Linker Error] Error: Unresolved external ‘__stdcall FMOD::System::init(int, unsigned int, void *)’ referenced from C:...\UNIT1.OBJ

why?

  • You must to post comments
0
0

add a line:

pragma comment(lib, “fmodex_bc.lib”)

so…

it seems like:

include…

include…

include…

pragma comment(lib, “fmodex_bc.lib”)

So far as I know, the “Unresolved external XXX” error is due to absense of certain lib.

I wish this may help.

  • You must to post comments
0
0

[quote="kostja[ru]":2zvbky0k]Hi, I use CBuilder 2006

  1. #include “fmod.hpp”
  2. Add to project “fmodex_bc.lib”

  3. FMOD_RESULT result;
    FMOD::System *system;

    result = FMOD::System_Create(&system);
    result = system->init(100, FMOD_INIT_NORMAL, 0);

result of compilation – linker error
[Linker Error] Error: Unresolved external ‘__stdcall FMOD::System::init(int, unsigned int, void *)’ referenced from C:...\UNIT1.OBJ

why?[/quote:2zvbky0k]
In BCB you have to use the C interface.
Try this:

FMOD_RESULT result;
FMOD_SYSTEM *system;

result = FMOD_System_Create(&system);
result = FMOD_System_Init(system, 100, FMOD_NORMAL, 0);

This should work.

If you need more help, take a look at the c-examples in the fmod dir.

Nico

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.