Netbeans and Remote Host for C/C++ Developing

时间:2021-07-07 19:33:11

Netbeans and Remote Host for C/C++ Developing

很久以来,因为我不适应在 Linux 下使用 Vim, GCC, GDB 开发 C/C++ 程序,所以我一直找了很多办法在逃避。

然而现在好了,Netbeans 可以配置远端构建和运行代码的机器,于是我可以在 windows 客户机上使用 IDE(Netbeans) 编写程序,然后由 IDE 自动地把代码上传到 Linux 服务器并执行。调试也是一样的方便。

Setting Compile Options

Sometimes, code needs external identified compile options, such as :

word2vec.c -o word2vec -lm -pthread -O3 -march=native -Wall -funroll-loops -Wno-unused-result

"-lm -pthread -O3 -march=native -Wall -funroll-loops -Wno-unused-result" is the compile options.

How to set?

Netbeans and Remote Host for C/C++ Developing

Setting Command Parameters

Sometimes, code needs command parameters to run, such as :

./word2vec -train text8 -output vectors.bin -cbow 1 -size 200 -window 8 -negative 25 -hs 0 -sample 1e-4 -threads 20 -binary 1 -iter 15

" -train text8 -output vectors.bin -cbow 1 -size 200 -window 8 -negative 25 -hs 0 -sample 1e-4 -threads 20 -binary 1 -iter 15"

Netbeans and Remote Host for C/C++ Developing