Undefined references in DOS

DOS specific questions.
Post Reply
xlucas
Posts: 334
Joined: May 09, 2014 21:19
Location: Argentina

Undefined references in DOS

Post by xlucas »

Hi! I'm trying to compile a relatively large source I've been working on. In GNU/Linux, it compiles just fine, but when I take it to DOS, I get these messages:

Code: Select all

filex.o:fake:(.text+0x1398): undefined reference to `fb_StrUcase2'
filex.o:fake:(.text+0xcd45): undefined reference to `fb_CVL'
filex.o:fake:(.text+0xd436): undefined reference to `fb_CVL'
filex.o:fake:(.text+0xe795): undefined reference to `fb_StrUcase2'
filex.o:fake:(.text+0xecaa): undefined reference to `fb_StrUcase2'
filex.o:fake:(.text+0xecfd): undefined reference to `fb_StrUcase2'
filex.o:fake:(.text+0xfa67): undefined reference to `fb_MKL'
filex.o:fake:(.text+0x100cc): undefined reference to `fb_StrLcase2'
What's wrong? It seems like the definitions for these functions did not exist. Just in case I was doing something wrong, I made a very short program:

Code: Select all

Dim a As String

a = "hello"
a = UCase(a)
Print a
End
And tried to compile it in DOS. I got an undefined reference error again for fb_StrUcase2. I thought "maybe I have to include a BI file or something"... "maybe I have to declare the function"... So I copied the function declaration from the wiki down to the begining of my small program file and tried to compile. I got a "Duplicate Definition" error message this time. So it IS defined!

I know UCase and LCase have a wide version, so that might have something to do, but what's wrong with MKL and CVL?
Thanks in advance!
Cpcdos
Posts: 207
Joined: Mar 06, 2013 13:52
Location: France - LYON 69003
Contact:

Re: Undefined references in DOS

Post by Cpcdos »

Hi,
what is filex.o lib ?
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Undefined references in DOS

Post by dkl »

Could it be that you're using a new fbc.exe with an old libfb.a, or that libfb.a is corrupted?
xlucas
Posts: 334
Joined: May 09, 2014 21:19
Location: Argentina

Re: Undefined references in DOS

Post by xlucas »

I really don't know what it was and how it could possibly have get mixed up, but I just downloaded the most recent FBC for DOS and was able to compile it just fine with it. Thank you so much.

By the way, "filex" is the name of the program I was compiling, no library.
Post Reply