Opened 3 years ago

Last modified 19 months ago

#326 new defect

5.0 with visual studio 2013 make compiled error

Reported by: anonymous Owned by: jtv
Priority: normal Component: other
Severity: Unusable Keywords:
Cc:

Description

link.exe kernel32.lib ws2_32.lib advapi32.lib /nologo /dll /machine:I386

shell32.lib secur32.lib wldap32.lib /libpath:"C:\Program Files\PostgreSQL\9.3"\

lib libpq.lib /debug "ObjDllDebug?\binarystring.obj" "ObjDllDebug?\connection.ob j" "ObjDllDebug?\connection_base.obj" "ObjDllDebug?\cursor.obj" "ObjDllDebug?\db transaction.obj" "ObjDllDebug?\errorhandler.obj" "ObjDllDebug?\except.obj" "Obj DllDebug?\field.obj" "ObjDllDebug?\largeobject.obj" "ObjDllDebug?\nontransaction. obj" "ObjDllDebug?\notification.obj" "ObjDllDebug?\notify-listen.obj" "ObjDllDe? bug\pipeline.obj" "ObjDllDebug?\prepared_statement.obj" "ObjDllDebug?\result.obj " "ObjDllDebug?\robusttransaction.obj" "ObjDllDebug?\statement_parameters.obj" "ObjDllDebug?\strconv.obj" "ObjDllDebug?\subtransaction.obj" "ObjDllDebug?\tabler eader.obj" "ObjDllDebug?\tablestream.obj" "ObjDllDebug?\tablewriter.obj" "ObjDl? lDebug\transaction.obj" "ObjDllDebug?\transaction_base.obj" "ObjDllDebug?\tuple. obj" "ObjDllDebug?\util.obj" "ObjDllDebug?\libpqxx.obj" /out:"lib\libpqxxD.dll" /implib:"lib\libpqxxD.lib"

Creating library lib\libpqxxD.lib and object lib\libpqxxD.exp

binarystring.obj : error LNK2019: unresolved external symbol _PQunescapeBytea re ferenced in function "struct std::pair<unsigned char *,unsigned int> cdecl `an onymous namespace'::builtin_unescape(unsigned char const * const,unsigned int)" (?builtin_unescape@?A0xf93c0b3a@@YA?AU?$pair@PAEI@std@@QBEI@Z) binarystring.obj : error LNK2019: unresolved external symbol _PQescapeBytea refe renced in function "class std::basic_string<char,struct std::char_traits<char>,c lass std::allocator<char> > cdecl pqxx::escape_binary(unsigned char const * co nst,unsigned int)" (?escape_binary@pqxx@@YA?AV?$basic_string@DU?$char_traits@D@s td@@V?$allocator@D@2@@std@@QBEI@Z) connection.obj : error LNK2019: unresolved external symbol _PQconnectStart refer enced in function "public: virtual struct pg_conn * thiscall pqxx::connect_asy nc::do_startconnect(struct pg_conn *)" (?do_startconnect@connect_async@pqxx@@UAE PAUpg_conn@@PAU3@@Z) connection.obj : error LNK2019: unresolved external symbol _PQconnectPoll refere nced in function "public: virtual struct pg_conn * thiscall pqxx::connect_asyn c::do_completeconnect(struct pg_conn *)" (?do_completeconnect@connect_async@pqxx @@UAEPAUpg_conn@@PAU3@@Z) connection.obj : error LNK2019: unresolved external symbol _PQconnectdb referenc ed in function "protected: struct pg_conn * thiscall pqxx::connectionpolicy::n ormalconnect(struct pg_conn *)" (?normalconnect@connectionpolicy@pqxx@@IAEPAUpg_ conn@@PAU3@@Z) connection.obj : error LNK2019: unresolved external symbol _PQfinish referenced in function "public: virtual struct pg_conn * thiscall pqxx::connectionpolicy: :do_disconnect(struct pg_conn *)" (?do_disconnect@connectionpolicy@pqxx@@UAEPAUp g_conn@@PAU3@@Z) connection.obj : error LNK2019: unresolved external symbol _PQstatus referenced in function "public: virtual struct pg_conn * thiscall pqxx::connect_async::do _startconnect(struct pg_conn *)" (?do_startconnect@connect_async@pqxx@@UAEPAUpg_ conn@@PAU3@@Z) connection_base.obj : error LNK2001: unresolved external symbol _PQstatus connection.obj : error LNK2019: unresolved external symbol _PQerrorMessage refer enced in function "public: virtual struct pg_conn * thiscall pqxx::connect_asy nc::do_completeconnect(struct pg_conn *)" (?do_completeconnect@connect_async@pqx x@@UAEPAUpg_conn@@PAU3@@Z) connection_base.obj : error LNK2001: unresolved external symbol _PQerrorMessage connection_base.obj : error LNK2019: unresolved external symbol _PQreset referen ced in function "private: void thiscall pqxx::connection_base::Reset(void)" (? Reset@connection_base@pqxx@@AAEXXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQgetCancel ref erenced in function "public: thiscall `anonymous namespace'::cancel_wrapper::c ancel_wrapper(struct pg_conn *)" (??0cancel_wrapper@?A0x08ce2e27@@QAE@PAUpg_conn @@@Z) connection_base.obj : error LNK2019: unresolved external symbol _PQfreeCancel re ferenced in function "public: thiscall `anonymous namespace'::cancel_wrapper:: ~cancel_wrapper(void)" (??1cancel_wrapper@?A0x08ce2e27@@QAE@XZ) connection_base.obj : error LNK2019: unresolved external symbol _PQcancel refere nced in function "public: void thiscall `anonymous namespace'::cancel_wrapper: :operator()(void)" (??Rcancel_wrapper@?A0x08ce2e27@@QAEXXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQdb referenced

in function "public: char const * thiscall pqxx::connection_base::dbname(void

)" (?dbname@connection_base@pqxx@@QAEPBDXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQuser referenc ed in function "public: char const * thiscall pqxx::connection_base::username( void)" (?username@connection_base@pqxx@@QAEPBDXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQhost referenc ed in function "public: char const * thiscall pqxx::connection_base::hostname( void)" (?hostname@connection_base@pqxx@@QAEPBDXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQport referenc ed in function "public: char const * thiscall pqxx::connection_base::port(void )" (?port@connection_base@pqxx@@QAEPBDXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQprotocolVersi on referenced in function "public: int thiscall pqxx::connection_base::protoco l_version(void)const " (?protocol_version@connection_base@pqxx@@QBEHXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQserverVersion

referenced in function "private: void thiscall pqxx::connection_base::read_ca

pabilities(void)" (?read_capabilities@connection_base@pqxx@@AAEXXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQsocket refere nced in function "int cdecl `anonymous namespace'::socket_of(struct pg_conn co nst *)" (?socket_of@?A0x08ce2e27@@YAHPBUpg_conn@@@Z) connection_base.obj : error LNK2019: unresolved external symbol _PQbackendPID re ferenced in function "public: int thiscall pqxx::connection_base::backendpid(v oid)const " (?backendpid@connection_base@pqxx@@QBEHXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQclientEncodin g referenced in function "private: int thiscall pqxx::connection_base::encodin g_code(void)" (?encoding_code@connection_base@pqxx@@AAEHXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQsetErrorVerbo sity referenced in function "public: void thiscall pqxx::connection_base::set_ verbosity(enum pqxx::connection_base::error_verbosity)" (?set_verbosity@connecti on_base@pqxx@@QAEXW4error_verbosity@12@@Z) connection_base.obj : error LNK2019: unresolved external symbol _PQtrace referen ced in function "private: void thiscall pqxx::connection_base::InternalSetTrac? e(void)" (?InternalSetTrace?@connection_base@pqxx@@AAEXXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQuntrace refer enced in function "private: void thiscall pqxx::connection_base::InternalSetTr? ace(void)" (?InternalSetTrace?@connection_base@pqxx@@AAEXXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQsetNoticeProc essor referenced in function "private: void thiscall pqxx::connection_base::Se tupState(void)" (?SetupState?@connection_base@pqxx@@AAEXXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQexec referenc ed in function "private: class pqxx::result thiscall pqxx::connection_base::Ex ec(char const * const,int)" (?Exec@connection_base@pqxx@@AAE?AVresult@2@QBDH@Z) connection_base.obj : error LNK2019: unresolved external symbol _PQexecParams re ferenced in function "private: class pqxx::result thiscall pqxx::connection_ba se::parameterized_exec(class std::basic_string<char,struct std::char_traits<char

,class std::allocator<char> > const &,char const * const * const,int const * co

nst,int const * const,int)" (?parameterized_exec@connection_base@pqxx@@AAE?AVres ult@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBQBDQBH2H @Z) connection_base.obj : error LNK2019: unresolved external symbol _PQprepare refer enced in function "private: struct pqxx::prepare::internal::prepared_def & thi scall pqxx::connection_base::register_prepared(class std::basic_string<char,stru ct std::char_traits<char>,class std::allocator<char> > const &)" (?register_prep ared@connection_base@pqxx@@AAEAAUprepared_def@internal@prepare@2@ABV?$basic_stri ng@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) connection_base.obj : error LNK2019: unresolved external symbol _PQexecPrepared referenced in function "private: class pqxx::result thiscall pqxx::connection_ base::prepared_exec(class std::basic_string<char,struct std::char_traits<char>,c lass std::allocator<char> > const &,char const * const * const,int const * const ,int const * const,int)" (?prepared_exec@connection_base@pqxx@@AAE?AVresult@2@AB V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBQBDQBH2H@Z) connection_base.obj : error LNK2019: unresolved external symbol _PQsendQuery ref erenced in function "private: void thiscall pqxx::connection_base::SetupState?( void)" (?SetupState?@connection_base@pqxx@@AAEXXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQgetResult ref erenced in function "private: void thiscall pqxx::connection_base::EndCopyWrit? e(void)" (?EndCopyWrite?@connection_base@pqxx@@AAEXXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQisBusy refere nced in function "private: bool thiscall pqxx::connection_base::is_busy(void)c onst " (?is_busy@connection_base@pqxx@@ABE_NXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQconsumeInput referenced in function "private: bool thiscall pqxx::connection_base::consume_ input(void)" (?consume_input@connection_base@pqxx@@AAE_NXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQnotifies refe renced in function "public: int thiscall pqxx::connection_base::get_notifs(voi d)" (?get_notifs@connection_base@pqxx@@QAEHXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQputCopyData r eferenced in function "private: void thiscall pqxx::connection_base::WriteCopy? Line(class std::basic_string<char,struct std::char_traits<char>,class std::alloc ator<char> > const &)" (?WriteCopyLine?@connection_base@pqxx@@AAEXABV?$basic_stri ng@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) connection_base.obj : error LNK2019: unresolved external symbol _PQputCopyEnd re ferenced in function "private: void thiscall pqxx::connection_base::EndCopyWri? te(void)" (?EndCopyWrite?@connection_base@pqxx@@AAEXXZ) connection_base.obj : error LNK2019: unresolved external symbol _PQgetCopyData r eferenced in function "private: bool thiscall pqxx::connection_base::ReadCopyL ine(class std::basic_string<char,struct std::char_traits<char>,class std::alloca tor<char> > &)" (?ReadCopyLine?@connection_base@pqxx@@AAE_NAAV?$basic_string@DU?$ char_traits@D@std@@V?$allocator@D@2@@std@@@Z) connection_base.obj : error LNK2019: unresolved external symbol _PQendcopy refer enced in function "private: void thiscall pqxx::connection_base::WriteCopyLine? (class std::basic_string<char,struct std::char_traits<char>,class std::allocator <char> > const &)" (?WriteCopyLine?@connection_base@pqxx@@AAEXABV?$basic_string@D U?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) connection_base.obj : error LNK2019: unresolved external symbol _PQescapeStringC onn referenced in function "public: class std::basic_string<char,struct std::cha r_traits<char>,class std::allocator<char> > thiscall pqxx::connection_base::es c(char const * const,unsigned int)" (?esc@connection_base@pqxx@@QAE?AV?$basic_st ring@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBDI@Z) connection_base.obj : error LNK2019: unresolved external symbol _PQescapeByteaCo nn referenced in function "public: class std::basic_string<char,struct std::char _traits<char>,class std::allocator<char> > thiscall pqxx::connection_base::esc _raw(unsigned char const * const,unsigned int)" (?esc_raw@connection_base@pqxx@@ QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEI@Z) connection_base.obj : error LNK2019: unresolved external symbol _PQencryptPasswo rd referenced in function "class std::basic_string<char,struct std::char_traits< char>,class std::allocator<char> > cdecl pqxx::encrypt_password(class std::bas ic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocato r<char> > const &)" (?encrypt_password@pqxx@@YA?AV?$basic_string@DU?$char_traits @D@std@@V?$allocator@D@2@@std@@ABV23@0@Z) largeobject.obj : error LNK2019: unresolved external symbol _lo_open referenced in function "private: void thiscall pqxx::largeobjectaccess::open(int)" (?open @largeobjectaccess@pqxx@@AAEXH@Z) largeobject.obj : error LNK2019: unresolved external symbol _lo_close referenced

in function "private: void thiscall pqxx::largeobjectaccess::close(void)" (?c

lose@largeobjectaccess@pqxx@@AAEXXZ) largeobject.obj : error LNK2019: unresolved external symbol _lo_read referenced in function "public: long thiscall pqxx::largeobjectaccess::cread(char * const ,long)" (?cread@largeobjectaccess@pqxx@@QAEJQADJ@Z) largeobject.obj : error LNK2019: unresolved external symbol _lo_write referenced

in function "public: long thiscall pqxx::largeobjectaccess::cwrite(char const

  • const,long)" (?cwrite@largeobjectaccess@pqxx@@QAEJQBDJ@Z)

largeobject.obj : error LNK2019: unresolved external symbol _lo_lseek referenced

in function "public: long thiscall pqxx::largeobjectaccess::cseek(long,int)"

(?cseek@largeobjectaccess@pqxx@@QAEJJH@Z) largeobject.obj : error LNK2019: unresolved external symbol _lo_creat referenced

in function "public: thiscall pqxx::largeobject::largeobject(class pqxx::dbtr

ansaction &)" (??0largeobject@pqxx@@QAE@AAVdbtransaction@1@@Z) largeobject.obj : error LNK2019: unresolved external symbol _lo_tell referenced in function "public: long thiscall pqxx::largeobjectaccess::ctell(void)const "

(?ctell@largeobjectaccess@pqxx@@QBEJXZ)

largeobject.obj : error LNK2019: unresolved external symbol _lo_unlink reference d in function "public: void thiscall pqxx::largeobject::remove(class pqxx::dbt ransaction &)const " (?remove@largeobject@pqxx@@QBEXAAVdbtransaction@2@@Z) largeobject.obj : error LNK2019: unresolved external symbol _lo_import reference d in function "public: thiscall pqxx::largeobject::largeobject(class pqxx::dbt ransaction &,class std::basic_string<char,struct std::char_traits<char>,class st d::allocator<char> > const &)" (??0largeobject@pqxx@@QAE@AAVdbtransaction@1@ABV? $basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) largeobject.obj : error LNK2019: unresolved external symbol _lo_export reference d in function "public: void thiscall pqxx::largeobject::to_file(class pqxx::db transaction &,class std::basic_string<char,struct std::char_traits<char>,class s td::allocator<char> > const &)const " (?to_file@largeobject@pqxx@@QBEXAAVdbtrans action@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) result.obj : error LNK2019: unresolved external symbol _PQresultStatus reference d in function "private: class std::basic_string<char,struct std::char_traits<cha r>,class std::allocator<char> > thiscall pqxx::result::StatusError?(void)const " (?StatusError?@result@pqxx@@ABE?AV?$basic_string@DU?$char_traits@D@std@@V?$allo cator@D@2@@std@@XZ) result.obj : error LNK2019: unresolved external symbol _PQresultErrorMessage ref erenced in function "private: class std::basic_string<char,struct std::char_trai ts<char>,class std::allocator<char> > thiscall pqxx::result::StatusError?(void) const " (?StatusError?@result@pqxx@@ABE?AV?$basic_string@DU?$char_traits@D@std@@V ?$allocator@D@2@@std@@XZ) result.obj : error LNK2019: unresolved external symbol _PQresultErrorField refer enced in function "private: void thiscall pqxx::result::ThrowSQLError(class st d::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::al locator<char> > const &)const " (?ThrowSQLError@result@pqxx@@ABEXABV?$basic_stri ng@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) result.obj : error LNK2019: unresolved external symbol _PQntuples referenced in function "public: bool thiscall pqxx::result::empty(void)const " (?empty@resul t@pqxx@@QBE_NXZ) result.obj : error LNK2019: unresolved external symbol _PQnfields referenced in function "public: unsigned int thiscall pqxx::result::columns(void)const " (?c olumns@result@pqxx@@QBEIXZ) result.obj : error LNK2019: unresolved external symbol _PQfname referenced in fu nction "public: char const * thiscall pqxx::result::column_name(unsigned int)c onst " (?column_name@result@pqxx@@QBEPBDI@Z) result.obj : error LNK2019: unresolved external symbol _PQftable referenced in f unction "public: unsigned int thiscall pqxx::result::column_table(unsigned int )const " (?column_table@result@pqxx@@QBEII@Z) result.obj : error LNK2019: unresolved external symbol _PQftablecol referenced i n function "public: unsigned int thiscall pqxx::result::table_column(unsigned int)const " (?table_column@result@pqxx@@QBEII@Z) result.obj : error LNK2019: unresolved external symbol _PQftype referenced in fu nction "public: unsigned int thiscall pqxx::result::column_type(unsigned int)c onst " (?column_type@result@pqxx@@QBEII@Z) result.obj : error LNK2019: unresolved external symbol _PQcmdStatus referenced i n function "private: char const * thiscall pqxx::result::CmdStatus?(void)const " (?CmdStatus?@result@pqxx@@ABEPBDXZ) result.obj : error LNK2019: unresolved external symbol _PQoidValue referenced in

function "public: unsigned int thiscall pqxx::result::inserted_oid(void)const " (?inserted_oid@result@pqxx@@QBEIXZ)

result.obj : error LNK2019: unresolved external symbol _PQcmdTuples referenced i n function "public: unsigned long thiscall pqxx::result::affected_rows(void)co nst " (?affected_rows@result@pqxx@@QBEKXZ) result.obj : error LNK2019: unresolved external symbol _PQgetvalue referenced in

function "private: char const * thiscall pqxx::result::GetValue?(unsigned long

,unsigned int)const " (?GetValue?@result@pqxx@@ABEPBDKI@Z) result.obj : error LNK2019: unresolved external symbol _PQgetlength referenced i n function "private: unsigned int thiscall pqxx::result::GetLength?(unsigned lo ng,unsigned int)const " (?GetLength?@result@pqxx@@ABEIKI@Z) result.obj : error LNK2019: unresolved external symbol _PQgetisnull referenced i n function "private: bool thiscall pqxx::result::GetIsNull?(unsigned long,unsig ned int)const " (?GetIsNull?@result@pqxx@@ABE_NKI@Z) result.obj : error LNK2019: unresolved external symbol _PQclear referenced in fu nction "public: thiscall pqxx::internal::result_data::~result_data(void)" (??1 result_data@internal@pqxx@@QAE@XZ) tuple.obj : error LNK2019: unresolved external symbol _PQfnumber referenced in f unction "public: unsigned int thiscall pqxx::result::column_number(char const

  • const)const " (?column_number@result@pqxx@@QBEIQBD@Z)

util.obj : error LNK2019: unresolved external symbol _PQisthreadsafe referenced in function "struct pqxx::thread_safety_model cdecl pqxx::describe_thread_safe ty(void)" (?describe_thread_safety@pqxx@@YA?AUthread_safety_model@1@XZ) util.obj : error LNK2019: unresolved external symbol _PQfreemem referenced in fu nction "void cdecl pqxx::internal::freepqmem(void const *)" (?freepqmem@intern al@pqxx@@YAXPBX@Z) lib\libpqxxD.dll : fatal error LNK1120: 70 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0 \VC\BIN\link.exe"' : return code '0x460' Stop.

Change History (7)

comment:1 Changed 3 years ago by anonymous

With 64 lib library-related?

comment:2 Changed 3 years ago by jtv

Looks like the Makefile doesn't link to libpq. I need somebody with Windows to test a fix...

comment:3 Changed 3 years ago by jtv

  • Severity changed from Fails to communicate failure to Unusable

comment:4 Changed 3 years ago by anonymous

Hi, i have the same problem with libpgxx 4.0.1 linking with libpq from

PostgrSQL 9.4 (can't link anything) and 9.0 (can't link the dll's).

I'm using VS 2010. But there are some "mistakes" in the mak-File for VS2010 and the common-File.

In the common-File the path-variables should not have "". But in the mak-File the path-variables must have "". The error above shows

/libpath:"C:\..."\lib\libpq.lib but it must be

/libpath:"C:\...\lib\libpq.lib"

comment:5 Changed 2 years ago by libpqxx.pyrosbrother@…

Hello,

Did you manage to compile it ? I have the same problem. I try to run this command (of course "D:\PostgreSQL\9.4\lib\libpq.lib" is set because PostgreSQL is installed in this directory) :

link.exe kernel32.lib ws2_32.lib advapi32.lib /nologo /dll /machine:I386 shell32.lib secur32.lib wldap32.lib /libpath:"D:\PostgreSQL\9.4\lib\libpq.lib" /debug "ObjDllDebug?\binarystring.obj" "ObjDllDebug?\connection.obj" "ObjDllDebug?\connection_base.obj" "ObjDllDebug?\cursor.obj" "ObjDllDebug?\dbtransaction.obj" "ObjDllDebug?\errorhandler.obj" "ObjDllDebug?\except.obj" "ObjDllDebug?\field.obj" "ObjDllDebug?\largeobject.obj" "ObjDllDebug?\nontransaction.obj" "ObjDllDebug?\notification.obj" "ObjDllDebug?\pipeline.obj" "ObjDllDebug?\prepared_statement.obj" "ObjDllDebug?\result.obj" "ObjDllDebug?\robusttransaction.obj" "ObjDllDebug?\row.obj" "ObjDllDebug?\statement_parameters.obj" "ObjDllDebug?\strconv.obj" "ObjDllDebug?\subtransaction.obj" "ObjDllDebug?\tablereader.obj" "ObjDllDebug?\tablestream.obj" "ObjDllDebug?\tablewriter.obj" "ObjDllDebug?\transaction.obj" "ObjDllDebug?\transaction_base.obj" "ObjDllDebug?\util.obj" "ObjDllDebug?\libpqxx.obj" /out:"lib\libpqxxD.dll" /implib:"lib\libpqxxD.lib"

but I get the same errors. Could someone help please ? Regards

comment:6 Changed 2 years ago by libpqxx.pyrosbrother@…

Hello again,

I succeed in compiling with this command line (so I confirm the syntax is correct in libpqxx makefile) : link.exe kernel32.lib ws2_32.lib advapi32.lib /nologo /dll /machine:I386 shell32.lib secur32.lib wldap32.lib /libpath:"D:\PostgreSQL\9.4"\lib libpq.lib "ObjDllRelease?\binarystring.obj" "ObjDllRelease?\connection.obj" "ObjDllRelease?\connection_base.obj" "ObjDllRelease?\cursor.obj" "ObjDllRelease?\dbtransaction.obj" "ObjDllRelease?\errorhandler.obj" "ObjDllRelease?\except.obj" "ObjDllRelease?\field.obj" "ObjDllRelease?\largeobject.obj" "ObjDllRelease?\nontransaction.obj" "ObjDllRelease?\notification.obj" "ObjDllRelease?\pipeline.obj" "ObjDllRelease?\prepared_statement.obj" "ObjDllRelease?\result.obj" "ObjDllRelease?\robusttransaction.obj" "ObjDllRelease?\row.obj" "ObjDllRelease?\statement_parameters.obj" "ObjDllRelease?\strconv.obj" "ObjDllRelease?\subtransaction.obj" "ObjDllRelease?\tablereader.obj" "ObjDllRelease?\tablestream.obj" "ObjDllRelease?\tablewriter.obj" "ObjDllRelease?\transaction.obj" "ObjDllRelease?\transaction_base.obj" "ObjDllRelease?\util.obj" "ObjDllRelease?\libpqxx.obj" /out:"lib\libpqxx.dll" /implib:"lib\libpqxx.lib"

But in fact what was wrong is my PostgreSQL installation. I have installed a 64 bits version and not the 32 one. I have installed the 32 bit version and now all is compiling and linking well. Hope this helps

comment:7 Changed 19 months ago by anonymous

A better solution is proposed by ticket #367

Note: See TracTickets for help on using tickets.