Skip site navigation (1) Skip section navigation (2)

Re: "undefined reference" error when compiling

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: mark(at)maxpreps(dot)com
Cc: pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: "undefined reference" error when compiling
Date: 2005-04-26 00:20:13
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers-win32
It seems to be looking for libpostgres.a, which is created as part of a 
standard build ... which takes me back to my earlier suggestion of doing 
a full configure/make to give yourself the right enviroment to build 



Mark Miller wrote:

>I have to say that it is worlds different than what I'm used to. But it's
>never stopped me before ;). I did find why it was pointing to the wrong dir,
>the pgxs/src/ had the following line in it:
>prefix := /usr/local/pgsql
>Which likely has something to do with the build, since I did a windows
>install the default might not get set. I did set prefix when I ran configure
>and make install, but since I only installed includes it make sense that the
>file didn't get updated. But sadly, even though I found this and the output
>has changed (see below), it did not fix the problem. It still fails with the
>following error:
>cannot find -lpostgres
>Which brings us back to your suggestion of a clean build from scratch. It
>seems the only solution unless I want to walk thru every possible place
>where I'll run into these problems.
>What is "-lpostgres" anyway?
>--------------------- make output --------------------------------------
>$ make
>dlltool --export-all --output-def filesize.def filesize.o
>dllwrap -o filesize.dll --def filesize.def filesize.o
>-L/c/progra~1/postgresql/8.0/bin -lpostgres
>cannot find -lpostgres
>c:\MinGW\bin\dllwrap.exe: c:\MinGW\bin\gcc exited with status 1
>make: *** [filesize.dll] Error 1

In response to


pgsql-hackers-win32 by date

Next:From: Mark MillerDate: 2005-04-26 00:33:24
Subject: Re: "undefined reference" error when compiling extension functions
Previous:From: Mark MillerDate: 2005-04-25 22:55:23
Subject: Re: "undefined reference" error when compiling extension functions

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group