PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Which library is best with GapiDraw?

Thanks for a very informative response.

I am currently trying to use the MFC libraries as I already have them installed on my system. However I am getting the following linker errors.

Code:
nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in MSVCRTD.lib(MSVCRTD.dll)
nafxcwd.lib(afxmem.obj) : warning LNK4006: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in MSVCRTD.lib(MSVCRTD.dll); second definition ignored
Creating library Debug/Warehouse.lib and object Debug/Warehouse.exp
nafxcwd.lib(timecore.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc


These are the libs that I am using.
Code:
gd104.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib


Have you run across a similiar problem? Thanks in advance.
You would be better off starting a new project in eVC (or in VC+ for that matter), and in the wizard specify you want to use the MFC classes.

If you don't want or cannot use a new project, create one anyway, look what are all the includes (headers and libs) and copy that into your current project.

I personally cannot stand the MFC classes, but to each his own.

--Eric
From the replies, I gather that most developers use non-MFC libraries. Do you use STL, or other? It would be interesting to do a poll on what people use.
efortier wrote:
You would be better off starting a new project in eVC (or in VC+ for that matter), and in the wizard specify you want to use the MFC classes.
--Eric


I have tried this approach but when ever I add the GapiDraw lib, I get the duplicate symbol linker error mentioned above. I wonder if I am missing a precompiler declaration or if my include path order is incorrect. If anyone can send me a copy of their project file, it would be greatly appreciated. Thanks in advance.
Pejo Software - Per · 27 Nov 2002, 16:22 UTC