Click here to Skip to main content
15,867,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPutting pkg-config as options generates this error Pin
Vaclav_18-Jul-20 16:39
Vaclav_18-Jul-20 16:39 
GeneralRe: Putting pkg-config as options generates this error Pin
leon de boer21-Jul-20 19:22
leon de boer21-Jul-20 19:22 
GeneralRe: compiler "unresolved inclusion" is not an error ? Pin
Richard MacCutchan18-Jul-20 22:06
mveRichard MacCutchan18-Jul-20 22:06 
Question[SOLVED CLOSED] See addendum GCC ` backtick` CLI - what does it actually do ? Pin
Vaclav_16-Jul-20 14:30
Vaclav_16-Jul-20 14:30 
AnswerRe: GCC ` backtick` CLI - what does it actually do ? Pin
Peter_in_278016-Jul-20 15:44
professionalPeter_in_278016-Jul-20 15:44 
GeneralRe: GCC ` backtick` CLI - what does it actually do ? Pin
Vaclav_16-Jul-20 15:57
Vaclav_16-Jul-20 15:57 
GeneralRe: GCC ` backtick` CLI - what does it actually do ? Pin
k505417-Jul-20 3:53
mvek505417-Jul-20 3:53 
GeneralRe: GCC ` backtick` CLI - what does it actually do ? Pin
Vaclav_17-Jul-20 4:55
Vaclav_17-Jul-20 4:55 
OK, putting wrong option may be one of the issues.
I did put BOTH --cflag and --libs in complier and linker options. I also tried
this combined syntax
`pkg-config --cflags --libs gtk+-3.0`

The compiler and linker verbose outputs looks OK ( too big to repost here ) , BUT the unresolved error is apparently different issue.

I am enclosing what I posted in Eclipse forum here:

This error has been posted years ago and there was NO SOLUTION,

See this old post


[b]However, this only solved the issue of adding all the header files manually. Now I encounter errors like "Function 'G_CALLBACK' could not be resolved". I tried to compile my source-code (the first example of the GTK3 tutorial) in a terminal using the simple "gcc `pkg-config --cflags gtk+-3.0` -o example-0 First_GTK_test.cpp `pkg-config --libs gtk+-3.0`" command and it works. So the issue must be an Eclipse setting issue.[/b]





Every GTK tutorial is same - download / install GTK and run sample code in your editor...

It is up to the user to figure out how to option complier / linker to "include sources and link libraries"
Adding `pkg-config --cflags --libs gtk+-3.0` should work, I get expected verbose output , but it does not.
Even after that is done the compilation will fail because #include <gtk gtk.h=""> is unresolved.

Here is an output of whereis

z@z-desktopUnsure | :~ $ whereis gtk.h
gtk:
z@z-desktopUnsure | :~ $

Any help woudl be appreciated
End of Eclipse post.

I am really at lost where the reference
<gtk gtk.h=""> came from and unsure how to find gtk.h manually - where ?

Appreciate all the help with such trivial issue.

Cheers
GeneralRe: GCC ` backtick` CLI - what does it actually do ? Pin
Vaclav_17-Jul-20 5:19
Vaclav_17-Jul-20 5:19 
GeneralRe: GCC ` backtick` CLI - what does it actually do ? Pin
k505417-Jul-20 5:38
mvek505417-Jul-20 5:38 
GeneralRe: GCC ` backtick` CLI - what does it actually do ? Pin
Vaclav_17-Jul-20 6:05
Vaclav_17-Jul-20 6:05 
GeneralRe: GCC ` backtick` CLI - what does it actually do ? Pin
Richard MacCutchan17-Jul-20 6:19
mveRichard MacCutchan17-Jul-20 6:19 
GeneralRe: GCC ` backtick` CLI - what does it actually do ? Pin
k505417-Jul-20 6:57
mvek505417-Jul-20 6:57 
GeneralUndefined reference GTK issue was Re: GCC ` backtick` CLI - what does it actually do ? Pin
Vaclav_17-Jul-20 7:35
Vaclav_17-Jul-20 7:35 
GeneralRe: GCC ` backtick` CLI - what does it actually do ? Pin
Richard MacCutchan17-Jul-20 21:54
mveRichard MacCutchan17-Jul-20 21:54 
QuestionDevelop VC++ for IPad Pin
_Flaviu15-Jul-20 7:01
_Flaviu15-Jul-20 7:01 
AnswerRe: Develop VC++ for IPad Pin
Richard MacCutchan15-Jul-20 22:56
mveRichard MacCutchan15-Jul-20 22:56 
GeneralRe: Develop VC++ for IPad Pin
_Flaviu16-Jul-20 0:56
_Flaviu16-Jul-20 0:56 
GeneralRe: Develop VC++ for IPad Pin
Richard MacCutchan16-Jul-20 1:37
mveRichard MacCutchan16-Jul-20 1:37 
QuestionFFMPEG encrypt & decrypt Video offline Pin
DARA ALAVI13-Jul-20 21:50
DARA ALAVI13-Jul-20 21:50 
AnswerRe: FFMPEG encrypt & decrypt Video offline Pin
Victor Nijegorodov13-Jul-20 21:55
Victor Nijegorodov13-Jul-20 21:55 
GeneralRe: FFMPEG encrypt & decrypt Video offline Pin
DARA ALAVI13-Jul-20 22:09
DARA ALAVI13-Jul-20 22:09 
GeneralRe: FFMPEG encrypt & decrypt Video offline Pin
Victor Nijegorodov13-Jul-20 22:23
Victor Nijegorodov13-Jul-20 22:23 
GeneralRe: FFMPEG encrypt & decrypt Video offline Pin
DARA ALAVI13-Jul-20 22:38
DARA ALAVI13-Jul-20 22:38 
QuestionDoes FreeRTOS have built-in support for queues that can hold variable sized elements? Pin
arnold_w12-Jul-20 10:06
arnold_w12-Jul-20 10:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.