News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Installing 'graphics,h' and other legacy C libraries in Codeblocks

Started by colmt, January 23, 2011, 07:22:37 PM

Previous topic - Next topic

colmt

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

stahta01

Ask on a site that Supports your compiler and your OS Distro!

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

MortenMacFly

Quote from: colmt on January 23, 2011, 07:22:37 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]