Hello Pelle,
when reading in a book, that if extern is not declared, the linker
should give a warning,
I tried the code with an old LCC version.
Here the result was the same as with PellesC.
But with Boland compiler it gives a warning and the
output is 1111 !
(Compiled as C++, I think).
The problem arrived, when I was wondering, why my
windowhandler was corrupt, what itself was difficult do
discover. So messages were sent to the wrong window,
because I had declared the HWND with a same name in another
module, what mixed up the values of the handlers.
Holger.
-------- V IDE --------
D:\Progs\Borland\BCC55\bin\make -fD:\Progs\Vide\projects\test\Makefile.v
> MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
> D:\Progs\Borland\BCC55\bin\ILink32 @MAKE0000.@@@
> Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
! Warning: Public symbol '_iTest' defined in both module D:\PROGS\VIDE\PROJ
* ECTS\TEST\TESTMODULE.OBJ and D:\PROGS\VIDE\PROJECTS\TEST\MAIN.OBJ
---- Make finished ----