Creating a hi-world program with Buck is easy. Create the following files in the project directory:
.buckconfig
(may be empty)
main.cpp:
#include <iostream>
int main() {
std::cout << "Hello, world. " << std::endl;
return 0;
}
BUCK
cxx_binary(
name = 'hello-world',
srcs = [
'main.cpp'
],
)
The nuclide should find everything for you if you open Atom from the project folder.
To verify that everything works, run:
buck run
This should be enough to begin with; more information can be found on the Buck website .