0
0

OK. Here’s what I’ve got so far.
1. Lcc-win32 installed.
2. fmod.h, fmod_errors.h, fmoddyn.h and wincompat.h into lcc\include\
3. fmodlcc.lib into lcc\lib. I also took the liberty to throw the rest of the lib folder in there too, just incase.
4. Open "Simplest" example (or any, we’ll use that as the example.)
5. Added fmodlcc.lib to LIBS list.
6. Stick fmod.dll into source.
7. Compile.

The warnings in the compiler are of the "Missing prototype for ‘FSOUND_GetVersion’" variety, repeating for each Fmod command that’s used in the program.

It still compiles.
Then I try running, and it gives the error "Entry Point Not Found"
"The procedure entry point FSOUND_GetChannelsPlaying could not be located in the dynamic link library fmod.dll."

So.. Thoughts?
Now, go nice and slow, and [b:1z424ghp]describe[/b:1z424ghp] the things that I should be checking for.
If someone says "Oh, yeah, that’s the linker, try linking it" or something like that, I won’t have a clue what you’re on about.

My guess is it’s probably to do with the Makefile. I couldn’t actually find on in the fmodapi375win archive anywhere, so that’s probably what it is..
Here’s what I have at the moment.
[code:1z424ghp]

Wedit Makefile for project test

SRCDIR=$(CURDIR)
CFLAGS= -g2
TARGET := $(shell basename $(CURDIR))
LCCROOT=$(SRCDIR)/../../lcc
CC=$(LCCROOT)/bin/lcc.exe
DELFILE=$(LCCROOT)/bin/rm.exe
LINKER=$(LCCROOT)/bin/lcclnk.exe
OBJS=source.obj
LIBS=fmodlcc.lib opengl32.lib glu32.lib glaux.lib
EXE=$(TARGET).exe

$(EXE): $(OBJS) Makefile
$(LINKER) -subsystem windows -o $(SRCDIR)/$(EXE) $(OBJS) $(LIBS)
$(DELFILE) $(OBJS)

Build TARGET.c

TARGET_C=/

source.obj: $(TARGET_C) $(SRCDIR)/source.c
$(CC) -c $(CFLAGS) $(SRCDIR)/source.c

link:
$(LINKER) -subsystem windows -o $(SRCDIR)/$(EXE) $(OBJS) $(LIBS)
$(DELFILE) $(OBJS)

clean:
$(DELFILE) $(EXE)
$(DELFILE) source.obj
[/code:1z424ghp]

If there’s anything apparent there, let me know. Otherwise.. .. Um.. Let me know anyway!

Thanks all.

  • You must to post comments
0
0

22 views, no replies.. I’ll assume you’re all as baffled as I am.

No matter..
I scrapped the whole "finally getting to grips with C" plan, and have settled back into Blitz.
OK, so the compiled exe’s might be 4*bigger than they should be, and I can’t get "Super-Duper-Speed".. But when I can make games like [url=http://jayenkai.socoder.net/?p=47:3950zurz]Blockman[/url:3950zurz] and [url=http://jayenkai.socoder.net/?p=45:3950zurz]Centipong[/url:3950zurz] within the space of a few weeks, It probably isn’t that bad an idea.

Thanks anyway.
CULater.

Off to make more Alien-Breed-alike.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.