I'm having trouble including standard header files like iostream.h and fstream.h. On my system, under usr/include/c++/4.3
, none of the files have the ".h" extension (for example, it's just "iostream" not "iostream.h"). That would be fine and dandy, but I'm trying to use another library, DCMTK, which does things like #include<iostream.h>
. Unfortunately, there's no such thing as "iostream.h" on my system, only "iostream", meaning my compiler gives me errors like error: iostream.h: No such file or directory
.
I guess I could create softlinks from iostream.h to iostream, but that seems like it might create, first of all, troubles down the road, and second of all, be really irritating. Is there another solution?
Just for completeness, the command I'm giving to compile the thing is
g++ -o gc_on_ctp -g -Wall -Idicom/include -Ldicom/lib
gc_on_ctp.cpp -ldcmdata
As you can imagine, the header file is located under dicom/include, and the library is under dicom/lib, named libdcmdata.a.
Thanks!