0
0

Hi, i have a problem compiling a simple test app with fmod. The compiler says

LccLnk Error:
xmp.obj .text: undefined reference to ‘_FMOD_System_Create@4’

This error occurs when i try to compile even the simple examples included in fmod. only it will list all api’s that are referenced. I just created a small app that only references FMOD_System_Create for testing purposes.

So I changed the fmod.h to say this:

FMOD_RESULT F_API (*FMOD_System_Create) (FMOD_SYSTEM **system);

it compiles if i do that, but the program will crash.
anybody got any ideas?
thanks

  • You must to post comments
0
0

did you link to the relevant lcc import library.

  • You must to post comments
0
0

uhh…..

I’m an idiot….
you know, its been two years since I have done any programming what so ever. I am just now getting back into it. I guess I forgot a lot of it
heh, sorry. Well, thanks for the reminder.

  • You must to post comments
0
0

maybe I’m not an idiot after all. It compiles now, but it just makes this stupid little console window and it goes away real fast. It doesn’t perform even the simplest task

[code:vevpfuhd]// *************************************************************
// Created with BCX — The BASIC To C Translator (ver 4.61)
// BCX (c) 1999, 2000, 2001, 2002, 2003, 2004 by Kevin Diggins
// *************************************************************
// Translated for compiling using the Lcc-Win32 Compiler
// *************************************************************

include <windows.h> // Win32 Header File

include <windowsx.h> // Win32 Header File

include <commctrl.h> // Win32 Header File

include <mmsystem.h> // Win32 Header File

include <shellapi.h> // Win32 Header File

include <shlobj.h> // Win32 Header File

include <richedit.h> // Win32 Header File

include <wchar.h> // Win32 Header File

include <objbase.h> // Win32 Header File

include <ocidl.h> // Win32 Header File

include <winuser.h> // Win32 Header File

include <olectl.h> // Win32 Header File

include <conio.h>

include <direct.h>

include <ctype.h>

include <io.h>

include <math.h>

include <stdio.h>

include <string.h>

include <stddef.h>

include <stdlib.h>

include <setjmp.h>

include <time.h>

include <stdarg.h>

include <process.h>

include "fmod.h"

// *************************************************
// User Global Variables
// *************************************************

static FMOD_SYSTEM *System1;
static int Result1;

// *************************************************
// Main Program
// *************************************************

int main(int argc, char *argv[])
{
// Simple little test
// Create a system
Result1=FMOD_System_Create(&System1);
printf("%s\n","Sucess");
while(1)
{
}
return 0; // End of main program
}

// *************************************************
// Run Time Functions
// *************************************************

[/code:vevpfuhd]

Maybe there is something else I’m overlooking?

If I comment out the fmod code and do not link the lib, it works just fine.
Can anyone help?

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.