T
timor.super
Hi all,
in a .c file, i'm using a var :
const unsigned char myVar[8] __attribute__ ((aligned (4))) = {1, 2, 2,
1, 2, 2, 2};
this var is used by a C function : myCFunction(myVar) ...
this is working ...
but now, I want to make a class using this C function, i'm doing :
class MyClass
{
MyClass(const unsigned char *);
};
MyClass::MyClass(const unsigned char *c)
{
myCFunction(c);
}
this is compiling, but the function doesn't make the good effect,
probably due to the __attribute__ ((aligned (4))) .
If I don't use the __attribute__ ((aligned (4))) in the .c file, the
function is still working, but I shouldn't modify the .c file, how can
I do to make it working ?
Thanks for your help
Best regards
S.
in a .c file, i'm using a var :
const unsigned char myVar[8] __attribute__ ((aligned (4))) = {1, 2, 2,
1, 2, 2, 2};
this var is used by a C function : myCFunction(myVar) ...
this is working ...
but now, I want to make a class using this C function, i'm doing :
class MyClass
{
MyClass(const unsigned char *);
};
MyClass::MyClass(const unsigned char *c)
{
myCFunction(c);
}
this is compiling, but the function doesn't make the good effect,
probably due to the __attribute__ ((aligned (4))) .
If I don't use the __attribute__ ((aligned (4))) in the .c file, the
function is still working, but I shouldn't modify the .c file, how can
I do to make it working ?
Thanks for your help
Best regards
S.