pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #681: error LNK2019: unresolved external symbol
7+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #681: error LNK2019: unresolved external symbol
@ 2024-09-25 11:05  "deadsoul44 (@deadsoul44)" <noreply+deadsoul44@github.com>
  0 siblings, 0 replies; 7+ messages in thread

From: deadsoul44 (@deadsoul44) @ 2024-09-25 11:05 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hello,

I get the following error when trying to install on Windows with PostgreSQL\14.

```
C:\Users\mutlusi\AppData\Local\Temp\1\pgvector>set "PGROOT=C:\Program Files\PostgreSQL\14"

C:\Users\mutlusi\AppData\Local\Temp\1\pgvector>nmake /F Makefile.win

Microsoft (R) Program Maintenance Utility Version 14.41.34120.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl /nologo /I"C:\Program Files\PostgreSQL\14\include\server\port\win32_msvc" /I"C:\Program Files\PostgreSQL\14\include\server\port\win32" /I"C:\Program Files\PostgreSQL\14\include\server" /I"C:\Program Files\PostgreSQL\14\include"   /O2 /fp:fast src\bitutils.obj src\bitvec.obj src\halfutils.obj src\halfvec.obj src\hnsw.obj src\hnswbuild.obj src\hnswinsert.obj src\hnswscan.obj src\hnswutils.obj src\hnswvacuum.obj src\ivfbuild.obj src\ivfflat.obj src\ivfinsert.obj src\ivfkmeans.obj src\ivfscan.obj src\ivfutils.obj src\ivfvacuum.obj src\sparsevec.obj src\vector.obj "C:\Program Files\PostgreSQL\14\lib\postgres.lib" /link /DLL /OUT:vector.dll
   Creating library vector.lib and object vector.exp
bitutils.obj : error LNK2019: unresolved external symbol __imp__pg_number_of_ones referenced in function _BitHammingDistanceDefault
sparsevec.obj : error LNK2001: unresolved external symbol _errstart
vector.obj : error LNK2001: unresolved external symbol _errstart
ivfinsert.obj : error LNK2001: unresolved external symbol _errstart
ivfkmeans.obj : error LNK2001: unresolved external symbol _errstart
ivfscan.obj : error LNK2001: unresolved external symbol _errstart
ivfutils.obj : error LNK2001: unresolved external symbol _errstart
hnswscan.obj : error LNK2001: unresolved external symbol _errstart
hnswutils.obj : error LNK2001: unresolved external symbol _errstart
hnswvacuum.obj : error LNK2001: unresolved external symbol _errstart
ivfbuild.obj : error LNK2001: unresolved external symbol _errstart
bitvec.obj : error LNK2001: unresolved external symbol _errstart
halfvec.obj : error LNK2001: unresolved external symbol _errstart
hnswbuild.obj : error LNK2001: unresolved external symbol _errstart
hnswinsert.obj : error LNK2001: unresolved external symbol _errstart
sparsevec.obj : error LNK2001: unresolved external symbol _errfinish
vector.obj : error LNK2001: unresolved external symbol _errfinish
ivfinsert.obj : error LNK2001: unresolved external symbol _errfinish
ivfkmeans.obj : error LNK2001: unresolved external symbol _errfinish
```

How can I solve this problem? 
Thanks in advance.

^ permalink  raw  [nested|flat] 7+ messages in thread

* Re: [pgvector/pgvector] issue #681: error LNK2019: unresolved external symbol
@ 2024-09-25 11:07  "deadsoul44 (@deadsoul44)" <noreply+deadsoul44@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: deadsoul44 (@deadsoul44) @ 2024-09-25 11:07 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@deadsoul44 renamed this.

^ permalink  raw  [nested|flat] 7+ messages in thread

* Re: [pgvector/pgvector] issue #681: error LNK2019: unresolved external symbol
@ 2024-09-25 19:03  "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2024-09-25 19:03 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @deadsoul44, it looks like your Postgres installation is missing some expected symbols. A few questions:

1. How was Postgres installed?
2. What does `SELECT VERSION();` return?

^ permalink  raw  [nested|flat] 7+ messages in thread

* Re: [pgvector/pgvector] issue #681: error LNK2019: unresolved external symbol
@ 2024-09-25 19:08  "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2024-09-25 19:08 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Based on [this thread](https://www.postgresql.org/message-id/flat/16336-756c24e637b7a336%40postgresql.org), it's likely something specific to your environment.

^ permalink  raw  [nested|flat] 7+ messages in thread

* Re: [pgvector/pgvector] issue #681: error LNK2019: unresolved external symbol
@ 2024-09-27 07:02  "deadsoul44 (@deadsoul44)" <noreply+deadsoul44@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: deadsoul44 (@deadsoul44) @ 2024-09-27 07:02 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @ankane 

1. It is installed by company IT.
2. PostgreSQL 14.5, compiled by Visual C++ build 1914, 64-bit

Thanks for the link, but I don't have anything related to Perl and I don't modify the path. Any other suggestion would be really helpful.

^ permalink  raw  [nested|flat] 7+ messages in thread

* Re: [pgvector/pgvector] issue #681: error LNK2019: unresolved external symbol
@ 2024-09-27 18:10  "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2024-09-27 18:10 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

^ permalink  raw  [nested|flat] 7+ messages in thread

* Re: [pgvector/pgvector] issue #681: error LNK2019: unresolved external symbol
@ 2024-09-27 18:10  "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2024-09-27 18:10 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Thanks @deadsoul44, it seems like something with your Postgres installation or build environment (not specific to pgvector). You could try the latest version of Postgres 14 (14.13), or a different installation method like Docker.

^ permalink  raw  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2024-09-27 18:10 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-09-25 11:05 [pgvector/pgvector] issue #681: error LNK2019: unresolved external symbol "deadsoul44 (@deadsoul44)" <noreply+deadsoul44@github.com>
2024-09-25 11:07 ` "deadsoul44 (@deadsoul44)" <noreply+deadsoul44@github.com>
2024-09-25 19:03 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-09-25 19:08 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-09-27 07:02 ` "deadsoul44 (@deadsoul44)" <noreply+deadsoul44@github.com>
2024-09-27 18:10 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-09-27 18:10 ` "ankane (@ankane)" <noreply+ankane@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