Giorgio Lami wrote:
> 
> Hi,
> 
> I've some problems using strings in a module.
> 
> When I try to load a module where I've used the function strcat ("string.h")
> or the function pow ("math.h") I get the error message "unresolved symbol
> strcat" (or "unresolved symbol function pow).
> 
> How can I do?

Hi Giorgio,

You need to do a:

#include <linux/string.h>

and compile with -O2 to pull in the in-line function


Note also the following compiler feature:

If have in your RT code:

        char buf[12] = "mystring"; 

You get an error, due to an implicit call to memset.

If instead you put:

        char *buf = "mystring";

It should work fine.

Regards, Stuart
-- [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