www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22589] New: importC: Error: undefined reference to


          Issue ID: 22589
           Summary: importC: Error: undefined reference to
                    '__builtin_va_start' and '__builtin_va_end'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

Seen when trying to link test/compilable/vastartend.c
typedef __builtin_va_list __gnuc_va_list;
typedef __gnuc_va_list va_list;

int gzvprintf(const char *format, va_list va);

int gzprintf(const char *format, ...)
    va_list va;
    int ret;

    ret = gzvprintf(format, va);
    return ret;

// Added:
int main() { return 0; }

Dec 12 2021