1
Programming / Parameter passing to dll - difference VAC / GCC - varargs
« on: January 20, 2024, 01:50:50 pm »
I've a dll which exports functions which I wanna call from VAC, GCC (and Watcom) compiled programs.
Problem is gcc seems to pass varargs different than VAC.
I've a function in the dll something like
I found here http://trac.netlabs.org/odin32/ticket/19 that Dmitriy noted about a problem with gcc and varargs but can't find a solution.
Any hints?
Problem is gcc seems to pass varargs different than VAC.
I've a function in the dll something like
Code: [Select]
ULONG _System xPmPrintf(char *Format, ...);
which works when called by programs compiled with VAC3.65 but produces garbage when called by a gcc test program (except the first arg). I found here http://trac.netlabs.org/odin32/ticket/19 that Dmitriy noted about a problem with gcc and varargs but can't find a solution.
Any hints?