News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Using GTk-3 library from an ordinary c file

Started by Willy, January 30, 2020, 05:56:34 PM

Previous topic - Next topic

Willy

Hello everyone, I've followed the tutorial on: https://www.youtube.com/watch?v=ffgbsHZeluI
to create new GTK 3 project building with mingw. And it worked successfully for me.
Now I can create&build&run a GTK-3 project on codeblocks without an error.

But, i want to use that library without creating a gtk3 project because I'm considering to use also other libraries such as OpenCV ... in a single executable.

So which settings actually I should make that make every single c file work on Codeblocks can also build with GTK3 library?

stahta01

For your project :
- Right click on the project then select Build options
- Select the directories tab
- Add the required paths for compiler and linker.
- Add your specific libraries in the linker tab.
- Pay attention to project settings and target settings.
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]