Skip to content

Commit 50a0739

Browse files
committed
Fix pg_dump linking on Win32 with MSVS win32.mak:
The module link is insufficient.:-( ---- Sorry, japanese message change to xxx --- link.exe @C:\DOCUME~1\hi-saito\LOCALS~1\Temp\nmk03360. common.obj : error LNK2001: xxxxxx "_pg_qsort" xxxxxx pg_dump_sort.obj : error LNK2001: xxxxx "_pg_qsort" xxxxx .\Release\pg_dump.exe : fatal error LNK1120: xxxxxxx NMAKE : fatal error U1077: 'link.exe' : xxxxx '0x460' Stop. Hiroshi Saito
1 parent 1e22e60 commit 50a0739

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/bin/pg_dump/win32.mak

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ CLEAN :
5959
-@erase "$(INTDIR)\pgstrcasecmp.obj"
6060
-@erase "$(INTDIR)\sprompt.obj"
6161
-@erase "$(INTDIR)\snprintf.obj"
62+
-@erase "$(INTDIR)\qsort.obj"
6263
# -@erase "$(INTDIR)\pg_dump.pch"
6364
-@erase "$(OUTDIR)\pg_dump.obj"
6465
-@erase "$(OUTDIR)\pg_dump.exe"
@@ -97,7 +98,8 @@ LINK32_OBJS= \
9798
"$(INTDIR)\strlcpy.obj" \
9899
"$(INTDIR)\pgstrcasecmp.obj" \
99100
"$(INTDIR)\sprompt.obj" \
100-
"$(INTDIR)\snprintf.obj"
101+
"$(INTDIR)\snprintf.obj" \
102+
"$(INTDIR)\qsort.obj"
101103

102104
LINK32_OBJS_DMP= \
103105
"$(INTDIR)\common.obj" \
@@ -188,6 +190,11 @@ LINK32_OBJS = $(LINK32_OBJS) "..\..\interfaces\libpq\Release\libpqdll.lib"
188190
$(CPP_PROJ) ..\..\port\snprintf.c
189191
<<
190192

193+
"$(INTDIR)\qsort.obj" : "$(INTDIR)" ..\..\port\qsort.c
194+
$(CPP) @<<
195+
$(CPP_PROJ) ..\..\port\qsort.c
196+
<<
197+
191198
..\..\backend\parser\parse.h : ..\..\backend\parser\gram.y
192199
$(YACC) -y -d ..\..\backend\parser\gram.y
193200
$(MV) ..\..\backend\parser\y.tab.h ..\..\backend\parser\parse.h

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy