Compilation error - missing zlib.h

后端 未结 5 1362
灰色年华
灰色年华 2021-01-30 10:22

I am trying to compile software on Blue Gene Q using IBM XL compilers and I got this error message:

\"iostreams/zlib.cpp\", line 19.10: 1540-0836 (S) The #includ         


        
5条回答
  •  不思量自难忘°
    2021-01-30 10:48

    I also had the same problem. Then I installed the zlib, still the problem remained the same. Then I added the following lines in my .bashrc and it worked. You should replace the path with your zlib installation path. (I didn't have root privileges).

    export PATH =$PATH:$HOME/Softwares/library/Zlib/zlib-1.2.11/
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/Softwares/library/Zlib/zlib-1.2.11/lib/
    export LIBRARY_PATH=$LIBRARY_PATH:$HOME/Softwares/library/Zlib/zlib-1.2.11/lib/
    export C_INCLUDE_PATH=$HOME/Softwares/library/Zlib/zlib-1.2.11/include/
    export CPLUS_INCLUDE_PATH=$HOME/Softwares/library/Zlib/zlib-1.2.11/include/
    export PKG_CONFIG_PATH=$HOME/Softwares/library/Zlib/zlib-1.2.11/lib/pkgconfig
    

提交回复
热议问题