|
Blue Forest http://www.lslnet.com at 11:08 on July 8, 2006
SYBASE link C + + compiler error undefined reference to `__ctype_b '
Cc -o IodDeal -Ddebug -I/plat/include -I/include -I/sybase/OCS-12_5/include -L/plat/lib -L/lib -L/sybase/OC
S-12_5/lib ioddeal.o mo_deal.o link_detect.o log.o mt_deal.o xideliver_to_iodmo.o iodtoxisubmit.o Public_tool.o IodRcvDeal.o
IodDeliverDeal.o IodLog.o public.o IodShowPDU.o ReadConfIod.o syslog.o tool.o IodSemaOpt.o GetResult.o xltwrtlog.o -lct -lcs
-lcomn -lintl -lsybtcl -lnsl -ldl -lpthread -lwbasictool -lVcmpp -lm -lpthread -lnsl
/sybase/OCS-12_5/lib/libintl.so : Undefined reference to `__ctype_b '
Collect2 : ld returned 1 exit status
Make : *** 1 [IodDeal] Error
That for prawn know, please tell younger. Thank you, the first ~~~
|
I almost mistake and you ah
MonView.c:1392 : warning function returns address of local variables :
/tmp/ccF2PF7j.o (. Text+0x718) : In function `ExecDatabase ':
: Undefined reference to `smc_create_view '
/tmp/ccF2PF7j.o (. Text+0x78a) : In function `ExecDatabase ':
: Undefined reference to `smc_refresh '
/tmp/ccF2PF7j.o (. Text+0x808) : In function `ExecDatabase ':
: Undefined reference to `smc_get_row_count '
/tmp/ccF2PF7j.o (. Text+0xb71) : In function `ExecDatabase ':
: Undefined reference to `smc_get_dataitem_value '
/tmp/ccF2PF7j.o (. Text+0xbc3) : In function `ExecDatabase ':
: Undefined reference to `smc_get_dataitem_type '
/tmp/ccF2PF7j.o (. Text+0x203a) : In function `parsexml ':
: Undefined reference to `smc_connect '
/tmp/ccF2PF7j.o (. Text+0x23c3) : In function `parsexml ':
: Undefined reference to `smc_disconnect '
/opt/sybase-12.5/OCS-12_5/lib/libintl.so : Undefined reference to `__ctype_b '
/opt/sybase-12.5/OCS-12_5/lib/libsybtcl.so : Undefined reference to `dlclose '
/opt/sybase-12.5/OCS-12_5/lib/libsybtcl.so : Undefined reference to `dlopen '
/opt/sybase-12.5/OCS-12_5/lib/libsybtcl.so : Undefined reference to `dlsym '
/opt/sybase-12.5/OCS-12_5/lib/libsybdb.so : Undefined reference to `__ctype_tolower ' |
Solutions to build linuxpatch.c source document
#include "Ctype.h>
__const Unsigned short int *__ctype_b;
__const __int32_t *__ctype_tolower;
__const __int32_t *__ctype_toupper;
Void ctSetup ()
{
__ctype_b = * (__ctype_b_loc ());
__ctype_toupper = * (__ctype_toupper_loc ());
__ctype_tolower = * (__ctype_tolower_loc ());
}
And. C source code included, and in main () implementation. |
| |