>>>>> "Richard" == Richard Teltz <[EMAIL PROTECTED]> writes:

 Richard> On Fri, 23 Oct 1998, Paul Koning wrote:
 >> The only time the OS comes in is if you're using shared libraries.
 >> But if you tell the linker to statically link the relevant
 >> libraries, you should end up with everything all together, all the
 >> references resolved.

 Richard> Paul,

 Richard> I tried linking string.o with my module:

 Richard> ld -r string.o rtprocesss.o ...etc

 Richard> and strtok() and (I think it was) strcpy() would not
 Richard> resolve.

 Richard> Isn't string.o a static library?  I assumed that, due to
 Richard> conditional compilation these routines (which are C coded in
 Richard> string.c but ASM coded elsewhere) were not part of the
 Richard> string.o file.

string.o sounds more like a single object file.  Not all string things 
are in there, some are in separate files.

Try linking with libc.a.  I just checked, and both strcpy and strtok
are in there (and both are in modules other than string.o).

Files with .a extensions are static libraries; files with .so
extensions are dynamic libraries.

        paul
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to