• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
vertexes
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

[置顶] Linux 动态链接库和静态库示例
摘要: 文件预览文件目录树如下,如你所见,非常简单。libtest/|--lt.c|--lt.h`--test.c代码#lt.c/*lt.c**/#include<stdio.h>voidmyprint(void){printf("Linuxlibrarytest!\n");}# lt.h/*lt.h**/voidmyprint(void);#test.c/*test.c**/#include"lt.h"intmain(void){myprint();return0;}先看静态库首先做成静态库 liblt.a 。$gcc-clt.c-olt.o$ar 阅读全文
posted @ 2011-12-22 10:52 vertexes 阅读(21465) 评论(0) 推荐(2)
 
 

[置顶] Linux 添加动态链接库
摘要: 总结下来主要有3种方法:1. 用ln将需要的so文件链接到/usr/lib或者/lib这两个默认的目录下边ln-s/where/you/install/lib/*.so/usr/libsudoldconfig2.修改LD_LIBRARY_PATHexportLD_LIBRARY_PATH=/where/you/install/lib:$LD_LIBRARY_PATHsudoldconfig3.修改/etc/ld.so.conf,然后刷新vim/etc/ld.so.confadd/where/you/install/libsudoldconfig 阅读全文
posted @ 2011-12-21 18:17 vertexes 阅读(4626) 评论(0) 推荐(0)
 
 

2015年9月10日

Mac下安装eclipse+python+pydev+numpy+matplotlib
摘要: *本人亲测是成功的安装过程1.更新Mac系统默认低版本的python2.7.请参见这篇文章:http://jingyan.baidu.com/article/14bd256e39b63dbb6d261289.html2.安装eclipse, pydev请参见这篇博客:http://blog.csdn... 阅读全文
posted @ 2015-09-10 10:51 vertexes 阅读(693) 评论(0) 推荐(0)
 
 

2013年11月18日

Latex 横排图片
摘要: \begin{figure}\begin{minipage}[t]{0.5\linewidth}\centering\includegraphics[width=2.2in]{figure/angled_k_space1}\caption{fig1}\label{a}\end{minipage}\begin{minipage}[t]{0.5\linewidth}\centering\includegraphics[width=2.2in]{figure/angled_k_space2}\caption{fig2}\label{b}\end{minipage}\end{figure}\begin 阅读全文
posted @ 2013-11-18 23:18 vertexes 阅读(7178) 评论(0) 推荐(0)
 
 

2013年7月31日

matlab 画平面
摘要: y = 1:100;z = ones(100);surf(x,y,z); 阅读全文
posted @ 2013-07-31 21:17 vertexes 阅读(713) 评论(0) 推荐(0)
 
matlab 画锥体
摘要: >> plot3(x,y,z);>> [x,y,z]=cylinder([0 1],20) 阅读全文
posted @ 2013-07-31 20:48 vertexes 阅读(1074) 评论(0) 推荐(0)
 
Matlab 图像画在坐标轴下
摘要: >> x=linspace(0,2*pi,200);>> y=sin(x);>> figure;plot(x,y,'r-')>> set(gca,'xaxislocation','top')>> axis tight 阅读全文
posted @ 2013-07-31 19:01 vertexes 阅读(556) 评论(0) 推荐(0)
 
 

2012年11月7日

GPS经纬度转换为百度坐标
摘要: android客户端:Importimport com.baidu.mapapi.CoordinateConvert;import com.baidu.mapapi.GeoPoint;CodeGeoPoint p = new GeoPoint(x, y);GeoPoint p2 = CoordinateConvert.bundleDecode(CoordinateConvert.fromWgs84ToBaidu(p));其变量p为从GPS直接读到的点,p2为在在地图上显示的点;PHP 网页:<?phpfunction getgps($lats,$lngs, $gps=false, $go 阅读全文
posted @ 2012-11-07 09:27 vertexes 阅读(12311) 评论(0) 推荐(0)
 
 

2012年10月30日

PHP 解析JSON数组
摘要: <?php $postArray ='[{"data":{"hello":"world"},"type":"1234","date":"2012-10-30 17:6:9","user":"000000000000000","time_stamp":1351587969902}, {"data":{"hello":"world&quo 阅读全文
posted @ 2012-10-30 18:56 vertexes 阅读(83432) 评论(0) 推荐(2)
 
 

2012年6月19日

Package 'sun-java6-jdk' has no installation candidate 解决方式
摘要: 解决方式: sudo add-apt-repository ppa:ferramroberto/javasudo apt-get updatesudo apt-get install sun-java6-jdk试试看看 阅读全文
posted @ 2012-06-19 15:47 vertexes 阅读(4837) 评论(0) 推荐(0)
 
 

2012年4月12日

GDB 常用命令
摘要: 阅读全文
posted @ 2012-04-12 09:33 vertexes 阅读(132) 评论(0) 推荐(0)
 
 

2012年3月7日

wine: cannot find L"C:\\windows\\system32\\*.exe"
摘要: 在linux中安装source insght 时出现了 wine: cannot find L"C:\\windows\\system32\\Si3563Setup.exe"时,可以通过下面的方式安装:root@lab-VirtualBox:/home/lab# wine control.exe然后选择install ,点击:install选择你的.exe文件即可。祝好! 阅读全文
posted @ 2012-03-07 09:40 vertexes 阅读(13385) 评论(0) 推荐(0)
 
 
下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3