Giter Club home page Giter Club logo

libsf2's People

Contributors

derselbst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

libsf2's Issues

error: friend declaration specifies default arguments and isn’t a definition

I am hoping to be able to compile this lib to webassembly for a rewrite of hydro2sf2. I figure the first step is to get it compiled, normally.

I get this when I run make:

g++ -std=gnu++11 -Wall -fdata-sections -ffunction-sections -Os -fmax-errors=5 -c sf2.cpp -o sf2.a
In file included from sf2.cpp:29:
sf2_chunks.hpp:822:17: error: friend declaration of ‘void uint16_t::add_new_preset_modulator(SFModulator, SFModulator, uint16_t, SFGenerator, SFTransform)’ specifies default arguments and isn’t a definition [-fpermissive]
  822 |     friend void SF2::add_new_preset_modulator(SFModulator srcMod, SFModulator amtMod, uint16_t modAmount, SFGenerator destGen, SFTransform sfModTransOper=SFTransform::linear);
      |                 ^~~
sf2_chunks.hpp:827:17: error: friend declaration of ‘void uint16_t::add_new_inst_modulator(SFModulator, SFModulator, uint16_t, SFGenerator, SFTransform)’ specifies default arguments and isn’t a definition [-fpermissive]
  827 |     friend void SF2::add_new_inst_modulator(SFModulator srcMod, SFModulator amtMod, uint16_t modAmount, SFGenerator destGen, SFTransform sfModTransOper=SFTransform::linear);
      |                 ^~~
make: *** [Makefile:19: sf2.o] Error 1

OS: LInux Manjaro 19.0.2
g++: (Arch Linux 9.3.0-1) 9.3.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.