pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: apoorvam (@apoorvam) <noreply+apoorvam@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: Wed, 04 Jun 2025 20:13:46 +0000
Message-ID: <gh-pgvector-pgvector-593-c2941335119@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-593@github.com>
References: <gh-pgvector-pgvector-593@github.com>

@ankane  I am see the same issue with Postgres 17.5 and pgvector in Windows. I cloned and running `nmake /F Makefile.win` gives me error as: 

```

        cl /nologo /I"C:\Program Files\PostgreSQL\17\include\server\port\win32_msvc" /I"C:\Program Files\PostgreSQL\17\include\server\port\win32" /I"C:\Program Files\PostgreSQL\17\include\server" /I"C:\Program Files\PostgreSQL\17\include"   /O2 /fp:fast /c src\hnsw.c /Fosrc\hnsw.obj
hnsw.c
C:\Program Files\PostgreSQL\17\include\server\access/tupmacs.h(65): error C2196: case value '4' already used
C:\Program Files\PostgreSQL\17\include\server\access/tupmacs.h(197): error C2196: case value '4' already used
NMAKE : fatal error U1077: 'cl /nologo /I"C:\Program Files\PostgreSQL\17\include\server\port\win32_msvc" /I"C:\Program Files\PostgreSQL\17\include\server\port\win32" /I"C:\Program Files\PostgreSQL\17\include\server" /I"C:\Program Files\PostgreSQL\17\include"   /O2 /fp:fast /c src\hnsw.c /Fosrc\hnsw.obj' : return code '0x2'
Stop.
```
I dont understand what this meant from above comment:

> I ran into the same issue and realized I accidentally called `vcvars32.bat` instead of `vcvars64.bat` before running nmake.

Any suggestions on what could be missing in my setup? I dont see any mismatch in arch because i installed postgresql for win-64. But i do see this path `C:\Program Files\PostgreSQL\17\include\server\port\win32_msvc` exists in my machine

view thread (18+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-593-c2941335119@github.com>
Permalink:  ../gh-pgvector-pgvector-593-c2941335119@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox