Code::Blocks Forums

User forums => Help => Topic started by: colmt on January 23, 2011, 07:22:37 pm

Title: Installing 'graphics,h' and other legacy C libraries in Codeblocks
Post by: colmt on January 23, 2011, 07:22:37 pm
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
Title: Re: Installing 'graphics,h' and other legacy C libraries in Codeblocks
Post by: stahta01 on January 23, 2011, 08:42:48 pm
Ask on a site that Supports your compiler and your OS Distro!

Tim S.
Title: Re: Installing 'graphics,h' and other legacy C libraries in Codeblocks
Post by: MortenMacFly 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.