目前在看 apue 2e,在试书中的例子时,总是编译不过。不知道为什么,帮忙看一下。谢谢! gcc SigUsr.c 返回出错信息 /tmp/cczcMa7A.o(.text+0x31): In function `main': : undefined reference to `err_sys' /tmp/cczcMa7A.o(.text+0x56): In function `main': : undefined reference to `err_sys' /tmp/cczcMa7A.o(.text+0x9d): In function `sig_usr': : undefined reference to `err_dump' collect2: ld returned 1 exit statu...
by trailblazer - C/C++ - 2006-07-27 13:46:02 阅读(3076) 回复(4)
我按照install说明在/usr/pgi下安装了pgf77,pgf90,pgcc等,并在~/.bash_profile中设置了环境变量:PGI=/usr/pgi, export PGI,PATH=$PATH:PGI/linux86/bin; 运行gunzip 和 tar,最后./install都很顺利.重新登录后,编译试验的小程序,出现:pgcc-warning-unable to locate tool :as pgcc-error-directories searched. 请各位大侠帮忙解决一下这个问题. :shock:
linux下静态链接, 加了 -static参数, 结果链接时老有如下错误提示, google半天没找到答案, 怎么解决? Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking| gethostbyname这个函数不能静态链接么???
在linux下.对一个文件与另一个文件进行链接时,现在下面这个错误:"ln:正在创建连到'link'的符号连接/net/123';没有那个文件或目录."这是怎么回事呢?linux的初学者..请大家给小弟指点一下...
mysql 用jdbc在windows下能用,而在linux下就报错了,请问各位大侠能帮小弟看看嘛? import java.sql.*; class Mysql { public static void main (String args []) throws SQLException { DriverManager.registerDriver (new com.mysql.jdbc.Driver()); Connection conn = DriverManager.getConnection ( "jdbc:mysql://localhost:3306/ld", "root", "root"); DatabaseMetaData meta = conn.getMetaData(); System.ou...
一顺便说说了哦 通常情况下,对函数库的链接是放在编译时期(compile time)完成的.所有相关的对象文件(object file)与牵涉到的函数库(library)被链接合成一个可执行文件(executable file).程序在运行时,与函数库再无瓜葛,因为所有需要的函数已拷贝到自己门下。所以这些函数库被成为静态库(static libaray),通常文件名为"libxxx.a"的形式. 其实,我们也可以把对一些库函数的链接载入推迟到程序运行的时期(runtime).这就是如雷贯...
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1212692784 (LWP 489] mysql_num_rows (res=0x0) at client.c:2798 2798 client.c: 没有那个文件或目录. in client.c Current language: auto; currently c 我在用c++语言连接数据库的时候, 程序运行会出现"段错误", 用gdb调试会出现上面的错误? 困扰我好久了, 编译命令:g++ -I/usr/include/mysql -L/usr/lib -lmysqlclient ...
我们有一套 RH 2.4.0-8 内核的linux系统,在连接一个动态库时总是提示如下信息: g++: installation problem, cannot exec `cc1plus': 没有那个文件或目录 g++: installation problem, cannot exec `cc1plus': 没有那个文件或目录 g++: installation problem, cannot exec `cc1plus': 没有那个文件或目录 g++: installation problem, cannot exec `cc1plus': 没有那个文件或目录 g++: installation problem, cannot exec `cc1plus...