Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Right way to inlcude the CUnits header file?

Help
2011-04-07
2012-10-25
  • I have following problem:

    The documentation of CUNIT says:
    in CUnit Example: #include "CUnit/Basic.h" (http://cunit.sourceforge.net/exam
    ple.html)

    in http://cunit.sourceforge.net/doc/introduction.html stays always include "CUnit/xxx.h

    When I download the code (CUnit-2.1-2\CUnit\Headers), the header files are NOT
    whitin a CUnit directory also within a Headers directory. The examples within
    the downloaded packet include the header files directly too without CUinit/.

    Which is the right way? Is this a bug on the code or on the documentation?

    Thanks
    Mariano.-

     

  • Anonymous
    2011-04-07

    I think you should first install CUnit, to get the headers and libraries in
    the appropriate places,
    like

     /usr/local/include/CUnit/
    

    and

    /usr/local/lib
    

    .