Eric
2006-10-19 17:44:57 UTC
Hi,
I want to builds several librairies (lib and dll) by using the command
line (cl.exe, link.exe, ...) with VS2005.
I know the option /MACHINE:{X86, X64, IA64} for the linking but is
there a similar option for the compiler?
All librairies that I build are the same size witch is impossible.
Here are the command line that I use :
cl.exe @" /c /Wp64 /O2 /D _WIN64 /D _CRT_SECURE_NO_DEPRECATE /D
_CRT_NONSTDC_NO_DEPRECATE /D _CRT_NON_CONFORMING_SWPRINTFS /D NDEBUG /D
_WINDOWS /D _MBCS /Z7 /Zc:wchar_t "
and
link.exe " /MACHINE:IA64 /implib:" kernel32.lib user32.lib gdi32.lib
winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll
/incremental:no
libpath:"PATH" "
So, I think the link go to the right target but the problem is cl.exe.
How to specify to target machine ?
/bin/amd64/cl.exe can execute
/bin/ia64/cl.exe can't execute
Regards
Eric
I want to builds several librairies (lib and dll) by using the command
line (cl.exe, link.exe, ...) with VS2005.
I know the option /MACHINE:{X86, X64, IA64} for the linking but is
there a similar option for the compiler?
All librairies that I build are the same size witch is impossible.
Here are the command line that I use :
cl.exe @" /c /Wp64 /O2 /D _WIN64 /D _CRT_SECURE_NO_DEPRECATE /D
_CRT_NONSTDC_NO_DEPRECATE /D _CRT_NON_CONFORMING_SWPRINTFS /D NDEBUG /D
_WINDOWS /D _MBCS /Z7 /Zc:wchar_t "
and
link.exe " /MACHINE:IA64 /implib:" kernel32.lib user32.lib gdi32.lib
winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll
/incremental:no
libpath:"PATH" "
So, I think the link go to the right target but the problem is cl.exe.
How to specify to target machine ?
/bin/amd64/cl.exe can execute
/bin/ia64/cl.exe can't execute
Regards
Eric