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 error: Can't complete RBP relative address

 
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 Jul 02, 2018 12:47 pm    Post subject: scc error: Can't complete RBP relative address Reply with quote

We are porting a GUI application from 32 to 64 bit which consists of ftn95 and C/Cpp code. When trying to compile some C/Cpp code we run into the error "Can't complete RBP relative address". Please look at the file string_array.cpp following.


Code:

#include <stdio.h>

char* text_gui[16][2];
 
void myproc(char* mystring) {
  printf("myproc: mystring=%s\n",mystring);
  return;
};


main () {
  text_gui[0][0] = "Hello!";
  myproc(text_gui[0][0]);
  return 0;
}

This code compiles for the 32 bit version of scc:

Code:

scc string_array.cpp /List

results in an object file of positive length for SCC/WIN32 Ver 4.07.

However, this does not work when trying to generate a 64 bit object file. As a result of calling
Code:

scc string_array.cpp /List /64

following lines are displayed
Code:


[Silverfrost SCC/WIN32 Ver 4.07 Copyright (c) Silverfrost Ltd 2018]
   0015   }
*** Can't complete RBP relative address
*** Can't complete RBP relative address
    2 ERRORS  [<STRING_ARRAY> SCC/WIN32 Ver 4.07]
*** Compilation failed


Moreover the length of object file STRING_ARRAY.OBJ is zero.

If we move declaration

Code:

char* text_gui[16][2];

into the main block then the 64 bit compile works and produces an object file of positive length. We could, as well, generate a 64 bit exe file from the latter code which executes as expected.

Regards,
Dietmar
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Jul 02, 2018 1:06 pm    Post subject: Reply with quote

Dietmar

This particular issue was noted and fixed last week so it will just be a matter of getting a new SCC to you.

On a broader issue, SCC will accept /64 on the command line but 64 bit compilation is not yet generally supported.
Back to top
View user's profile Send private message AIM Address
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 279

PostPosted: Mon Jul 02, 2018 2:08 pm    Post subject: Reply with quote

Paul,

this is good news. I am very interested in this fix. Is there already a date when the new version of scc will be available and how would I download this new version?

Thanks,
Dietmar
Back to top
View user's profile Send private message
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