|
|
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Can't build a basic Skylark app! Help!
Can't build a basic Skylark app! Help! [message #37796] |
Tue, 13 November 2012 01:52 |
lectus
Messages: 329 Registered: September 2006 Location: Brazil
|
Senior Member |
|
|
Hi! I create new package, with Skylark template, no database.
I didn't change anything in the code. I got this error:
----- Skylark ( MT SSE2 GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (1 / 5)
BLITZ: App.cpp Preprocess.cpp Compile.cpp Optimize.cpp Exe.cpp Renderer.cpp Sql.cpp Http.cpp Session.cpp Dispatch.cpp
StdLib.icpp
Static.icpp
In file included from C:\upp\uppsrc\Skylark\App.cpp:1:0,
from C:/upp/out/MyApps/Skylark/MINGW.Debug.Debug_Full.Mt.Sse2\$blitz.cpp:3:
C:\upp\uppsrc\Skylark\/Skylark.h:68:41: error: '__in' has not been declared
C:\upp\uppsrc\Skylark\/Skylark.h:68:53: error: expected ',' or '...' before 'dwCtrlType'
In file included from C:/upp/out/MyApps/Skylark/MINGW.Debug.Debug_Full.Mt.Sse2\$blitz.cpp:3:0:
C:\upp\uppsrc\Skylark\App.cpp:23:45: warning: '__stdcall__' attribute only applies to function types [-Wattributes]
C:\upp\uppsrc\Skylark\App.cpp:23:45: error: 'BOOL Upp::SkylarkApp::CtrlCHandlerRoutine' is not a static member of 'class Upp::SkylarkApp'
C:\upp\uppsrc\Skylark\App.cpp:23:45: error: '__in' was not declared in this scope
C:\upp\uppsrc\Skylark\App.cpp:24:1: error: expected ',' or ';' before '{' token
C:\upp\uppsrc\Skylark\App.cpp: In member function 'void Upp::SkylarkApp::Run()':
C:\upp\uppsrc\Skylark\App.cpp:171:49: error: invalid conversion from 'BOOL (*)(int) {aka int (*)(int)}' to 'PHANDLER_ROUTINE {aka int (*)(long unsigned int)}' [-fpermissive]
c:\mingw\bin\../lib/gcc/mingw32/4.6.1/../../../../include/wincon.h:176:13: error: initializing argument 1 of 'BOOL SetConsoleCtrlHandler(PHANDLER_ROUTINE, BOOL)' [-fpermissi
ve]
In file included from C:\upp\uppsrc\Skylark\StdLib.icpp:1:0:
C:\upp\uppsrc\Skylark\/Skylark.h:68:41: error: '__in' has not been declared
C:\upp\uppsrc\Skylark\/Skylark.h:68:53: error: expected ',' or '...' before 'dwCtrlType'
In file included from C:\upp\uppsrc\Skylark\Static.icpp:1:0:
C:\upp\uppsrc\Skylark\/Skylark.h:68:41: error: '__in' has not been declared
C:\upp\uppsrc\Skylark\/Skylark.h:68:53: error: expected ',' or '...' before 'dwCtrlType'
Skylark: 12 file(s) built in (0:03.96), 330 msecs / file, duration = 4118 msecs, parallelization 80%
There were errors. (0:04.13)
Any idea what's happening?
|
|
|
|
|
Re: Can't build a basic Skylark app! Help! [message #46087 is a reply to message #37813] |
Wed, 02 March 2016 18:57 |
omari
Messages: 275 Registered: March 2010
|
Experienced Member |
|
|
Hello,
I think this shall be fixed now, as U++ is shipped with mingw.
this error is caused by the "__in" in the function :
static BOOL WINAPI CtrlCHandlerRoutine(__in DWORD dwCtrlType);
(Skylark.h, line 77, and Apps.cpp line 23)
it can be fixed, either by removing "__in" from header and source files,
or by defining it if needed:
#ifndef __in
#define __in
#endif
regards
omari.
|
|
|
Goto Forum:
Current Time: Fri Dec 13 22:27:43 CET 2024
Total time taken to generate the page: 0.02338 seconds
|
|
|