Linking Header Files to IDE MacOs

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Posts: 9
Joined: Fri, 2020-07-10, 11:19

Linking Header Files to IDE MacOs

#1 Post by jazibaskari » Sun, 2020-07-26, 20:18

Hi, I'm new to both C++ and this toolkit but I've successfully installed DCMTK using Homebrew. I now need to write the include statements at the top of my code to be able to use the necessary libraries but there are so many header files, is there an easy way to add them all quickly? Also, if I wanted to do a simple dcmdump, which header file from which directory in the DCMTK installation folder would I need to #include at the top of my code? Thanks.

J. Riesmeier
DCMTK Developer
Posts: 2284
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany

Re: Linking Header Files to IDE MacOs

#2 Post by J. Riesmeier » Fri, 2020-07-31, 16:04

It would certainly be a bad idea to "add all header files" to your program. If you want to make use of the print() method that is also used by dcmdump, including the main header file of the dcmdata module (dcmtk/dcmdata/dctk.h) should do.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest