tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Tinycc-devel Digest, Vol 168, Issue 1


From: zebbediah beck
Subject: Re: [Tinycc-devel] Tinycc-devel Digest, Vol 168, Issue 1
Date: Sat, 1 Apr 2017 21:04:07 +0000

Hi Zeb here 

is this not an example of not including the windows static librarys

Thankz
Sent via my BlackBerry from Vodacom - let your email find you!

-----Original Message-----
From: <address@hidden>
Sender: Tinycc-devel <address@hidden>
Date: Sat, 1 Apr 2017 12:00:22 
To: <address@hidden>
Reply-To: <address@hidden>
Subject: Tinycc-devel Digest, Vol 168, Issue 1

Send Tinycc-devel mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.nongnu.org/mailman/listinfo/tinycc-devel
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tinycc-devel digest..."


Today's Topics:

   1. Why doesn't this work in TCC? (Ben Hutchinson)
   2. Re: Why doesn't this work in TCC? (Austin English)
   3. Re: Why doesn't this work in TCC? (Christian Jullien)


----------------------------------------------------------------------

Message: 1
Date: Fri, 31 Mar 2017 21:59:00 -0700
From: Ben Hutchinson <address@hidden>
To: address@hidden
Subject: [Tinycc-devel] Why doesn't this work in TCC?
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset="utf-8"

I just tried this code:

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




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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.nongnu.org/archive/html/tinycc-devel/attachments/20170331/b63d9fbe/attachment.html>

------------------------------

Message: 2
Date: Sat, 1 Apr 2017 00:23:38 -0500
From: Austin English <address@hidden>
To: address@hidden
Subject: Re: [Tinycc-devel] Why doesn't this work in TCC?
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset=UTF-8

On Fri, Mar 31, 2017 at 11:59 PM, Ben Hutchinson <address@hidden> wrote:
> I just tried this code:
>
> #include <windows.h>
> void _start(void){
>     HWND wnd;
>     HDC dc;
>     wnd = 0;
>     dc = GetDC(wnd);
>     ReleaseDC(wnd,dc);
>     ExitProcess(0);
> }
>
>
>
>
> 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?
>
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>

As a starting point, have you tried doing a hello world with just
windows.h included? There very well may be a regression that broke
something that is in windows.h.

-- 
-Austin
GPG: 14FB D7EA A041 937B



------------------------------

Message: 3
Date: Sat, 1 Apr 2017 07:38:21 +0200
From: "Christian Jullien" <address@hidden>
To: <address@hidden>
Subject: Re: [Tinycc-devel] Why doesn't this work in TCC?
Message-ID: <address@hidden>
Content-Type: text/plain; charset="utf-8"

Hi Ben,

 

You?re missing Windows libs: tcc foo.c -luser32

 

From: Tinycc-devel [mailto:address@hidden On Behalf Of Ben Hutchinson
Sent: samedi 1 avril 2017 06:59
To: address@hidden
Subject: [Tinycc-devel] Why doesn't this work in TCC?

 

I just tried this code:

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





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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.nongnu.org/archive/html/tinycc-devel/attachments/20170401/ef024be4/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


------------------------------

End of Tinycc-devel Digest, Vol 168, Issue 1
********************************************



reply via email to

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