[flext] Flext 0.6 compile errors with MinGW

Thomas Grill gr at grrrr.org
Mon Oct 5 17:39:37 UTC 2015


Hi Jamie,
i am sorry, i haven't touched Windows for years.
Therefore, i welcome every contribution in this domain very much. The current git head has definitely not been tested with mingw. It should build in principle, though.
gr~~~

--
Thomas Grill
http://grrrr.org



> Am 05.10.2015 um 19:36 schrieb Jamie Bullock <jamie at jamiebullock.com>:
> 
> 
> Hi,
> 
> I didn’t get a response to my last question about building on Windows, probably because it was so unspecific, so I decided to give MinGW a try, and it fails with the following errors.
> 
> Are there some extra compile flags I need for Max and / or Win32?
> 
> Thanks.
> 
> Jamie
> 
>> 
> 
> g++ -O2 -std=c++11 -I../vendor/flext/source -I../vendor/grt/GRT -I../vendor/pd -I../sources -Ic:/MaxSDK-6.1.4/c74support/max-support -DWIN_VERSION -DWIN_EXT_VERSION -DFLEXT_SYS=2 -DFLEXT_INLINE -DFLEXT_USE_CMEM -DFLEXT_ATTRIBUTES=1 -DFLEXT_USE_HEX_SETUP_NAME -c ../sources/ml_base.cpp -o ../sources/ml_base.o
> In file included from ../vendor/flext/source/flext.h:77:0,
>                  from ../sources/ml_base.h:23,
>                  from ../sources/ml_base.cpp:19:
> ../vendor/flext/source/flbase.cpp:169:6: warning: 'void canvas_getargs(int*, t_atom**)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
>  void canvas_getargs(int *argcp, t_atom **argvp);
>       ^
> In file included from ../vendor/flext/source/flext.h:93:0,
>                  from ../sources/ml_base.h:23,
>                  from ../sources/ml_base.cpp:19:
> ../vendor/flext/source/fltimer.cpp: In function 'double getstarttime()':
> ../vendor/flext/source/fltimer.cpp:56:51: error: wrong number of template arguments (0, should be 1)
>      if(QueryPerformanceFrequency(&frq)) TimerVars<>::perffrq = (double)frq.QuadPart;
>                                                    ^
> ../vendor/flext/source/fltimer.cpp:38:8: error: provided for 'template<class flext_T> struct TimerVars'
>  struct TimerVars
>         ^
> ../vendor/flext/source/fltimer.cpp:56:62: error: invalid type in declaration before '=' token
>      if(QueryPerformanceFrequency(&frq)) TimerVars<>::perffrq = (double)frq.QuadPart;
>                                                               ^
> ../vendor/flext/source/fltimer.cpp: In static member function 'static double flext_single<flext_T>::GetOSTime()':
> ../vendor/flext/source/fltimer.cpp:69:8: error: 'perffrq' was not declared in this scope
>      if(perffrq && QueryPerformanceCounter(&cnt))
>         ^
> ../vendor/flext/source/fltimer.cpp:70:37: error: wrong number of template arguments (0, should be 1)
>          tm = cnt.QuadPart/TimerVars<>::perffrq;
>                                      ^
> ../vendor/flext/source/fltimer.cpp:38:8: error: provided for 'template<class flext_T> struct TimerVars'
>  struct TimerVars
>         ^
> ../vendor/flext/source/fltimer.cpp: In static member function 'static void flext_single<flext_T>::Sleep(double)':
> ../vendor/flext/source/fltimer.cpp:114:8: error: 'perffrq' was not declared in this scope
>      if(perffrq && QueryPerformanceCounter(&cnt)) {
>         ^
> make: *** [../sources/ml_base.o] Error 1
> 
> 
> --
> http://jamiebullock.com <http://jamiebullock.com/>
> @jamiebullock <http://twitter.com/jamiebullock>_______________________________________________
> http://grrrr.org/ext/flext <http://grrrr.org/ext/flext>
> 
> flext mailing list
> flext at grrrr.org <mailto:flext at grrrr.org>
> http://grrrr.org/cgi-bin/mailman/listinfo/flext <http://grrrr.org/cgi-bin/mailman/listinfo/flext>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://grrrr.org/pipermail/flext/attachments/20151005/75291773/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://grrrr.org/pipermail/flext/attachments/20151005/75291773/attachment-0001.sig>


More information about the flext mailing list