[Top][All Lists]

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

[Tinycc-devel] Why doesn't this work in TCC?

From: Ben Hutchinson
Subject: [Tinycc-devel] Why doesn't this work in TCC?
Date: Fri, 31 Mar 2017 21:59:00 -0700

I just tried this code:

#include <windows.h>
void _start(void){
    HWND wnd;
    HDC dc;
    wnd = 0;
    dc = GetDC(wnd);

But then when I compiled it, I got this error:

tcc: error: undefined symbol 'address@hidden'
tcc: error: undefined symbol 'address@hidden'

I don't know where it's getting those errors. The windows.h include file is supposed to include all the correct definitions of all the Windows API functions. And the ones that aren't directly defined in windows.h are defined in other include files that windows.h has included in itself (there are other #include statements in windows.h). So they should ALL be defined, but these 2 very common ones for working with graphics, have either not been defined, or have been incorrectly defined (some kind of bug in one of the include files).

Can somebody here please tell me exactly why it's not working?

reply via email to

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