octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47215] libgui compiler errors


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #47215] libgui compiler errors
Date: Mon, 22 Feb 2016 20:38:44 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 Iceweasel/44.0

Follow-up Comment #3, bug #47215 (project octave):

You're missing a couple things in the example, where is QTOSTRING?

This snippet compiles cleanly for me:


$ cat foo.cc
#define QTOSTRING_HELPER(s) #s
#define QTOSTRING(s) QTOSTRING_HELPER(s)
#define QLOCATION " "__FILE__":"QTOSTRING(__LINE__)
// #define SIGNAL(a) qFlagLocation("2"#a QLOCATION)
#define SIGNAL2(a) ("2"#a QLOCATION)
#include <stdio.h>

int func(int a) {
        fprintf(stderr, "%s", SIGNAL2(1));
}
$ g++ -c foo.cc


All of these macros are from a standard installation of Qt, so this still
points to something odd about your system libraries.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47215>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]