Hello grischka,

Thankyou, but this does not seem to work.  I just tried adding:

    __declspec(dllimport) extern WINDOW *stdscr;

...to the start of my main.c, and it did not change the resulting program behaviour. (No warnings or errors either, and I'm using -Wall).

[Screenshot. Let's see if the mailing list supports this.]

Regards, Hales



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


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

Reply via email to