tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] tcc-git compilation error


From: Gustavo Bruzza
Subject: [Tinycc-devel] tcc-git compilation error
Date: Thu, 6 May 2010 07:53:24 -0700

Hi all,

I compiled tcc from the tinycc.git repository, both using gcc and tcc itself.  I'm running tcc on windows.  I compiled 3 different versions from the repository with the same results.  I found that the code below doesn't compile with these mob versions but it does compile with the official 0.9.25 release and with gcc.  The error I get is 
a.c:11: error: ';' expected (got ".Luid").  I hope someone can point my mistake or confirm this as a bug.

Thank you for your attention and my best regards,

--Gustavo

#include <windows.h>

int main(void){
        TOKEN_PRIVILEGES tp;

        printf("sizeof tp: %d\n",sizeof(tp));

        tp.PrivilegeCount=1;
        tp.Privileges[0].Luid.LowPart=1;
        tp.Privileges[0].Luid.HighPart=2;
        tp.Privileges[0].Attributes=3;

        return(0);
}

reply via email to

[Prev in Thread] Current Thread [Next in Thread]