[Dcmlib] Compiling simple application under windows
Mathieu Malaterre
mathieu.malaterre at kitware.com
Wed Jul 6 19:46:10 CEST 2005
Derek,
You really *really* want to use cmake in this case (unless you do an
install of gdcm). Also you don't want to do an in-source build, this
does not make sense.
Anyway the file you are looking for is in the binary (or in the source
tree if you do in-source build). Look for gdcm-bin/gdcmConfigure.h
If you use cmake you have to add the following line:
INCLUDE_DIRECTORIES(
${GDCM_BINARY_DIR} # for gdcmConfigure.h
...
)
HTH
Mathieu
Derek Magee wrote:
> I'm trying to compile a very simple application under MSVC.NET and I get
> the error message:
>
> c:\Creatis\gdcm\include\gdcm\gdcmCommon.h(22) : fatal error C1083:
> Cannot open include file: 'gdcmConfigure.h': No such file or directory
>
> Which is logical, as this file doesn't exist anywhere in the windows
> (v1.0) distribution (or the unix one for that matter). Presumably this
> is automatically created, but how? I've tried CMake on the sources and
> it throws up errors.
>
> Thanks a lot
>
> Derek
>
> P.S. The program is simply:
>
> #include <gdcmDirList.h>
>
> int main(int argc, char* argv[])
> {
> return 0;
> }
>
> _________________________________________________________________
> It's fast, it's easy and it's free. Get MSN Messenger 7.0 today!
> http://messenger.msn.co.uk
>
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>
More information about the Dcmlib
mailing list