From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #593: src\bitvec.c(43): warning C4141: 'dllexport': used more than once
Date: Sun, 16 Jun 2024 19:40:46 +0000
Message-ID: <gh-pgvector-pgvector-593-c2171827243@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-593@github.com>
References: <gh-pgvector-pgvector-593@github.com>
It looks like the warning wasn't the issue here (and has been addressed in #598).
The error seems to be something with your Postgres installation:
```text
C:\Program Files\PostgreSQL\16\include\server\access/tupmacs.h(65): error C2196: case value '4' already used
```
It looks like `sizeof(Datum)` is returning 4, even though that condition should only be added if `SIZEOF_DATUM == 8`.
https://github.com/postgres/postgres/blob/REL_16_3/src/include/access/tupmacs.h#L64-L67
(in any case, it doesn't seem like an issue with pgvector)