Re: Question about loading a DLL



On Aug 16, 12:30 pm, s...@xxxxxxxxxxxx wrote:
On Thu, 16 Aug 2007, mike.hfzh...@xxxxxxxxx wrote:
Date: Thu, 16 Aug 2007 18:09:32 -0000
From: mike.hfzh...@xxxxxxxxx
Newsgroups: comp.lang.tcl
Subject: Re: Question about loading a DLL

On Aug 16, 10:44 am, Ron Fox <f...@xxxxxxxxxxxx> wrote:
You probably need to
#include <tcl.h>

I have added it in the source file, I also put tcl.h in the hearder
files, but when I build the solution, i got "fatal error C1083: Cannot
open include file: 'tcl.h': No such file or directory"

Mike

#include <tcl.h>

note the <> brackets imply that the include file will be found in
"all the usual places". On BSD, one might have to add a
-I/usr/local/include option on the gcc line to specify a "local extension"
include directory be searched as well as "all the usual places". Your
mileage (system) may vary. (-I/opt/include, -I/usr/pkg/include, and
various other incantations).

can you explain what's BSD, GCC? where should I put" -I/usr/local/
include"
Thanks,

Mike

.



Relevant Pages

  • Re: Question about loading a DLL
    ... Newsgroups: comp.lang.tcl ... Question about loading a DLL ... On Aug 16, 10:44 am, Ron Fox wrote: ...
    (comp.lang.tcl)
  • Re: Question about loading a DLL
    ... Newsgroups: comp.lang.tcl ... Question about loading a DLL ... The error message you reported indicates that you are probably not using the Gnu C Compiler, but rather a different compiler, and also, likely on Windows, rather than BSD, so don't worry about 'BSD, and GCC, but rather, where the header files for Tcl are installed on your particular platform, and I'll almost guarantee that it is not /usr/local unless you are using MSYS/MingW. ...
    (comp.lang.tcl)
  • Re: Question about loading a DLL
    ... Newsgroups: comp.lang.tcl ... Question about loading a DLL ... the Gnu C Compiler, but rather a different compiler, ...
    (comp.lang.tcl)
  • Re: Dynamic DLL Loading or Static ?
    ... Loading it on demand the cuts down on load time for the app and on memory foot ... the DLL contains functionality that depends on specific platform features. ... There are two areas where static and dynamic loading differ. ... If you use static loading the DLL will be loaded and its Initialization ...
    (borland.public.delphi.nativeapi)
  • Re: Dynamic DLL Loading or Static ?
    ... A DLL is dynamic linked always: ... terms are load-time dynamic linking and run-time dynamic linking. ... > initialize this DLL and I'm loading it dynamically. ... This is the default value for WinXP SP1 and WinSrv03. ...
    (borland.public.delphi.nativeapi)