Skip to content

How do you compile for Windows? #86

@gitartdev

Description

@gitartdev

I've successfully compiled pgaudit for windows but I can't get set_user to compile against PostgreSQL 16. I've tried multiple versions. Version 4.1.0 returns the error:

C:\dev\set_user_cl>cl /c @.\compile_response_file.txt .\set_user.c
set_user.c
C:\Program Files\PostgreSQL\16\include\server\pg_config_manual.h(141): warning C4005: 'EXEC_BACKEND': macro redefinition
C:\dev\set_user_cl\set_user.c: note: see previous definition of 'EXEC_BACKEND'
C:\dev\set_user_cl\set_user.c(190): error C2375: 'set_user': redefinition; different linkage
C:\dev\set_user_cl\set_user.c(101): note: see declaration of 'set_user'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions