|
|
Home » Developing U++ » U++ Developers corner » Windows XP64
Windows XP64 [message #9465] |
Wed, 09 May 2007 20:49  |
|
I tried to build for Winx64 with MSVC8
I fight for 2h for compile my App with succes but
I canot link for x64 it shows me that target machine x86 conflicts with x64
Any suggestions ?
-
Attachment: MSC8x64.bm
(Size: 1.07KB, Downloaded 353 times)
|
|
|
|
Re: Windows XP64 [message #9469 is a reply to message #9468] |
Thu, 10 May 2007 10:19   |
|
1)
There is a lot wrong size casts
C:\upp\uppsrc\Core/String.h(625) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
C:\upp\uppsrc\CtrlLib\LineEdit.cpp(231) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
C:\upp\uppsrc\CtrlLib\DocEdit.cpp(58) : warning C4244: 'argument' : conversion from '__int64' to 'const int', possible loss of data
but i can handle this
2) I had to correct many things in Core like assembler inlines
but i started from this
#ifdef PLATFORM_WIN32
#define DIR_SEP '\\'
#define DIR_SEPS "\\"
#define PLATFORM_PATH_HAS_CASE 0
#ifndef PLATFORM_WINCE
#include <io.h>
#endif
#ifndef PLATFORM_MFC // just mini Windows headers
#ifdef COMPILER_MSC
#ifndef CPU_ARM
#ifndef _AMD64_
#ifndef _X86_
#define _X86_
#endif
#endif
I have inserted here
#ifndef _AMD64_ before #define _X86_ and i added -D _AMD64_ to compilation flags
At the end of succesfull compilattion
Linking...
C:\upp\out\MapMaker\MSC8x64.Debug_full.Gui.Main\$blitz.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine
type 'X86'
There were errors. (0:23.85)
Is You can see earlier file i supplyed in configuration, paths to x64 linker and compiller
I think there is lack of support for x64 in msvcbuilder.cpp
and IDE tries to link for x86 with x64 linker or something
Any suggestions how i can build for WIN64 with AMD64
PS. You dont have to have x64 windows to build for it, just download PlatformSDk and use x86_64 croostools
|
|
|
|
|
Re: Windows XP64 [message #9472 is a reply to message #9471] |
Thu, 10 May 2007 18:22   |
|
MapMaker: 20 file(s) built in (0:11.07), 553 msecs / file, duration = 15562 msecs, parallelization 99%
Linking...
C:\upp\out\MSC8x64.Debug_full.Gui\MapMaker.exe (5278720 B) linked in (0:09.40)
OK. (0:21.93)
Thanks for Help
works 
Could You include changes in future releases of TheIde ?
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 14:59:31 CEST 2025
Total time taken to generate the page: 0.00836 seconds
|
|
|