Author Topic: Installing 'graphics,h' and other legacy C libraries in Codeblocks  (Read 8280 times)

colmt

  • Guest
Hi

I'm running Kubuntu 10,10 (KDE) and CodeBlocks Version 8.2. I'm new to CodeBlocks and to GCC on Kubuntu, Can any one advise me which directories I should save graphics.h and other archive libraries (extension *.a) to and the correct procedure for 'Build Options'  menu choices.

I am as yet not a Visual C programmer, so I wish to install legacy C/C++ libraries and use all the old non-object oriented functions.

Any advise

Many Thanks

ColmT

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: Installing 'graphics,h' and other legacy C libraries in Codeblocks
« Reply #1 on: January 23, 2011, 08:42:48 pm »
Ask on a site that Supports your compiler and your OS Distro!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Installing 'graphics,h' and other legacy C libraries in Codeblocks
« Reply #2 on: January 23, 2011, 08:44:42 pm »
which directories I should save graphics.h and other archive libraries (extension *.a) to and the correct procedure for 'Build Options'  menu choices.
It doesn't matter where you save those files. All you need to do is setting up the project options correctly.
Thus: Add the path to the header files as include directory under compiler options and add the path to the libraries to the include dirs of the linker options. In addition don't forget to link against the libraries in quesdtion, talking the correct order into account in the libraries options. Furthermore have a look at the C::B documentation accordingly.

Also, if you are a beginner it may help if you try to compile your project on the command line first to make sure which options to set.
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