StochasticNumerics / mimclib

A software library for UQ methods
GNU General Public License v2.0
6 stars 8 forks source link

Particle kuramoto example : compile error #87

Closed beckjh closed 8 years ago

beckjh commented 8 years ago

Getting the following compile error using ">make" in the folder tests/particle/ on OS X:

g++ -g -O3 -fPIC -Wall -std=c++11 -shared -Wl,-soname,_kuramoto.so -o _kuramoto.so kuramoto.cpp kuramoto.cpp:149:21: error: variable length array of non-POD element type 'array' (aka 'vector') array couple[dim]; ^ 1 error generated. make: *\ [_kuramoto.so] Error 1

haji-ali commented 8 years ago

Noted. Variable sized arrays are only supported in GCC. This line should be changed to

std::vector<array> couple(dim);

I will push the change in the next dev version.

beckjh commented 8 years ago

To compile your makefiles in OS X, the user should change -soname to -install_name in the makefiles.

On Thu, Oct 20, 2016 at 12:10 PM, Abdul-Lateef Haji-Ali < notifications@github.com> wrote:

Noted. Variable sized arrays are only supported in GCC. This line should be changed to

std::vector couple(dim);

I will push the change in the next dev version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/StochasticNumerics/mimclib/issues/87#issuecomment-255051571, or mute the thread https://github.com/notifications/unsubscribe-auth/AShk7KXJ-fNlTqEaUFp5FK8Lk3JxCuXPks5q1y_pgaJpZM4Kb2JV .


This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.