Sujet : Re: FreeTDS port to VMS V9.x on x86?
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vmsDate : 06. Jun 2025, 16:26:26
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <101v1b2$29494$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Mozilla Thunderbird
On 6/6/2025 11:18 AM, Arne Vajhøj wrote:
On x86-64:
$ typ zzz.c
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
char *ptr;
vasprintf(&ptr,"%d,%d",1,2);
exit(0);
}
$ cc zzz
vasprintf(&ptr,"%d,%d",1,2);
.......................^
%CC-W-CVTDIFTYPES, In this statement, "1" of type "int", is being converted to "long pointer to char".
at line number 7 in file DKA0:[arne.freetds]zzz.c;1
vasprintf(&ptr,"%d,%d",1,2);
^
%CC-E-TOOMANYARGS, In this statement, "vasprintf" expects 3 arguments, but 4 are supplied.
at line number 7 in file DKA0:[arne.freetds]zzz.c;1
On Alpha:
$ typ zzz.c
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
char *ptr;
vasprintf(&ptr,"%d,%d",1,2);
exit(0);
}
$ cc zzz
vasprintf(&ptr,"%d,%d",1,2);
^
%CC-I-IMPLICITFUNC, In this statement, the identifier "vasprintf" is implicitly declared as a function.
at line number 7 in file DISK2:[ARNE]zzz.c;1
$ link zzz
%LINK-W-NUDFSYMS, 1 undefined symbol:
%LINK-I-UDFSYM, VASPRINTF
%LINK-W-USEUNDEF, undefined symbol VASPRINTF referenced
in psect $LINK$ offset %X00000030
in module ZZZ file DISK2:[ARNE]zzz.OBJ;1
Arne