thestanislav / stardict-3

Automatically exported from code.google.com/p/stardict-3
GNU General Public License v3.0
0 stars 0 forks source link

error: variable length array of non-POD element type 'std::vector<gchar *>' #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile stardict 3.0.4 with clang

What is the expected output? What do you see instead?
Expected successful compile but got:

t_lookupdata.cpp:41:30: error: variable length array of non-POD element type 
'std::vector<gchar *>'

I previously noted this here: https://trac.macports.org/ticket/34517

What version of the product are you using? On what operating system?
stardict 3.0.4 on OS X 10.8.5 with Xcode 4.6.3 and its Apple LLVM version 4.2 
(clang-425.0.28) (based on LLVM 3.2svn)

Please provide any additional information below.
Compiling with llvm-gcc-4.2 instead works, however clang is the only compiler 
included in Xcode 5 and later so you should fix your code to be compilable with 
it.

Original issue reported on code.google.com by ryandesi...@gmail.com on 24 Sep 2013 at 4:22

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in hg source repository!

Original comment by huzheng...@gmail.com on 30 Oct 2013 at 9:10