Subject: | |
From: | |
Reply To: | |
Date: | Thu, 1 Nov 2001 08:44:44 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
IIRC there may be a strdup implementation somewhere within the PostgreSQL
source tree. There is definitely a strdup in the Porting Wrappers collection
on jazz.
The _udivdi3 and _umoddi3 are gcc runtime things from
/usr/local/lib/big/long/path/name/to/gcc/library. It appears that when I next
work on PostgreSQL I should see if I can get those gcc things included in
-lpq. But until then, you can manually link in the gcc library with -L/-l.
- Mark B.
Peter Osborne wrote:
>
> Hello All,
>
> After grabbing the source for a test C program from the PostgreSQL
> documentation, I tweaked it & compiled it on Linux. Of course, it works fine.
> Now.... the true test. Making it work on MPE.
>
> I compile the program with this:
>
> gcc -I/POSTGRES/CURRENT/include/ -L/POSTGRES/CURRENT/lib/ -lpq -lsocket
> testlibpq.c
>
> when I run the program, I get the following:
>
> UNRESOLVED EXTERNALS: strdup
> UNRESOLVED EXTERNALS: _udivdi3
> UNRESOLVED EXTERNALS: _umoddi3
>
> What libraries to I need for these functions.
>
> Thanks,
> -Pete
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
--
[log in to unmask]
Remainder of .sig suppressed to conserve scarce California electrons...
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|