Welcome, Guest. Please login or register.

Author Topic: SAS/C compiling & linking  (Read 1556 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
SAS/C compiling & linking
« on: December 23, 2013, 03:52:12 PM »
I'm trying to compile this simple program:

include
main ()
{
  char *p = 0xbfd100;
  *p = 4;
 TimeDelay(0,0,31000);
  *p = 0;
 return (0);
}

It compiles nicely (minor warning about pointer type mismatch), but I don't know how to link it.
slink asks about DEFINE value for: __XCOVF _TimeDelay and ___base ?
If I enter some values, program gurus with #80000003
How to link it?
Better sorry than worry.
 

Offline Bobo68

  • Newbie
  • *
  • Join Date: Dec 2006
  • Posts: 43
    • Show only replies by Bobo68
Re: SAS/C compiling & linking
« Reply #1 on: December 23, 2013, 04:09:16 PM »
compiles through "starter_project"?
A4000T/060, CV64-3D, 146 GB SCSI
 

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
Re: SAS/C compiling & linking
« Reply #2 on: December 23, 2013, 04:53:33 PM »
Quote from: Bobo68;755097
compiles through "starter_project"?


thanks Bobo, that works like a charm.

edit: I seem to have another problem now, how to make a pause/delay of exactly N miliseconds?
« Last Edit: December 23, 2013, 06:17:40 PM by orange »
Better sorry than worry.