|
-
Jun 21st, 2002, 11:02 AM
#1
Thread Starter
Junior Member
Compiling to 64-bit
Unfortunately, I find a little information on MSDN library about porting to 64-bit.
I wonder how to compile for 64-bit OS in VC++.NET.
In that case, I changed the preprocessor definitions of my project to _WIN64, but the compiler annoyed me that size_t is redefined in <new.h>
I opened the new.h and in the middle of the file, these several lines took my attention:
#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef _W64 unsigned int size_t;
#endif
#define _SIZE_T_DEFINED
#endif
I couldn`t understand the exact problem. But, I think I did something incomplete.
Please help!
Last edited by Techno-Logic; Jun 21st, 2002 at 11:06 AM.
-
Jul 7th, 2002, 03:26 AM
#2
Maybe yoú have some bad header included that doesn't test for the _SIZE_T_DEFINED macro but nevertheless defines size_t.
The macro is there to prevent just that.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jul 7th, 2002, 05:31 AM
#3
Monday Morning Lunatic
You need the 64-bit compiler, I think...
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|