Modifying Makefile

Поиск
Список
Период
Сортировка
От Mohamed Yassin Eltabakh
Тема Modifying Makefile
Дата
Msg-id 01b801c6efb9$7221be00$e9090a80@ad.cs.purdue.edu
обсуждение исходный текст
Ответы Re: Modifying Makefile
Список pgsql-admin
I'm modifying postgreSQL code and adding a new file (say new.c) under dir
"src/backend/parser". This file calls functions (PSQLexec, PQntuples,
PQgetvalue, ...).

The file looks like:
--------------------------------
#include "libpq-fe.h"
#include "common.h"
bool  exec_sql()
{
  PGresult      *res;
  char          str[1000];
  int           TuplesNums;

  strcpy(str, "SELECT id, fname FROM T;");
  res = PSQLexec(str, false);
  if (!res)
    return false;
  TuplesNums = PQntuples(res);
  PQclear(res);

  return true;
}
-------------------------

I updated the src/backend/parser/Makefile and added "new.o" to the OBJS
list, but when I compile I receive error:
....undefined reference to `PSQLexec'
....undefined reference to `PQntuples'
....undefined reference to `PQclear'

Do you have an idea which Makefile should I update and how? because I'm not
familiar with writing Makefiles.

Thanks in advance


В списке pgsql-admin по дате отправления:

Предыдущее
От: "Tomeh, Husam"
Дата:
Сообщение: Re: openssl config? - SSL Links
Следующее
От: vipin SS
Дата:
Сообщение: Postgre SQL Urgent Help