Click here to Skip to main content
15,893,644 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAnalyzing make error output - one problem solved.... Pin
Vaclav_8-May-19 6:38
Vaclav_8-May-19 6:38 
AnswerRe: Analyzing make error output Pin
CPallini8-May-19 7:42
mveCPallini8-May-19 7:42 
GeneralRe: Analyzing make error output Pin
Vaclav_8-May-19 8:08
Vaclav_8-May-19 8:08 
GeneralRe: Analyzing make error output Pin
Vaclav_8-May-19 17:05
Vaclav_8-May-19 17:05 
GeneralRe: Analyzing make error output Pin
Stefan_Lang9-May-19 0:08
Stefan_Lang9-May-19 0:08 
AnswerRe: Analyzing make error output Pin
Richard MacCutchan8-May-19 9:35
mveRichard MacCutchan8-May-19 9:35 
AnswerRe: Analyzing make error output Pin
Richard MacCutchan8-May-19 21:21
mveRichard MacCutchan8-May-19 21:21 
AnswerRe: Analyzing make error output Pin
Stefan_Lang8-May-19 23:49
Stefan_Lang8-May-19 23:49 
You have to interpret the error information back to front:

1. The make error
Vaclav_ wrote:
Makefile:5858: recipe for target 'gdbus/mainloop.lo' failed

tells you that the target mainloop.lo could not be built, and the messages above are output from the compiler that was called in an attempt to build this target.

2. The compiler output gives you accurate information on how it tried to expand a macro, resulting in C code that doesn't compile, and why it doesn't compile (negative array index).

3 The last lines of the compiler output show the condition that is statically checked, and ultimately leading to the compile error: as already pointed out, apparently the type unsigned long long does not have the same size as guint64.

The output further above above shows how the static assert macro expansion turns the value of this condition (false) into an invalid array type definition, but that information is not neede or useful to you; you only need to know that an assertion failed, find out why this happened, and (how (or if) you can fix it.

4. The static assert was invoked in function _GLIB_CHECKED_ADD_U64, and this function was called somewhere in mainloop.c (in line 28, according to the compiler). That means you should check the function call: maybe you're calling the wrong function for the job. Or maybe you shouldn't use guint64 for the target system you're compiling for.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

GeneralRe: Analyzing make error output Pin
Vaclav_9-May-19 13:20
Vaclav_9-May-19 13:20 
GeneralRe: Analyzing make error output Pin
Vaclav_10-May-19 8:14
Vaclav_10-May-19 8:14 
QuestionCalling python function from c++ Pin
Shohel hasan4-May-19 23:24
Shohel hasan4-May-19 23:24 
AnswerRe: Calling python function from c++ Pin
Victor Nijegorodov5-May-19 0:35
Victor Nijegorodov5-May-19 0:35 
AnswerRe: Calling python function from c++ Pin
Richard MacCutchan5-May-19 1:49
mveRichard MacCutchan5-May-19 1:49 
AnswerRe: Calling python function from c++ Pin
CPallini5-May-19 9:54
mveCPallini5-May-19 9:54 
QuestionHas C++ ever considered XML style namespaces? Pin
david321729-Apr-19 19:51
david321729-Apr-19 19:51 
AnswerRe: Has C++ ever considered XML style namespaces? Pin
Joe Woodbury29-Apr-19 20:12
professionalJoe Woodbury29-Apr-19 20:12 
AnswerRe: Has C++ ever considered XML style namespaces? Pin
Stefan_Lang2-May-19 2:10
Stefan_Lang2-May-19 2:10 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
CPallini3-May-19 0:05
mveCPallini3-May-19 0:05 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
Stefan_Lang3-May-19 3:58
Stefan_Lang3-May-19 3:58 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
CPallini3-May-19 4:23
mveCPallini3-May-19 4:23 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
Victor Nijegorodov3-May-19 4:54
Victor Nijegorodov3-May-19 4:54 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
CPallini3-May-19 5:15
mveCPallini3-May-19 5:15 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
Victor Nijegorodov3-May-19 8:11
Victor Nijegorodov3-May-19 8:11 
GeneralRe: Has C++ ever considered XML style namespaces? Pin
Stefan_Lang6-May-19 4:41
Stefan_Lang6-May-19 4:41 
QuestionMFC Top Level menu position. Pin
Maximilien29-Apr-19 7:50
Maximilien29-Apr-19 7:50 

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.