Open rfx77 opened 1 year ago
The output of CBE is C89 code, and is therefore not meant to be compiled with a C++ compiler (which is not a compatible language), and is not legal to link to a C++ stdlib (or any other existing shared libraries for that matter)
This is my code:
commands for compilation:
clang++ -fdeclspec -S -emit-llvm -g main.cpp ./llvm-cbe main.ll g++ -fpermissive main.cbe.c
The output of g++ is:
Maybe someone can help.