zuzuf / freeocl

Automatically exported from code.google.com/p/freeocl
GNU Lesser General Public License v3.0
31 stars 8 forks source link

threadpool.cpp error: 'free' was not declared in this scope #23

Closed Zenitur closed 6 years ago

Zenitur commented 6 years ago

FreeOCL is successfully builds on x86_64: https://build.opensuse.org/package/live_build_log/home:linux4humans:wine-staging/freeocl/SLE_11_SP4/x86_64 But fail to build on i586: https://build.opensuse.org/package/live_build_log/home:linux4humans:wine-staging/freeocl/SLE_11_SP4/i586

/usr/src/packages/BUILD/freeocl-0.3.6.git1443563795.d33d194/src/utils/threadpool.cpp: In destructor 'FreeOCL::threadpool::worker::~worker()':
/usr/src/packages/BUILD/freeocl-0.3.6.git1443563795.d33d194/src/utils/threadpool.cpp:103: error: 'free' was not declared in this scope
/usr/src/packages/BUILD/freeocl-0.3.6.git1443563795.d33d194/src/utils/threadpool.cpp: In member function 'void FreeOCL::threadpool::worker::work()':
/usr/src/packages/BUILD/freeocl-0.3.6.git1443563795.d33d194/src/utils/threadpool.cpp:177: error: 'free' was not declared in this scope
/usr/src/packages/BUILD/freeocl-0.3.6.git1443563795.d33d194/src/utils/threadpool.cpp:178: error: 'malloc' was not declared in this scope
make[2]: *** [src/CMakeFiles/FreeOCL.dir/utils/threadpool.cpp.o] Error 1
zuzuf commented 6 years ago

It seems the threadpool.cpp module was relying on an implicitly included header. It should be fixed now.

Zenitur commented 6 years ago

Thank you! The compiling continued at this point. Now I had another build error. I'll create another issue.