Author Topic: Libraries  (Read 2546 times)

Offline Teofrostus

  • Single posting newcomer
  • *
  • Posts: 2
Libraries
« on: July 08, 2012, 02:11:05 am »
Hello,

I am completely new to programming in C++, and have just downloaded Code::Blocks. I just figured out how to get my compiler to work, but now am stuck at trying to include a library on my computer. I have downloaded a library someone developed, but I do not know where to put this library in order to get my program to compile, or how to include this library and it's functions to be used. I'm trying to follow this example:

http://www.shoup.net/ntl/doc/tour-ex4.html

However, whenever I compile, I'm told that there is no such file or directory on the include line. I imagine that there must be somewhere in Code::Blocks where I can set a path to the directory where I have placed the NTL library. Can someone point me in the right direction?

I'm using a Windows machine, and the compiler that came with Code::Blocks, GNU GCC/minGW.
« Last Edit: July 08, 2012, 02:13:05 am by Teofrostus »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: Libraries
« Reply #1 on: July 08, 2012, 05:37:47 am »
Only a similar issue, but same answer applies here, too:
http://forums.codeblocks.org/index.php/topic,16561.msg112393.html
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ