Menu

Problem with linking examples

2011-11-15
2013-05-30
  • Rafał Rutkowski

    I've downloaded matio-1.3.4 and I try to compile and run a few examples from http://na-wiki.csc.kth.se/mediawiki/index.php/MatIO.

    I comile by:

    g++ 01.cpp  -lmatio -lz

    but I have a warning:
    /usr/local/lib/libmatio.a(mat.o): In function `Mat_VarDelete':
    /d/cpp/matio/matio-1.3.4/src/mat.c:552: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'

    and I have no executable file. Why? What I do wrong?

    Best regards,
    Rafał

     
  • cch

    cch - 2011-11-17

    That warning will not stop the creation of an executable. Perhaps you can share the whole compiler output?

     
  • Rafał Rutkowski

    Ok, it works.
    I did something wrong

     

Log in to post a comment.