User forums > Using Code::Blocks
Using GTk-3 library from an ordinary c file
(1/1)
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.
Navigation
[0] Message Index
Go to full version