tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Odd problem when using variables defined in header fi


From: grischka
Subject: Re: [Tinycc-devel] Odd problem when using variables defined in header files for a .dll
Date: Wed, 08 Mar 2017 08:29:28 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

William Hales wrote:
Hello,

I have been having a problem with tcc when linking my project against a dll. The dll and my project share variables through a header file. This works fine with gcc, but when compiled with tcc my program and the dll end up with completely unique copies of the variables in the .h file, rather than sharing them.

tcc requires 'extern' on the application (program) side, for example

        __declspec(dllimport) extern int foo;

-- gr




reply via email to

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