View previous topic :: View next topic |
Author |
Message |
DietmarSiepmann
Joined: 03 Jun 2013 Posts: 279
|
Posted: Mon Dec 09, 2019 12:16 pm Post subject: scc: _fsopen missing |
|
|
Hello,
_fsopen seems to be missing for the 64 bit version of scc. Program test_fsopen.cpp
Code: |
#include <STDIO.H>
#include <SHARE.H>
main () {
const char* pszAccess;
int ShareAccess;
FILE* fp;
pszAccess = "w+";
ShareAccess = SH_COMPAT;
fp = _fsopen("my_fsopen.txt", pszAccess, ShareAccess );
fclose(fp);
}
|
is compiled/linked via command
Code: |
scc test_fsopen.cpp /link /64
|
and produces the error message
Code: |
scc test_fsopen.cpp /link /64
[Silverfrost SCC/WIN32 Ver 4.20 Copyright (c) Silverfrost Ltd 2019]
NO ERRORS [<TEST_FSOPEN> SCC/WIN32 Ver 4.20]
[SLINK64 v2.10, Copyright (c) Silverfrost Ltd. 2015-2018]
Loading c:\ds\samples\salford_8.50\lgotemp@.OBJ
Creating executable file TEST_FSOPEN.EXE
The following symbols were not defined:
_fsopen
| .
If running the exefile generated following exception message occurs:
Code: |
Silverfrost 64-bit exception report on c:\ds\samples\salford_8.50\TEST_FSOPEN.EXE Mon Dec 09 12:10:38 2019
Call to missing routine - _fsopen at address 1c008790
Within file TEST_FSOPEN.EXE
in main at address 45
RAX = 000000000000001d RBX = 0000000000405090 RCX = 0000000000401573 RDX = 0000000000405090
RBP = 000000001c000000 RSI = 000000000040512f RDI = 00000000004014f0 RSP = 000000000240fe90
R8 = 0000000000401573 R9 = 00000000004023a8 R10 = 00000000000000e5 R11 = 000000000240f350
R12 = 0000000000000000 R13 = 0000000000000000 R14 = 0000000000000000 R15 = 0000000000405098
1c008790) int 9
| .
For the 32 bit version everything is ok (exe produced without missing routine _fsopen and exe works as expected).
Regards,
Dietmar |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8173 Location: Salford, UK
|
Posted: Mon Dec 09, 2019 6:11 pm Post subject: |
|
|
Dietmar
Thank you for the feedback. I have made a note of this omision. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8173 Location: Salford, UK
|
Posted: Tue Dec 10, 2019 11:45 am Post subject: |
|
|
This function has now been added to salflibc64.dll for the next release. |
|
Back to top |
|
 |
|