[vtkusers] lib or dll?
Paul
paulstjohn at cogeco.ca
Mon Jan 20 12:27:27 EST 2003
Here's a link that describes changes to vtkwin32header to build a vtk as a
static lib.
http://public.kitware.com/pipermail/vtkusers/2002-September/013413.html
-psj.
-----Original Message-----
From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com]On Behalf Of sbe
Sent: 20/01/2003 10:45 AM
To: Joseph Griffin
Cc: vtkusers at public.kitware.com
Subject: Re: [vtkusers] lib or dll?
thank you for your help but it did not work, it looks like the header
force to do a dynamic link?!
if you look in vtkwin32header.h:
it include vtkconfigure.h which has:
#define BUILD_SHARED_LIBS
#ifdef BUILD_SHARED_LIBS
#define VTKDLL
#else
#define VTKSTATIC
#endif
then back to vtkwin32header.h:
#if defined(WIN32) && !defined(VTKSTATIC)
#define VTK_EXPORT __declspec( dllexport )
........
#else
#define VTK_COMMON_EXPORT
......
so, I don't know which these are doing there? even if I comment out the
BUILD_SHARED_LIBS and leave VTK_STATIC, it still search for dll (I did
rename vtkcommon.dll to vtkcommon2.dll to test that).
Anyways, that's not my main problem, but if it could be solve, I would
appreciate any help!
thank you.
----- Original Message -----
From: Joseph Griffin
To: sbe
Cc: vtkusers at public.kitware.com
Sent: Friday, January 17, 2003 6:39 PM
Subject: RE: [vtkusers] lib or dll?
Serge,
Try this:
In the menus go Tools->Options->Show directories for:"Library Files" and
add the directory path to the libs.
Now go Project->Settings, click the Link Tab and type in the name of
each *.lib that is in the directory path you added above (except the Python
libs of course)
You can also use CMake to have a project generated for you
auto-magically. Joseph
-----Original Message-----
From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com]On Behalf Of sbe
Sent: Friday, January 17, 2003 3:18 PM
To: vtkusers at public.kitware.com
Subject: [vtkusers] lib or dll?
Hi,
When using vc 6.0 under windows, I create a simple project, add an
example picked from the examples directory, add all the static library
(*.lib), then run it and the application ask for dll!? how come? how can I
link statically without using the dll's?
Serge Béland
Responsable produit, station d'analyse
tél: (418) 683-6222 poste 202
1-866-HARFANG
fax:(418) 683-7032
http://www.harfangmicro.com
HARFANG Microtechniques inc.
420 Boul. Charest Est Suite 200
Quebec (Que)
G1K 8M4
Canada
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030120/86be3243/attachment.htm>
More information about the vtkusers
mailing list