[Insight-users] single header for multiple source files

barbababa tonimuusimaki at gmail.com
Thu Jul 14 17:12:54 EDT 2011


Dear all,

i have been up to now writing multiple itk functions to external
application. Everything worked
fine when i wrote the functions as separate header files and included them
all in main source file.
Until i got an error message concerning internal heap limit with vc6 and i
can not inrease the /zm option 
any more.
So i decided to make all the functions as separate source files and combine
them all into one dll file.
But now in the main source file i need to define the header files for the
external program , which contains all the type definitions and classes of
that program. And yet i need to include those header files to individual itk
function source files as well because otherwise those classes etc. are not
recognized. And yet if i do include them i got an error message:

DiscreteGaussianFilter.obj : error LNK2005: _PlugInStartup already defined
in ITKMain.obj

I guess one can wonder if this forum is the best place for this question but
i would greatly
appreciate any advices! How to share header files without redefinitions? Or
is this the correct
way to do this all whatsoever? And why does it complain about the heap
limit, the final dll
is only less than 5 mb !?

Thanks in advance!


--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/single-header-for-multiple-source-files-tp6584904p6584904.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list