From: David G. <dav...@po...> - 2003-12-13 19:05:44
|
Benjamin Riefenstahl <Ben...@ep...> wrote: >Hi David, > > >> Benjamin Riefenstahl <Ben...@ep...> wrote: >>>Just my 2 cents, > >David Gravereaux <dav...@po...> writes: >> 2 cents noted, but... > >;-) > >> extern "C" { >> #include <tcl.h> >> } >> >> The need for that would cause too many complaints. > >From C++ newbies. I always include my own C code in C++ like that. And you can continue to do that, and you shouldn't be troubled by any errors. And now to return to on-topic discussions, it looks to me like EXTERN in some places was only used for the extern "C" part, but got __declspec(dllexport) by accident. See tclWinProcs declared in win/tclWinInt.h: EXTERN TclWinProcs *tclWinProcs; I see the need for 'extern "C"', but not __declspec(dllexport) -- David Gravereaux <dav...@po...> [species: human; planet: earth,milkyway(western spiral arm),alpha sector] |