Re: (no subject)



Well...there are many ways to configure both IDEs, but
so far I only know how to do so for Dev-C++. Anyway,
you have 2 choices, either create a Dev-C++ project
template, or an empty project and add the appropriate
compiler and linker commands every time you create a
GTK+ application. In both cases, you need to run
pkg-config on your GTK+ (pkg-config --cflags --libs
gtk+-2.4 [assuming 2.4 is what you use, check the gtk+
.pc file]), and make sure that your PKG_CONFIG_PATH is
set to the directory where the .pc files for GTK+ are
in your computer. Generally, they are in <GTK+ install
dir>\lib\pkgconfig directory.

For the first case, where you make use of templates,
wheere there are the text edits where you can input
compiler or linker options, copy out the output of
pkg-config beginning -I and -L (capital L) into the
compiler options text edit, and all output beginning
with -L and -l (jafr, case sensitive) into the linker
options text edit, and then save and you have your
GTK+  project template.

If you don't want to hassle yourself with creating a
template which may take a while to get right, you
could always create empty projects ALL the time when
wanting to write a GTK+ application, and then in
project options do what you would do in the templates
method where which output goes where. And specify your
application as a C application, even though your file
extension may say it all, it's better to be safe than
sorry. Also, you don't need to change your application
to a Windows application project type as console would
do fine and the nice GTK+ runtime debug messages can
appear for your debugging pleasure, but when you don't
want them around, leave the project type as a console
application but request it NOT to make a console
window. Same applies for the template method.

Hope that helps
Benjamin Lau

__________________________________________________
Do You Yahoo!?
Log on to Messenger with your mobile phone!
http://sg.messenger.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]