Hello everybody,

I have been a quiet reader for some time. I am new to Qt and C++ in general. I started a couple of days ago with this topic and have read and followed a lot of tutorials online. Many problems have been solved and many have come up. This forum came up a couple of times and has helped me a as well.

At the moment I try to compile a library for scrypt. It is plain C/C++. The project I am using is from http://www.tarsnap.com/scrypt.html

I have followed the steps in a different thread on here that explains in very high detail what to do.

Basically I opened the CMD and moved to the lib folder of the download. I then used

Qt Code:
  1. qmake -project
To copy to clipboard, switch view to plain text mode 

To get a .pro file, I opened the .pro file and changed it to TEMPLATE = lib, resulting into this .pro file:
Qt Code:
  1. ######################################################################
  2. # Automatically generated by qmake (3.0) Mon Jun 10 01:11:01 2013
  3. ######################################################################
  4.  
  5. TEMPLATE = lib
  6. TARGET = scrypt-1.1.6
  7. INCLUDEPATH += .
  8.  
  9. # Input
  10. HEADERS += scrypt_platform.h \
  11. lib/crypto/crypto_aesctr.h \
  12. lib/crypto/crypto_scrypt.h \
  13. lib/crypto/sha256.h \
  14. lib/scryptenc/scryptenc.h \
  15. lib/scryptenc/scryptenc_cpuperf.h \
  16. lib/util/memlimit.h \
  17. lib/util/readpass.h \
  18. lib/util/sysendian.h \
  19. lib/util/warn.h
  20. SOURCES += main.c \
  21. lib/crypto/crypto_aesctr.c \
  22. lib/crypto/crypto_scrypt-nosse.c \
  23. lib/crypto/crypto_scrypt-ref.c \
  24. lib/crypto/crypto_scrypt-sse.c \
  25. lib/crypto/sha256.c \
  26. lib/scryptenc/scryptenc.c \
  27. lib/scryptenc/scryptenc_cpuperf.c \
  28. lib/util/memlimit.c \
  29. lib/util/readpass.c \
  30. lib/util/warn.c
To copy to clipboard, switch view to plain text mode 

However, when I try to compile it I get a few error message:
http://i.imgur.com/EPeS4Wp.png

My compiler settings are:
http://i.imgur.com/a6lxSoA.png

I know that <stdlib.h> etc are very basic header files and that they should be available, I have not seen inttypes.h etc. I am not really sure how to go about this creating a library from a 3rd party project.
Basically I just want to compile this as a lib and then be able to use it as an external library in my main project.

I hope somebody could help me.

I am looking forward to reading your answers.

All the best,
Richard