Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2002
    Posts
    1,046

    Using crypt function in c++ on linux

    Can anyone tell me in order to use the crypt function (amd md5sum) in a c++ program (g++ on CentOS assuming the cryptography libary is installed) what do I have to

    #include

    ?

    Thanks a bunch.
    ML

  2. #2
    Join Date
    Jan 2002
    Posts
    1,046
    I figured it out.

    you don't have to include anything but you'd have to specifically tell the compiler you're using the function

    g++ program.cpp -o program -lcrypt
    ML

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •