Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Access to local...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 9598 of 11013
Post > Topic >>

Access to localized_str_tolower()

by david@[EMAIL PROTECTED] ("David E. Wheeler") Jul 1, 2008 at 10:33 AM

Howdy,

In my original implementation of citext, which I'm going to start  
using for an app I'm developing, I pull in the wstring_lower function  
from oracle_compat.c by simply declaring it at the top of citext.c,  
just as if it were in an include file:

   extern char * wstring_lower  (char *str);

After I ****ted it to CVS HEAD, however, and discovered the  
str_tolower() function in formatting.c, I wanted to try to make use of  
it in 8.3, as well. But when I tried to include it in citext.c, it  
simply didn't work. I put this at the top of citext.c:

   extern char * localized_str_tolower(char *buff);

But when I try to use it, like so:

     lcstr = localized_str_tolower(VARDATA_ANY(left));
     rcstr = localized_str_tolower(VARDATA_ANY(right));

I get a compile-time error:

Undefined symbols:
   "_localized_str_tolower", referenced from:
       _citextcmp in citext.o
       _citextcmp in citext.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [citext.so] Error 1

So, stupid C question, I'm sure: How can I use this function from my  
module?

Oh, and on a side note, should I localized_str_tolower() or just  
str_tolower()?

Thanks,

David

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 8 Posts in Topic:
Access to localized_str_tolower()
david@[EMAIL PROTECTED]   2008-07-01 10:33:03 
Re: Access to localized_str_tolower()
bruce@[EMAIL PROTECTED]   2008-07-01 13:38:19 
Re: Access to localized_str_tolower()
david@[EMAIL PROTECTED]   2008-07-01 10:45:30 
Re: Access to localized_str_tolower()
bruce@[EMAIL PROTECTED]   2008-07-01 14:11:16 
Re: Access to localized_str_tolower()
david@[EMAIL PROTECTED]   2008-07-01 11:25:26 
Re: Access to localized_str_tolower()
bruce@[EMAIL PROTECTED]   2008-07-01 14:30:26 
Re: Access to localized_str_tolower()
tgl@[EMAIL PROTECTED] (T  2008-07-01 14:59:08 
Re: Access to localized_str_tolower()
david@[EMAIL PROTECTED]   2008-07-01 12:03:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 9:08:53 CST 2008.