f



Dev C++ Err "expected `]' before ';' token" / source "DWORD rtec_Stack[XYZ_SIZE] __attribute__((aligned(4)));"

In Dev C++, we tried to compile a application, but it will throw some
peculiar error. please find it below

"path/main.cpp expected `]' before ';' token" and the source code is
"DWORD rtec_Stack[XYZ_SIZE] __attribute__((aligned(4)));"

is this problem of envirnment or else?

0
fusionraj (1)
4/14/2008 1:26:41 PM
comp.lang.c++ 49423 articles. 7 followers. Post Follow

1 Replies
627 Views

Similar Articles

[PageSpeed] 3

nagaraj wrote:
> In Dev C++, we tried to compile a application, but it will throw some
> peculiar error. please find it below
>
> "path/main.cpp expected `]' before ';' token" and the source code is
> "DWORD rtec_Stack[XYZ_SIZE] __attribute__((aligned(4)));"
>
> is this problem of envirnment or else?

Whatever "__attribute__" (and what follows it before the semicolon) is,
it's not C++.  Ask in the newsgroup that deals with that language.  Or,
remove that and use your compiler specific ways for what seems to be
the data alignment control.

V
-- 
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask 


0
v.Abazarov (13256)
4/14/2008 2:00:33 PM
Reply: