Matthias Kreider

Trouble linking static lib in CW project

Discussion created by Matthias Kreider on Apr 11, 2008
Latest reply on Apr 22, 2008 by Tom Thompson
Hi Folks

I'm using CW 6.4 on WinXP and build for coldfire 5329

Ok, I got the following problem:
I have c sourcecode for an mp3 library, all gcc asm syntax.
So I built the lib in gcc and got a nice libmad.a
Disassembly looks good, all functions there. I then included the lib and the header file into my
CW c-code project. The lib-path is also in "access paths".
File Monitor shows that access to both files is okay, they are found.

However, when I try to use the library functions in my main, I get the following errors from the Linker:


Link Error   : Undefined : "mad_decoder_init"
Referenced from "decode" in main.c
Link Error   : Undefined : "mad_decoder_run"
Referenced from "decode" in main.c
Link Error   : Undefined : "mad_decoder_finish"
Referenced from "decode" in main.c

Link failed.


Those functions ARE there. In the lib and the header.

As I've been tought, path, lib and header should be enough.
I really dont know what else I should be trying. Ideas?

Any help would be much appreciated



Outcomes