linker error? 0x162d undefined reference

Locked
bludshot
Posts: 65
Joined: Thu Nov 26, 2009 6:14 am

linker error? 0x162d undefined reference

Post by bludshot »

I'm currently stuck on a compiler error:

LD build/release-mingw32-x86/baseq3/cgamex86.dll
build/release-mingw32-x86/baseq3/cgame/cg_main.o:cg_main.c:(.text+0x162d): undefined reference to `String_Parse'
collect2: ld returned 1 exit status

I don't understand this error, because as far as I can see String_Parse *is* defined.

In cg_main.c I've added a function (from NS:CO source code) in which String_Parse() is called. This is the only line in all of cg_main.c where String_Parse() is called, so it's the line creating the error.

However, at the top of cg_main.c I have
#include "../ui/ui_shared.h"

And in ui_shared.h String_Parse is defined.

Perhaps cg_main.c just doesn't have access to things in ui_shared.c (where the actual String_Parse function is defined)???
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: linker error? 0x162d undefined reference

Post by ^misantropia^ »

bludshot wrote:Perhaps cg_main.c just doesn't have access to things in ui_shared.c (where the actual String_Parse function is defined)???
That's correct.
Locked