|
|
Home » U++ Library support » U++ Core » Function.h: "expression cannot be used as a function"
Re: Function.h: "expression cannot be used as a function" [message #49360 is a reply to message #49359] |
Wed, 31 January 2018 14:26 |
Giorgio
Messages: 218 Registered: August 2015
|
Experienced Member |
|
|
This is the complete output.
Note that /home/pi/MyApps/StatusDetector/AggiungiComm.cpp:149 is the last line of the file (and is blank).
----- CtrlLib ( GUI SSE2 GCC SHARED POSIX LINUX ) (1 / 19)
----- MySql ( GUI SSE2 NOMYSQL GCC SHARED POSIX LINUX ) (2 / 19)
----- SqlCtrl ( GUI SSE2 GCC SHARED POSIX LINUX ) (3 / 19)
----- Barcode ( GUI SSE2 GCC SHARED POSIX LINUX ) (4 / 19)
----- MyINI ( GUI SSE2 GCC SHARED POSIX LINUX ) (5 / 19)
----- PostgreSQL ( GUI SSE2 GCC SHARED POSIX LINUX ) (6 / 19)
----- CtrlCore ( GUI SSE2 GCC SHARED POSIX LINUX ) (7 / 19)
----- PdfDraw ( GUI SSE2 GCC SHARED POSIX LINUX ) (8 / 19)
----- Draw ( GUI SSE2 GCC SHARED POSIX LINUX ) (9 / 19)
----- plugin/bmp ( GUI SSE2 GCC SHARED POSIX LINUX ) (10 / 19)
----- RichText ( GUI SSE2 GCC SHARED POSIX LINUX ) (11 / 19)
----- Core ( GUI SSE2 GCC SHARED POSIX LINUX ) (12 / 19)
----- plugin/png ( GUI SSE2 GCC SHARED POSIX LINUX ) (13 / 19)
----- Sql ( GUI SSE2 GCC SHARED POSIX LINUX ) (14 / 19)
----- plugin/z ( GUI SSE2 GCC SHARED POSIX LINUX ) (15 / 19)
----- Report ( GUI SSE2 GCC SHARED POSIX LINUX ) (16 / 19)
----- CodeEditor ( GUI SSE2 GCC SHARED POSIX LINUX ) (17 / 19)
----- plugin/pcre ( GUI SSE2 GCC SHARED POSIX LINUX ) (18 / 19)
----- StatusDetector ( GUI SSE2 NOMYSQL MAIN GCC SHARED POSIX LINUX ) (19 / 19)
AggiungiComm.cpp
In file included from /home/pi/upp/uppsrc/Core/Core.h:304:0,
from /home/pi/MyApps/StatusDetector/StatusDetector.h:23,
from /home/pi/MyApps/StatusDetector/AggiungiComm.h:5,
from /home/pi/MyApps/StatusDetector/AggiungiComm.cpp:1:
/home/pi/upp/uppsrc/Core/Function.h: In instantiation of 'Res Upp::Function<Res(ArgTypes ...)>::Wr
apper<F>::Execute(ArgTypes ...) [with F = const char*; Res = void; ArgTypes = {}]':
/home/pi/MyApps/StatusDetector/AggiungiComm.cpp:149:1: required from here
/home/pi/upp/uppsrc/Core/Function.h:17:60: error: expression cannot be used as a function
virtual Res Execute(ArgTypes... args) { return fn(args...); }
^
/home/pi/upp/uppsrc/Core/Function.h:17:60: warning: return-statement with a value, in function ret
urning 'void' [-fpermissive]
/home/pi/upp/uppsrc/Core/Function.h: In instantiation of 'Res Upp::Function<Res(ArgTypes ...)>::Wr
apper<F>::Execute(ArgTypes ...) [with F = int; Res = void; ArgTypes = {}]':
/home/pi/MyApps/StatusDetector/AggiungiComm.cpp:149:1: required from here
/home/pi/upp/uppsrc/Core/Function.h:17:60: error: expression cannot be used as a function
/home/pi/upp/uppsrc/Core/Function.h:17:60: warning: return-statement with a value, in function ret
urning 'void' [-fpermissive]
/home/pi/upp/uppsrc/Core/Function.h: In instantiation of 'Res Upp::Function<Res(ArgTypes ...)>::Wr
apper<F>::Execute(ArgTypes ...) [with F = Upp::GateN<>; Res = void; ArgTypes = {}]':
/home/pi/MyApps/StatusDetector/AggiungiComm.cpp:149:1: required from here
/home/pi/upp/uppsrc/Core/Function.h:17:60: warning: return-statement with a value, in function ret
urning 'void' [-fpermissive]
StatusDetector: 1 file(s) built in (0:14.29), 14291 msecs / file, duration = 14305 msecs, parallel
ization 0%
There were errors. (0:14.48)
[Updated on: Wed, 31 January 2018 14:39] Report message to a moderator
|
|
|
|
|
Function.h: "expression cannot be used as a function"
By: Giorgio on Wed, 31 January 2018 12:44
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Klugier on Wed, 31 January 2018 13:11
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Wed, 31 January 2018 14:26
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Novo on Wed, 31 January 2018 19:14
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 10:51
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Oblivion on Thu, 01 February 2018 11:16
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 14:13
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Oblivion on Thu, 01 February 2018 15:01
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 16:21
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: mirek on Thu, 01 February 2018 16:25
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 16:29
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: mirek on Thu, 01 February 2018 16:34
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 16:37
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: mirek on Thu, 01 February 2018 17:43
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 18:05
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: mirek on Wed, 31 January 2018 18:46
|
|
|
Re: Function.h: "expression cannot be used as a function"
By: Giorgio on Thu, 01 February 2018 10:47
|
Goto Forum:
Current Time: Tue May 07 13:24:04 CEST 2024
Total time taken to generate the page: 0.02804 seconds
|
|
|