the linker and outb

Programming, for all ages and all languages.
Post Reply
StonedZealot

the linker and outb

Post 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...
Whatever5k

Re:the linker and outb

Post 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...
StonedZealot

Re:the linker and outb

Post 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...
Post Reply