[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] Problem loading modules
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