pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lonnie Cumberland <lonnie_cumberland@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Simple Question
Date: Sat, 14 Apr 2001 14:55:19 -0700 (PDT)
Message-ID: <20010414215519.91998.qmail@web12501.mail.yahoo.com> (raw)

Hello All,

This may be the wrong mailing list for this question but I hope someone can
answer it for me as it is holding up my development progress.

I have now been able to compile the tutorial/complex.c functions and test them
out with no problems.

I made a copy of the Makefile, Makefile.global, and Makefile.port (Linux) from
the tutorial directory and made a simple modification for the paths. Now the
'c" files compile up just fine.

The problem is that this set up will not work if I make some C++ files. I think
that there is something wrong in one of the above makefiles for the g++
compiler and the needed options, but do not know where to find it.

I even made a copy of the "concat_text(....)" function from the manual and
saved one copy as a "c" file. It compiled just fine. I then renamed that same
file to "cc" for C++ and it compiled ok, but the psql command interperter gave
me some error that it could not find the function even thout it worked the
first time and I moade no other changes.

I also need to link in some other libraries like "libfile.a" that I have for
some of the functions that will be placed in my pgSQL interface but am not sure
hoe to do this as well with the default Makefiles.

Does someone have a simple Makefile that will allow me to compile up my C++
functions?

Cheers,
Lonnie


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



view thread (15+ messages)  latest in thread

Message-ID: <20010414215519.91998.qmail@web12501.mail.yahoo.com>
Permalink:  ../20010414215519.91998.qmail@web12501.mail.yahoo.com/
Also on:    postgresql.org/message-id/20010414215519.91998.qmail@web12501.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: lonnie_cumberland@yahoo.com
  Subject: Re: Simple Question
  In-Reply-To: <20010414215519.91998.qmail@web12501.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox