View Single Post
Old 04 August 2017, 03:18   #28
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
another WIP plugin, while linking says this:
Code:
SAS/C Amiga Compiler 6.58
Copyright (c) 1988-1995 SAS Institute Inc.
Slink - Version 6.58
Copyright (c) 1988-1995 SAS Institute, Inc.  All Rights Reserved.

Error 502: _malloc symbol - Distance for Reloc16 > 32768

  First Reference in Unit vhud.c at offset 00000098 in file 'vhud.o'
  To Unit malloc.o at offset 0000e558 in file 'LIB:sc.lib'

*** SMAKE: Error return from child process ***
there are 2x malloc in the src file (150kb)
Code:
line: 356:        lw = malloc(sizeof(struct IFPLUGIN_TAG));
....
line: 3279:         udata = malloc(sizeof(struct callback_TAG));
...
something is going to be too big? any idea?

#1) in the sasc manual, is a solution:
Code:
Compile the file with -code=far, or
            declare the function with the __far keyword.
not sure how to do that, but i'll have a look.

#2) in SCOPTIONS file, add: CODE=FAR

Last edited by emufan; 04 August 2017 at 03:52.
emufan is offline  
 
Page generated in 0.07466 seconds with 11 queries