forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

scc: _fsopen missing

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 279

PostPosted: Mon Dec 09, 2019 12:16 pm    Post subject: scc: _fsopen missing Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7912
Location: Salford, UK

PostPosted: Mon Dec 09, 2019 6:11 pm    Post subject: Reply with quote

Dietmar

Thank you for the feedback. I have made a note of this omision.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7912
Location: Salford, UK

PostPosted: Tue Dec 10, 2019 11:45 am    Post subject: Reply with quote

This function has now been added to salflibc64.dll for the next release.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group