seanbaxter / circle

The compiler is available for download. Get it!
http://www.circle-lang.org/
2.42k stars 74 forks source link

null refrence error with std::cout #178

Open AhmedLilah opened 1 year ago

AhmedLilah commented 1 year ago

Hi, I'm starting to get familiar with Circle meta programming.

as far as I know and what I have seen in the documentation this code should work just fine

#include <iostream>

int main() {
        @meta std::cout << "Hello, World!\n";
        std::cout << "Hello, World!\n";
}

but when I downloaded circle and ran this code and similar ones it gave me this error ip: null reference value the same happens on godbolt.org

if I change it to other builds on godbolt.org other than the latest build it works fine.

i also tried this code and it works fine.

#include <iostream>
#include <cstdio>

int main() {
        @meta printf("Hello, World!\n");
        std::cout << "Hello, World!\n";
}

I would very much appreciate if some can inform me if this is the expected behavior or not and how to do it wirte.