-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexample.sh
More file actions
executable file
·34 lines (24 loc) · 1.09 KB
/
example.sh
File metadata and controls
executable file
·34 lines (24 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
# Copyright (c) 2020-2025 Jeffrey Hurchalla.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# This example is intended for the case that you are not using CMake.
# If you haven't already done so, you should follow the steps in the README.md
# for "How to use the library" | "Without CMake"
# --------------------------------------------------------------------------
# You'll need to change the installed_path below, and you may need to change
# the cpp_compiler.
# --------------------------------------------------------------------------
# set installed_path to the directory where you installed the modular arithmetic
# library
installed_path=/home/jeff/Desktop
include_path=${installed_path}/include
# set the compiler to whatever you wish. Below is gcc or clang.
cpp_compiler=g++
#cpp_compiler=clang++
$cpp_compiler -std="c++17" \
-Wall -Wextra -O2 \
-I$include_path \
-o example example.cpp
./example