[Top][All Lists]

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

[Tinycc-devel] Win32

From: Eric Chubb
Subject: [Tinycc-devel] Win32
Date: Tue, 12 Sep 2006 10:46:14 +0100

Hi all, 

I'm having a problem using certain Win32 functions under TCC. I am writing a
version of the unix utility 'uptime' for Windows, which relies on the Windows
API function GetTickCount 
(), which retrieves the number of milliseconds since last boot. I then hope
to display the output via the MessageBox(HWND,char *,char *,uint) function,
but when I go to compile the program I get the following: 

tcc: undefined symbol 'GetTickCount' 
tcc: undefined symbol 'MessageBoxA' 

Is this because I have not got my linking paths set up correctly( I copied all
the headers in the include/winapi directory to the standard include directory)
or because the TCC standard library does not include these functions. I believe
they do have some of the functions, as when I accidentally entered three 
in MessageBox instead of the required four, TCC was able to report that I had
not supplied enough parameters, so the function prototype is obviously defined

reply via email to

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