On Tue, Jan 24, 2012 at 14:33, Tom Deblauwe <[email protected]>wrote:

> Hello,
>
> What compiler flags do you need to enable if you want to use the
> possibility to have something like this in your code:
>
> char Image[width(), height()];
>
> This worked before with my compiler(visual studio 2005) but not with the
> cmake generated project. It complains about expecting a constant
> expression. Anybody knows?
>
>
That is not valid C or C++ code (once they were standardized at least).
Just use * instead of , and it will do what I guess you want. I think the
code didn't do what you wanted before...

Joël Lamotte
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to