Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
Giorgio is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: I've been using FindFile wrong all these years
Next Topic: Vector<T>::Set(int i, T&& x) proposal
Goto Forum:
  


Current Time: Tue May 07 13:24:04 CEST 2024

Total time taken to generate the page: 0.02804 seconds