本文主要是介绍unix网络编程之二 NetBeans运行环境搭建,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
NetBeans下载
https://netbeans.org/downloads/
环境搭建
一、新建C Application
二、linker配置
注意:
1、Configuration 里有Debug,Release,需要分别配置
2、Output 后面可以输入 main接收的参数,如Unix 网络编程里的daytimecli.c ,此处可以加上 IP地址(如127.0.0.1);示例:
${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/inputoutput_1 127.0.0.1
3、libraries里导入Unix 网络编程里编译好的库文件
三、导入/usr/local/include的方法
1、Open Netbeans then do the following: Select Tools -> Options -> C/C++ -> Code Assistance -> add Include Directories (For me, /usr/local/include)
2、Create new project, then: Right click on Project Name -> Properties ->Build -> C/C++ Compiler -> Include Directories Include Directories : /usr/local/include
3、Right click on Project Name -> Properties -> Build -> linker -> Include Directories : /usr/local/include Additional Options : -I/usr/local/include -L/usr/local/lib -lcxcore -lcv -lhighgui -lcvaux -lml
这篇关于unix网络编程之二 NetBeans运行环境搭建的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!