Page 1 of 1

the linker and outb

Posted: Fri Jan 31, 2003 4:56 pm
by StonedZealot
Well, I've included some outb code in my project and I compile it with gcc fine. But when I go to link the thing, it doesn't recognize the references to outb (undefined reference to '_outb').

Anyone know where the problem is? I can't imagine that the linker wouldn't be able to recognize outb if gcc can...

Re:the linker and outb

Posted: Sat Feb 01, 2003 8:09 am
by Whatever5k
No, it's your fault ;)
If you *only* compile your sources, nobody will worry if there is an unreferenced call, this happens when linking the files together...
So ld cannot find your outb() function..show us the code, please...

Re:the linker and outb

Posted: Sat Feb 01, 2003 4:44 pm
by StonedZealot
Oh yes, it was my fault, I got it figured out though, I didn't have the file on the computer, I left it on my laptop...sigh, I miss the easy things most of the time...