Welcome, Guest. Please login or register.

Author Topic: nonexisting symbol in SASC...(probably very basic stupid error)  (Read 2125 times)

Description:

0 Members and 2 Guests are viewing this topic.

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show only replies by Jose
Hi. This afternoon I tried to get an ImageFX gui for that HAM8 "friendlyness of a picture statistics" (whatever..) routine I made sometime ago. Since IFX docs and includes are all inclined towards SASC I decided to give it a try (mostly use VBCC here). I'm getting something like a link error about a missing symbol first referenced from sc.lib. The symbol's name is somewhat like __XCEXIT ...

Any ideas ? Already trying linking with sdtlib but same results...
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline PiR

  • Full Member
  • ***
  • Join Date: Apr 2003
  • Posts: 148
    • Show only replies by PiR
Re: nonexisting symbol in SASC...(probably very basic stupid error)
« Reply #1 on: May 11, 2006, 02:51:19 PM »
Hi Jose

I've checked this in the documentation this morning (unluckilly paper, so I cannot share it...)

This function is defined in the startup code and is used internally by the functions that are supposed to interrupt the process, like abort() and exit(). It shouldn't be called directly from the code.

If you experiance linking errors with __XCEXIT missing, it may happen only if you're not linking with the startup code (ie. making library), but you use, directly or indirectly, functions that may interrupt the proces. If so, such thing is not allowed, as the library is not allowed to terminate the process that called it, so it is good warning.

From myself - I think functions that can interrupt the process may be also io from stdlib, like printf(), as they check CTRL+C and by default terminate the process, if such detected.


Cheers
PiR
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show only replies by Jose
Re: nonexisting symbol in SASC...(probably very basic stupid error)
« Reply #2 on: May 16, 2006, 03:50:55 PM »
Hi. Only saw your reply now. Solved this last week by linking with c.o. That function was apparently being called by the IFX startup module itself.

Cheers
\\"We made Amiga, they {bleep}ed it up\\"