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(myV ar) ...
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::MyClas s(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. 1 1558 ti*********@gma il.com wrote:
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};
That's all rather non-standard, better to ask in a compiler specific group.
--
Ian Collins. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Markus Elfring |
last post by:
How much are you interested that the attribute "style" will offer the
same or similar capabilities like they are provided by the element
"style" in the element "head"?
Do you want that the document "Syntax of CSS rules in HTML's "style"
attribute" (http://www.w3.org/TR/css-style-attr) will become an
official recommendation in the near future?
Best regards,
Markus Elfring
|
by: Florian Loitsch |
last post by:
I'm currently writing a JS->Scheme compiler (which, using Bigloo,
automatically yields a JS->C, JS->JVM, JS->.NET compiler), and have a
question concerning the function-parameters:
According to the spec (10.1.6) the activation-object already contains the
the parameters-object when the variables are instantiated (10.1.3). The
question is now: does a parameter "parameters" overwrite the
"parameters"-object or not?
All three implementations...
|
by: mike |
last post by:
regards:
<a href="JavaScript:loadwindow(106,90);"
style="font-family:Verdana;">元智Intranet</a>
In HTML spec,are "href" and "style" called "attribute"?....@@
Could someone good give me the hand? @@.
thank you
may god be with you
|
by: Susan Bricker |
last post by:
Greetings Experts ...
I have a routine that is invoked when a command button is clicked. The
button is located in a form that is tied to a table of Project records.
Each Project Record has 0 to many Task Records associated with it (in
another table). I want to 'logically remove' the Project Record and all
Task Records for the Project (by setting the field in each of
those records to 'true').
Here is the problem ... in the routine I...
|
by: Brian Foree |
last post by:
I am developing an ASP.NET application that uses Access 2000 as its backend,
and have just started getting the following error on 2 ASP.NET pages that
had been working until late last week (and I don't think I made any changes
to either page other than changing the user control that creates the
header).
Server Error in '/myApp' Application.
----------------------------------------------------------------------------
----
| |
by: André |
last post by:
I'm trying to change an app so that it uses gettext for translations
rather than the idiosyncratic way I am using. I've tried the example
on the wxPython wiki
http://wiki.wxpython.org/index.cgi/RecipesI18n
but found that the accented letters would not display properly. I have
found a workaround that works from Python in a Nutshell; however it is
said in that book that
"...this is not good style".
I would like to do things "in good...
|
by: awebguynow |
last post by:
OK, I'm on the bandwagon, to mimic Google Suggest
At this point I'm just trying to place my div in the right x, y spot.
newdiv.setAttribute("style", "position:absolute;left:"+x+";top:"+y);
mybody.appendChild(newdiv);
Using Firefox's DOM inspector, I only saw "position:absolute"
Does a multi-attribute CSS specification, have to be set another way ?
|
by: Gary Brown |
last post by:
Hi,
Why are
fn(object parameters)
and
fn(params object parameters)
|
by: SAL |
last post by:
I have the following line of code in my Page_Load Event of my ASP.net page:
txtExplanationofChange.Attributes.Add ("style","overflow :hidden");
which allows me to can turn off the Scrollbar of my multiline textbox. I am
still fairly new to developing in ASP.net and C#, and I'm not sure if there
is a better way to disable the scrollbar.
The code above turns off the scrollbar just fine, however the textbox does
not remain in the location...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |