Stefan Liersch wrote:
> Hi all,
>
> I have problems to build libpqxx using MS VS 2003.NET on (WinXP SP2). I
> searched the forum for comparable errors, but found nothing.
> As far as I know I did everything that is described in the installation
> documentation.
> - compiling release and debug version of libpq (successfully)
> - edit and rename win32/common file
> - copying the sample headers
>
> I downloaded libpqxx-2.6.8 and started the makefile from Visual Studio
> Command Prompt like this:
> nmake /f win32/vc-libpqxx.mak ALL
>
> First, there happens a lot but without any warnings or errors (I guess
> compiling is successfull), but in the end the process stops with the
> following messages:
>
> link.exe -lib /nologo "ObjStaticDebug\binarystring.obj"
> "ObjStaticDebu
> g\cachedresult.obj" "ObjStaticDebug\connection.obj"
> "ObjStaticDebug\connection
> _base.obj" "ObjStaticDebug\cursor.obj"
> "ObjStaticDebug\dbtransaction.obj" "Ob
> jStaticDebug\except.obj" "ObjStaticDebug\largeobject.obj"
> "ObjStaticDebug\nont
> ransaction.obj" "ObjStaticDebug\oldcursor.obj"
> "ObjStaticDebug\pipeline.obj"
> "ObjStaticDebug\prepared_statement.obj" "ObjStaticDebug\result.obj"
> "ObjStatic
> Debug\robusttransaction.obj" "ObjStaticDebug\subtransaction.obj"
> "ObjStaticDeb
> ug\tablereader.obj" "ObjStaticDebug\tablestream.obj"
> "ObjStaticDebug\tablewrit
> er.obj" "ObjStaticDebug\transaction.obj"
> "ObjStaticDebug\transaction_base.obj"
> "ObjStaticDebug\util.obj" /out:"lib/libpqxx_staticD.lib"
> LINK : fatal error LNK1104: cannot open file 'lib/libpqxx_staticD.lib'
> NMAKE : fatal error U1077: '"G:\Programme\Microsoft Visual Studio
> 8\VC\BIN\link.
> exe"' : return code '0x450'
> Stop.
>
> Hopefully I described everything that is necessary. I would be very glad
> if anybody can help to solve this problem.
Hmmm. Could you try changing:
OUTFILE_STATICDEBUG=$(OUTDIR)/libpqxx_staticD
OUTFILE_STATICRELEASE=$(OUTDIR)/libpqxx_static
OUTFILE_DLLDEBUG=$(OUTDIR)/libpqxxD
OUTFILE_DLLRELEASE=$(OUTDIR)/libpqxx
into
OUTFILE_STATICDEBUG=$(OUTDIR)\libpqxx_staticD
OUTFILE_STATICRELEASE=$(OUTDIR)\libpqxx_static
OUTFILE_DLLDEBUG=$(OUTDIR)\libpqxxD
OUTFILE_DLLRELEASE=$(OUTDIR)\libpqxx
in the makefile? I'm guessing that it doesn't like forward slashes. By
the way, you're not compiling with .NET2003 but with .NET2005, right? At
least that's what the output says ("Microsoft Visual Studio 8", whereas
.NET2003 is 7.1).
Cheers,
Bart
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general