pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: musabaku (@musabaku) <noreply+musabaku@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #792: MSVC compiler error (C1017: invalid integer constant expression)
Date: Wed, 05 Mar 2025 03:12:09 +0000
Message-ID: <gh-pgvector-pgvector-792-c2699672290@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-792@github.com>
References: <gh-pgvector-pgvector-792@github.com>

I didnt quite understand what exactly was happening, lots of new terms for me

I figured out below was error, using gpt's help
----------------------------------
The main problem was that some object files (.obj) were compiled for x86 (32-bit), but the linker was trying to create a 64-bit (x64) DLL. This caused the LNK1112 error:

"module machine type 'x86' conflicts with target machine type 'x64'"

Why did nmake clean fix it?
The object files (.obj) were already compiled in x86 mode, so when you ran nmake again, the linker tried to mix x86 and x64 files, causing the conflict.
By running nmake clean, you deleted all the old x86 object files, forcing nmake to recompile everything in x64 mode.
----------------------------------


![Image](https://github.com/user-attachments/assets/642e7de6-6cde-4ead-b464-a03410509a28)

view thread (7+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-792-c2699672290@github.com>
Permalink:  ../gh-pgvector-pgvector-792-c2699672290@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