469,645 Members | 1,684 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

Dev C++ Err "expected `]' before ';' token" / source "DWORDrtec_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?

Jun 27 '08 #1
1 2939
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
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Tim Zhao | last post: by
1 post views Thread by user mysql | last post: by
30 posts views Thread by Hallvard B Furuseth | last post: by
1 post views Thread by M.E.Farmer | last post: by
66 posts views Thread by Jon Skeet [C# MVP] | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.