求助linux下编译proc程序出错
写了个proc程序,windows下用vc跑的哇哇的,一点毛病没有,可在linux下连proc *.pc都通不过,满屏的错,大部分都是:
PCC-S-02201,Encountered the symbol "_fd_mask" when expecting on of the following:........
第一次在linux下写proc,谁知道这是怎么回事啊?
后来我直接把windows下生成的.c文件拷到linux下,用gcc编译,也通不过,错误是:
..../libclntsh.so:undefined reference to '_ctype_tolower'
..../libclntsh.so:undefined reference to '_ctype_toupper'
..../libclntsh.so:undefined reference to '_ctype_b'
我已经指定libclntsh.so的位置了,gcc -L /home/oracle/product/9.2.0.1.0/lib -lclntsh ManageSystem_PROC.o -o ManageSystem_PROC
怎么解决啊,折磨我2天了都,高人请指教..............