PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, September 11, 2022

[FIXED] How to link to libraries downloaded with Homebrew in Visual Studio Code?

 September 11, 2022     arm, c++, cross-platform, gtkmm, visual-studio-code     No comments   

Issue

I just downloaded GTKMM using Homebrew but I don't know how to link to it with Visual Studio Code. I have a c_cpp_properties file as well as a tasks.json (Both C/C++ settings files) that I can use to link to files with.

Do I link to the downloaded package directly (opt/Homebrew/Cellar/gtkmm) or do I need to link it to somewhere else, like /Library/Frameworks/?

I am on an ARM Mac, using C++ and Visual Studio Code. I also need to make sure my project is cross-platform.


Solution

You may install pkg-config and it will make the life of a developer sweeter:

brew install pkg-config
pkg-config --cflags --libs gtkmm

The last command shows the required compiler and linker flags for using gtkmm.



Answered By - 273K
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing