[email protected] wrote:
>> [email protected] wrote:
>>> Hello,
>>> I am using FLUID to declare a class with an array that has a
>>> __declspec(align(16)) prefix to it
>>> to tell MS Visual C to align it along 16 bytes as in
>>> http://msdn.microsoft.com/en-us/library/83ythb65.aspx.
>>>
>>> In the myprog.h file generated by FLUID, the
>>> declaration of the array does not appear at all anywhere in the file even
>>> if in myprog.fl, it has
>>> decl {__declspec(align(16)) double itsArray[10240];}
>>>
>>> How do I fix this?
>> Which version of FLTK, and what technique did you try?
>>
>> I just tried the following in FLTK 1.3.x fluid:
>>
>> 1) New -> Code -> Declaration
>>
>> 2) Pasted: decl {__declspec(align(16)) double itsArray[10240];}
>>
>> 3) File -> Write code
>>
>> When I do that, I seem to get that exact declaration in either the .h
>> or the .cxx file, depending on whether I choose "In header file only"
>> or "In source file only".
>
> I am using version 1.1.8 of FLUID and used New -> Code -> Declaration. I
> don't see "In header file only" or "In source file only". I only have public
> and static.
I guess try 1.3.x's fluid.
You should still be able to use it to generate code that you can then
compile against 1.1.8.
Or, if you want to stick with 1.1.8, I suppose at worst you can just
put the array declaration into a file using a text editor (eg.
"my-stuff.h")
and in fluid, just #include it where you want it to appear.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk