|
Again a BIG THANKS
to Bart as well as Jerone. I would not be this far at all with out
you guys! So to sum up where I am: Building a VC++.Net Windows Forms
Application(.NET) I have the compiler setup as: C/C++ General Additional
Include Directories Code Generation Multi-threaded
Debug DLL (/MDd) "C:\Dev\postgresql-8.1.4\src\include";"C:\Dev\libpqxx-2.6.7\include" Linker General Additional
Library Directories "C:\Dev\postgresql-8.1.4\src\interfaces\libpq\Debug";"C:\Dev\postgresql-8.1.4\src\interfaces\libpq";"C:\Dev\libpqxx-2.6.7\lib" Input Additional
Dependencies libpqxx_staticD.lib
ws2_32.lib wsock32.lib My stdafx.h file is: // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently #pragma once #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows
headers // C RunTime Header Files #include <stdlib.h> #include <malloc.h> #include <memory.h> #include <tchar.h> #include <afxwin.h> #include <windows.h> #undef min #undef max #include <pqxx/pqxx> using namespace PGSTD; using namespace pqxx; // TODO: reference additional headers your program requires here When I try and compile I am now getting a linker error: inking... nafxcwd.lib(afxmem.obj) :
error LNK2005: "void __cdecl operator delete(void *)" ([EMAIL PROTECTED]@Z)
already defined in msvcrtd.lib(MSVCR71D.dll) LINK : warning LNK4075:
ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification nafxcwd.lib(apphelp.obj) :
error LNK2001: unresolved external symbol __mbctype nafxcwd.lib(filelist.obj) :
error LNK2001: unresolved external symbol __mbctype nafxcwd.lib(viewedit.obj) :
error LNK2019: unresolved external symbol __mbctype referenced in function
"protected: long __thiscall CEditView::OnFindReplaceCmd(unsigned
int,long)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) nafxcwd.lib(appcore.obj) : error
LNK2001: unresolved external symbol ___argv nafxcwd.lib(appcore.obj) :
error LNK2001: unresolved external symbol ___argc C:\Documents and
Settings\doyleb\My Documents\Visual Studio Projects\testing4\Debug\testing4.exe
: fatal error LNK1120: 3 unresolved externals With Barts help the setup with out the stdafx.h file worked great
for a console app. Brian |
_______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
