Posted: Tue May 02, 2006 7:45 am Post subject: Error while Link Editing a SAS/C module
Hi,
I have compiled successfully the following SAS/C program but it gives an error while link edit. I beleive that I have included all libraries. Let me know if I am missing anything.
C Code:
Code:
#include<string>
#include<stdio>
#include<stdlib>
main()
{
char str(|80|),*p;
FILE *fopen(), *fp;
fp = fopen( "DD:TEST", "r");
p=(char *)fp;
printf("Enter the version no.");
scanf("%s",&str);
if(strncmp(str,p,10)==0)
{
printf("Version no %s is correct",str);
}
else
{
printf("Version no %s is not correct",str);
}
fclose(fp);
}
Link Edit error
Code:
SAS Institute 370 C Linkage Editor Preprocessor Release 5.50C
Copyright(c) 1992 by SAS Institute Inc. All Rights Reserved.
INCLUDE OBJECT(FILECMP)
ENTRY MAIN
LSCL700 Note: ENTRY control statement not processed by CLINK, passed on to link
NAME FILECMP(R)
LSCL102 Warning: Can't open file during autocall: ddn:SYSLIB(DFHEI1)
LSCL102 Warning: Can't open file during autocall: ddn:SYSLIB(DFHEAI)
LSCL102 Warning: Can't open file during autocall: ddn:SYSLIB(DFHEAI0)
IEW2322I 1220 1 ENTRY MAIN
IEW2322I 1220 2 NAME FILECMP(R)
IEW2456E 9207 SYMBOL DFHEI1 UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL DFHEAI UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE
IEW2456E 9207 SYMBOL DFHEAI0 UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE
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