View previous topic :: View next topic |
Author |
Message |
Ryan
Joined: 25 Feb 2016 Posts: 110
|
Posted: Thu Nov 23, 2023 11:27 am Post subject: Attempt to emit 32-bit instruction in /64 mode |
|
|
Hi all,
I'm porting a 32 bit app to 64 bit and on switching on debug, I get the following error message when building;
*** Attempt to emit 32-bit instruction in /64 mode
This is in a C++ file compiled with SCC. I understand that SCC is not really supported any more but I'd like to track down where the issue is coming from and see if I can work around it.
Paul previously helped port a very similar codebase previously and I do recall there were some of these errors in there. My memory is that they were resolved somehow as we now build that other codebase with debug.
I'm hoping I can dig and resolve these as well.
Thanks in advance
Ryan |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7933 Location: Salford, UK
|
Posted: Thu Nov 23, 2023 1:20 pm Post subject: |
|
|
Ryan
We are willing to look at bugs for 64 bit SCC but at the moment we may not always aim to provide a fix.
I will send you a private message.
Paul |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
dgurok
Joined: 26 May 2011 Posts: 66
|
Posted: Fri Dec 01, 2023 4:05 pm Post subject: |
|
|
I can also reproduce the problem.
The problem is caused by using some headers. These three headers provide e.g. this error.
Code: | #include <fstream.h> // <---- *** Attempt to emit 32-bit instruction in /64 mode
// #include <iomanip.h> // <---- *** Attempt to emit 32-bit instruction in /64 mode
// #include <iostream.h> // <---- *** Attempt to emit 32-bit instruction in /64 mode
void my_test() {
return;
} |
Code: | 4/0257 inline int ios::setf(int flags, int mask)
0009 }
*** Attempt to emit 32-bit instruction in /64 mode
1 ERRORS [<TEST> SCC/WIN32 Ver 4.60]
*** Compilation failed |
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7933 Location: Salford, UK
|
Posted: Fri Dec 01, 2023 6:58 pm Post subject: |
|
|
dgurok
Yes thank you. This is a known issue. At the moment alternative functions, to those requiring these, headers must be employed. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|