Hi,
I found a
way to eliminate the problem.
(error: array bound forbidden after parenthesized type-id
note: try removing the parentheses around the type-id)
I'm using gcc version 3.4.3 (Red Hat 3.4.3-22.1) for my development.I also experienced this error when I'm trying to compile programs that are well compiled in gcc v 3.2.3(ANSI compilere)
but not in this ISO compilers(3.4.3).
My declaration was,Im creating a pointer array.
TxQueue = new (TxQueue*) [i_MatchingPartInstCount]
Error was removed and the binary now functions well after I did change it like this,
TxQueue = new TxQueue* [i_MatchingPartInstCount]
Hint: Just remove the brackets of pointer type
If u could solve this problem just let me know. I'm happy if u could send me information to join your group of this kind of error reporting.
Sajith Rawindralal Premadasa (Software Engineer)sajithrawindralal @gmail.com
BSc. Eng (Electronics & Telecommunications), ACS, BCS
Millennium Information Technologies,
No 1,
Millennium Drive,
Malambe,
Sri Lanka.