I'm having problems with standard header files like iostream.h and fstream.h. On my system under usr/include/c++/4.3 none of the files have the extension “.h” (for example, it’s just “iostream” and not “iostream.h"). That would be fine and dandy, but I'm trying to use another DCMTK library that does things like #include<iostream.h> . Unfortunately, on my system there is no such thing as "iostream.h", only "iostream", that is, my compiler gives me errors like error: iostream.h: No such file or directory .
I think I could create softlinks from iostream.h to iostream, but it seems that this can create, first of all, problems in the future, and, secondly, it is really annoying. Is there any other solution?
Just for completeness, the command I give to compile a 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 under dicom / include, and the library is under dicom / lib, and is called libdcmdata.a.
Thanks!
user220878
source share