自己写的动态库show_menu.so
编译可执行文件 gcc -Wall show_menu.so show.c -o show
生成文件show
执行 ./show
出错:./show: error while loading shared libraries: show_menu.so: cannot open shared object file: No such file or directory
问问兄弟们这是怎么回事,自己写的动态库怎么用啊?
关于[动态库]的问题
- ubuntuprimer
- 帖子: 30
- 注册时间: 2008-07-14 8:14
- 来自: 外太空
- 联系:
关于[动态库]的问题
I love only three things:
the sun the moon and you
the sun for day
the moon for night
and you for ever
the sun the moon and you
the sun for day
the moon for night
and you for ever
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
- ubuntuprimer
- 帖子: 30
- 注册时间: 2008-07-14 8:14
- 来自: 外太空
- 联系:
- kofshower
- 帖子: 1343
- 注册时间: 2007-03-13 11:23
- 联系:
ldconfig + /usr/lib也是一个道理
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/