博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  C

摘要:在CentOS上,Makefile中动态链接库的位置放在源码文件名的前面和后面都可以,而在ubuntu中LIBS必须放到源文件名的后面,否则会碰到下面的问题:I am currently using gcc to compile and I need to use<math.h>. Problem is that it won't recognize the library. I have also tried-lmand nothing. The function I tried to use wasceil()and I get the following error: 阅读全文

posted @ 2012-04-21 15:53 algorithmer 阅读(1579) 评论(0) 推荐(0)

摘要:需要设置 “set print element 0”(gdb) p rPtr.xmlBuf$1 = 0xa570e20 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Reservations>\n\t<Reservation name=\"2c91897d-33822121-0133-83dd6f3a-013a\">\n\t\t<Consumer name=\"/2c91897d-33822121-0133-823303a4-0 阅读全文

posted @ 2012-01-15 20:12 algorithmer 阅读(285) 评论(0) 推荐(0)

摘要:设置编译选项:SConstruct中添加:env=Environment(CC='gcc', CFLAGS=['-g','-pg'], LINKFLAGS=['-pg'], LIBPATH=['/usr/local/lib','/lib64'], CPPPATH=['.','/usr/local/include','/usr/include'], CPPDEFINES=[])如是多进程程序: export GMON_OUT_PREFIX=x.out运行 阅读全文

posted @ 2011-11-27 15:25 algorithmer 阅读(540) 评论(0) 推荐(0)