How to properly connect the C+++ support library



  • Rocked the NTL library. http://shoup.net/ntl/doc ) In the Windows Installation Tutor, a static library based on headline files and their applications was shown. What do we do next? How, for example, do we connect this library with zinclude? I have MinGW on CodeBlocks. Can an article or advice be included as to how such libraries can be properly connected. Here is a reference to where this assembly is explained in .lib (I have no idea what to do next): http://shoup.net/ntl/doc/tour-win.html



  • For mingw (which GCC + GNU ld), which I think is used in your codeblocks:

    1. use the right path to .h-Fails, in codeblocks, this is "Project" - "Build Options" - "Search directories" - "Compiler." Or directly to the gcc through the flag. -I: gcc -I/путь/до/каталога/c/заголовками/библиотеки -I/путь/до/другой/библиотеки/ ... -c ваш_файл.c

    2. Use the right path to the library. In the case of a static library, the way to .a/.lib may be indicated in full:

      gcc -o your_complete file your_file.o / tumor/before/libsome.a

    Please note that library files should be disclosed after objective files, otherwise you're risking getting http://www.mingw.org/wiki/specify_the_libraries_for_the_linker_to_use ♪

    In codeblocks, the way to the libraries is on a neighbouring deposit from the compiler ' s route from p.1

    Here. http://www.learncpp.com/cpp-tutorial/a3-using-libraries-with-codeblocks/ CodeBlocks are shown with pictures (English)




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2