Giter Club home page Giter Club logo

minacalc-standalone's Introduction

minacalc-standalone

Standalone version of MinaCalc along with a C API for easy access and bindings

How to build

MinaCalc requires C++17.

The following commands assume GCC and Linux. Adjust the commands to your platform of choice

  1. Compile the source files:
    • g++ -std=c++17 -O2 -c MinaCalc/MinaCalc.cpp API.cpp
    • If the C API is not needed, omit API.cpp:
      g++ -std=c++17 -O2 -c MinaCalc/MinaCalc.cpp
  2. Link the object files together into a library: ar rcs libminacalc.a *.o

Example usage

#include <stdio.h>
#include "API.h"

int main() {
    printf("calc version: %d\n", calc_version());
}

Run with gcc -lstdc++ -lm main.c libminacalc.a && ./a.out (or equivalent for your platform and compiler)

minacalc-standalone's People

Contributors

kangalio avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

minacalc-standalone's Issues

Bump calc ver from 437 down to 434 (0.70.3)

Right now, the embedded minacalc code is from calc version 437: an in-development version from between 0.70.3 and 0.71, which is not even up-to-date anymore.

It's probably foolish to try and keep up to date with the latest in-development code because it moves too fast, it might have bugs, and it's not the calc version people are actually using.

Therefore, the minacalc copy in this repo should be kept up-to-date to the latest stable Etterna version, and to the latest stable Etterna version only.

Add API.h

I just noticed that in order to be a real C API, we should have a C header file too.

Can be derived from API.cpp

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.