Sign in to follow this  
Enerjak

IA64 lonker error.

Recommended Posts

I've re-installed Win vista and re-installed everything. Now I'm having a problem compiling. i'm getting this linker error:

>MSVCRTD.lib(msvcrtd.dll) : fatal error LNK1112: module machine type 'IA64' conflicts with target machine type 'X86'
1>Build log was saved at "file://g:\Stuff\SavedNeededThings\My DOCS\Visual Studio 2008\Projects\Cor_Engine_Main_App\Cor_Engine_Main_App\Debug\BuildLog.htm"
1>Cor_Engine_Main_App - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


it's already a made project. so do i have to just start all over again? or is there a way to set it to use x64?

Share this post


Link to post
Share on other sites
A 'lonker' error, huh? [lol]

It looks like you're trying to link dissimilar object formats, one for x86 and another for IA64. Change the target of one of them (whichever isn't the one you want) and rebuild it.

Share this post


Link to post
Share on other sites
It's a one sentence answer.. no reason to tell the guy to Google it.

Right click project, Properties, Configuration Manager, Platform, New, x64

Share this post


Link to post
Share on other sites
Quote:
Original post by Enerjak
I've re-installed Win vista and re-installed everything. Now I'm having a problem compiling. i'm getting this linker error:

*** Source Snippet Removed ***

it's already a made project. so do i have to just start all over again? or is there a way to set it to use x64?


You're mixing IA64 and x86 code. But even worse, you want it to use x64...
IA64 != x64
IA64 stands for Intel Architecture 64, which belongs to the Intel Itanium family, incompatible with common desktop PCs

x86_64/x64/AMD64/EMT64 is a different thing, 64-bit too, but it's backwards compatible with x86, although you can't mix both codes anyway.
You need to compile a program as x64, and have both a x64 CPU- and OS-enabled

To investigate the problem, you can go to the project propierties (Alt-F7)
But I can't help you much with the little info you provided.
Also make sure you set up the SDK folders properly

Cheers
Dark Sylinc

Edit:
"The already made project", has provided source code?
Or is it a library?
Do you have WinVista x64?
Could you provide the BuildLog?

Share this post


Link to post
Share on other sites
yes, vista 64, and i can give you the build log.



Build Log Build started: Project: Cor_Engine_Main_App, Configuration: Debug|Win32
Command Lines Creating temporary file "g:\Stuff\SavedNeededThings\My DOCS\Visual Studio 2008\Projects\Cor_Engine_Main_App\Cor_Engine_Main_App\Debug\RSP00000832922244.rsp" with contents
[
/OUT:"G:\Stuff\SavedNeededThings\My DOCS\Visual Studio 2008\Projects\Cor_Engine_Main_App\Debug\Cor_Engine_Main_App.exe" /INCREMENTAL /MANIFEST /MANIFESTFILE:"Debug\Cor_Engine_Main_App.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"G:\Stuff\SavedNeededThings\My DOCS\Visual Studio 2008\Projects\Cor_Engine_Main_App\Debug\Cor_Engine_Main_App.pdb" /SUBSYSTEM:CONSOLE /DYNAMICBASE /NXCOMPAT /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

".\Debug\Cor_Engine_Main_App.obj"

".\Debug\stdafx.obj"

".\Debug\Cor_Engine_Main_App.exe.embed.manifest.res"
]
Creating command line "link.exe @"g:\Stuff\SavedNeededThings\My DOCS\Visual Studio 2008\Projects\Cor_Engine_Main_App\Cor_Engine_Main_App\Debug\RSP00000832922244.rsp" /NOLOGO /ERRORREPORT:PROMPT"
Output Window Linking...
MSVCRTD.lib(msvcrtd.dll) : fatal error LNK1112: module machine type 'IA64' conflicts with target machine type 'X86'
Results Build log was saved at "file://g:\Stuff\SavedNeededThings\My DOCS\Visual Studio 2008\Projects\Cor_Engine_Main_App\Cor_Engine_Main_App\Debug\BuildLog.htm"
Cor_Engine_Main_App -




also while we are on the subject.....i startedd a new console project and got these linker errors.



1>game.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
1>game.obj : error LNK2001: unresolved external symbol __RTC_InitBase
1>LINK : error LNK2001: unresolved external symbol _wmainCRTStartup
1>C:\Users\Ophiel\Documents\Visual Studio 2008\Projects\game\Debug\game.exe : fatal error LNK1120: 3 unresolved externals
1>Build log was saved at "file://c:\Users\Ophiel\Documents\Visual Studio 2008\Projects\game\game\Debug\BuildLog.htm"
1>game - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========




so, yea maybe i should of stayed with XP..... my CPU is x64 as i've ran Vista on it before and i don't think it'll work on an x86 CPU.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this