codon icon indicating copy to clipboard operation
codon copied to clipboard

Front page example not functioning on Mac OS / Linux

Open psytron opened this issue 8 months ago • 2 comments

Example code ( fib.py )

def fib(n):
    a, b = 0, 1
    while a < n:
        print(a, end=' ')
        a, b = b, a+b
    print()
fib(1000)

Attempt Commands

codon build fib.py
codon build -release fib.py
codon build -release -exe fib.py

Result Linux Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-107-generic x86_64)

error: process for 'g++' exited with status 255

Result Mac OS 11.3.1 MacBook Air Apple Silicon M1

dyld: Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strE

psytron avatar Jun 14 '24 16:06 psytron