AvtechScientific / ASL

Advanced Simulation Library - hardware accelerated multiphysics simulation platform.
http://asl.org.il
GNU Affero General Public License v3.0
217 stars 55 forks source link

Build errors: redeclaration of <...> may not have default arguments [-fpermissive] #2

Closed gim- closed 9 years ago

gim- commented 9 years ago

Build fails on Arch Linux with a few syntax errors like this:

error: redeclaration of ‘template<class T> void asl::combineArrays(T*, T*, T*, unsigned int, T*, unsigned int)’ may not have default arguments [-fpermissive]

Full error output: http://pastebin.com/Z4ZsLqgQ

OS: Arch Linux x86_64 ASL version: 0.1.2

lupinix commented 9 years ago

I can confirm this issue on Fedora 22.

AvtechScientific commented 9 years ago

We have fixed this without relying on -fpermissive - will release it soon...

gim- commented 9 years ago

Still the same issue persists: http://pastebin.com/Y2d27UPM CMake version: 3.2.3 Defining the CMAKE_CXX_FLAGS="-fpermissive" in this block works as a workaround again.