[flext] Flext 0.6 compile errors with MinGW

Jamie Bullock jamie at jamiebullock.com
Mon Oct 5 17:36:49 UTC 2015


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
@jamiebullock
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://grrrr.org/pipermail/flext/attachments/20151005/67e8cec5/attachment.html>


More information about the flext mailing list