المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : X64 compilation problems



C++ Programming
04-06-2009, 10:41 AM
I have some problems when porting a WIN32 project into 64-Bit using VS2008.
1. I am using many third party libraries in my WIN32 project in which one of them uses old iostream functions. It gives me linker error LNK1104: cannot open file 'LIBCIMT.LIB' when I compile in X64 mode. I have the source code of the library with me. I tried recompiling the third party library using the new iostream header files under VS2008, but it gives me compilation errors which seems to be some in-compatibility issues of new and old iostreams.

2. In my project, I use both SQL and MAPI. The project compiles and runs perfectly in WIN32 mode. But the same gives me compilation error C2371: 'BOOKMARK' : redefinition; different basic types
Here is a sample code to reproduce the problem.

#include "stdafx.h"

#include
#include
#include
#include

int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}

All the header files are from the VS2008 installation folder.


How do I solve these problem with minimal changes in my code

Thanks in advance

cheers
Varghese Paul