- 博客(7)
- 资源 (6)
- 收藏
- 关注
原创 solaris 编译socket程序
今天编译一个socket程序,报错:未定义的符号在文件中。 inet pton ....开始没有注意头文件后来到网上搜寻了一下, 在g++的编译的时候,要加:g++ *.cpp -lnsl -lsocket.执行成功。
2012-10-31 16:47:42 1085
转载 bad interpreter: 没有那个文件或目录 解决方法
bad interpreter: 没有那个文件或目录 解决办法:如果sh目录存在且脚本无误,最可能是原因是在windows下写的脚本是dos格式的,放在Linux下编码不识别,解决方法是使用dos2unix命令转一下,即输入: dos2unix 文件名 产生DOS格式的原因: Windows下传输sh文件 导致bash编码错误! 需
2012-10-31 14:50:48 5205
原创 quotactl() function prototype missing in sys/quota.h
最近在hp-ux上写磁盘配额的模块,结果出现了一个问题,就是:quotactl() function prototype missing in sys/quota.h 。quotactl()函数原型没在sys/quota.h里面声明。经过多次调试,查资料。后来发现这是个很简单的问题。 因为我写的是.cpp文件。而quotactl()是C函数。所以加上:extern "C" in
2012-10-25 13:08:50 1766
原创 /usr/lib/dld.sl: Can't find path for shared library
在hp-ux上调试时出现了,/usr/lib/dld.sl: Can't find path for shared library: **.sl/usr/lib/dld.sl: No such file or directoryAbort(coredump)这是lib的环境变量设置错误的原因。去修改将lib的环境变量设置上。LD_LIBRARY_PATH=$TUXDIR
2012-10-23 15:48:13 2891 4
转载 svn在linux下的使用
linux下svn的使用手册: 1、将文件checkout到本地目录svn checkout path(path是服务器上的目录)例如:svn checkout svn://192.168.1.1/pro/domain简写:svn co 2、往版本库中添加新的文件svn add file例如:svn addtest.php(添加test.php)s
2012-10-17 11:09:09 929
原创 make: 1254-055 Dependency line needs colon or double colon operator.
在AIX上make makefile文件时,出现了以下错误: make: 1254-055 Dependency line needs colon or double colon operator. 后来查了很久,发现自己普通用户,而用which make时,发现是:/usr/bin下。 是aix自带的make。然后更改/usr/local/bin的权限。 就可以ma
2012-10-12 17:58:42 7194 1
原创 unsigned int转为十六进制方法
unsigned int转为十六进制的方法:#include #include #include void unsigned_to_hex(unsigned int value, std::string& hex_string){ std::strstream buffer; buffer.setf(std::ios::showbase); buffer <<std
2012-10-12 15:04:03 6547 1
ML_peer_certificate_patch_A
2016-02-29
ML_Octave_400_patch
2016-02-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人