This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TM4C129ENCPDT: Compiling the Zlib for tirtos

Part Number: TM4C129ENCPDT

Tool/software: TI C/C++ Compiler

Hi All,

How to use Zlib library with tirtos?  I need compression and decompression.

Thanks

  • Hi Akhilesh,

    No, TI-RTOS does not have any compression libraries.

    Todd

  • Hi Todd, I tried to add an external library (zlib) to the project but getting the linking error. 

    I added -

    C:\zlibz\zlib-1.2.3-lib\include to the compiler include path

    C:\zlibz\zlib-1.2.3-lib\lib\libz.a to the linker library path

    C:\zlibz\zlib-1.2.3-lib\lib\ to the linker directory search.

    But, during the linking time, I am getting unresolved symbols. 

    The same thing I did into CodeBlocks and everything works fine. It seems like CCS is not picking up the libz.a file somehow. Do you have any idea??

    Thanks

  • Are you using the TI or GCC compiler tools?

    Can you confirm by looking at the CCS build console that the library is actually getting passed to the linker? If you attach the complete build log that might help us identify where the issue might be.

  • I was using the ti 18.25 compiler. Right now I resolved it by including the source files in my project. It's working well.  I cant use the library as I need to change in source files.