Обсуждение: [Tiny Debug Issue] Undefined Reference problem encountered during compile

Поиск
Список
Период
Сортировка

[Tiny Debug Issue] Undefined Reference problem encountered during compile

От
이재훈
Дата:
First of all, thank you for listening to this mail.

As I mentioned in the title, I got a undefined reference in compiling time.
The reason that I wonder is that I surely add header file for the function.

In more detail,

I want to use TransactionIdEquals() function in freelist.c file.
Then, I included a header file, "access/xact.h" for the function.

However, in make command, compiler send implicit declaration of function warning and then undefined reference at linking time.

How could I overcome this problem? :(

Re: [Tiny Debug Issue] Undefined Reference problem encountered during compile

От
Julien Rouhaud
Дата:
Hi,

On Tue, Jul 10, 2018 at 10:19 AM, 이재훈 <ljhh0611@gmail.com> wrote:
>
> I want to use TransactionIdEquals() function in freelist.c file.
> Then, I included a header file, "access/xact.h" for the function.
>
> However, in make command, compiler send implicit declaration of function
> warning and then undefined reference at linking time.
>
> How could I overcome this problem? :(

This macro is actually defined in access/transam.h.


Re: [Tiny Debug Issue] Undefined Reference problem encounteredduring compile

От
Michael Paquier
Дата:
On Tue, Jul 10, 2018 at 05:19:25PM +0900, 이재훈 wrote:
> I want to use TransactionIdEquals() function in freelist.c file.
> Then, I included a header file, "access/xact.h" for the function.

This is in access/transam.h.
--
Michael

Вложения