[Tiny Debug Issue] Undefined Reference problem encountered during compile

Started by 이재훈over 7 years ago3 messages
#1이재훈
ljhh0611@gmail.com

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? :(

#2Julien Rouhaud
rjuju123@gmail.com
In reply to: 이재훈 (#1)
Re: [Tiny Debug Issue] Undefined Reference problem encountered during compile

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.

#3Michael Paquier
michael@paquier.xyz
In reply to: 이재훈 (#1)
Re: [Tiny Debug Issue] Undefined Reference problem encountered during compile

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