yrnkrn / zapcc

zapcc is a caching C++ compiler based on clang, designed to perform faster compilations
Other
1.25k stars 61 forks source link

How do i compile a c++ file with zapcc #52

Closed Tm24sense closed 1 year ago

Tm24sense commented 1 year ago

So i just got zapcc working i switched to arch so it can work when i type zapcc it shows error no input file like any other compiler.But when i was installing it told me that you have to delete clang or conflicts might happen. So i pressed yes after that i made a main.cpp file and made a simple for loop that prints the current value of i.When i try running it but it gives me 2 error messages.So i tried compiling a file that has a empty main function it genarates the exuctable and i run it no problems.This problems seems to happen when i include any header files.Maybe becuase i deleted clang.If so then tell me and i will reinstall it again.I installed zapcc using yay.Any help would be greatly helpful. Edit: i just realized its a linker error

yrnkrn commented 1 year ago

Hi, you do not have to delete clang to use zapcc.