Nuclide C++ simple Buck config

半腔热情 提交于 2019-12-05 17:15:46

Building a hello-world program with Buck is very easy. Create the following files in your project directory:

.buckconfig

(can 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'
  ],
)

Nuclide should find everything for you if you open Atom from your project folder.

To check that every works, run:

buck run //:hello-world

That should be enough to get started; further information can be found on the Buck website.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!