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 » _mm_pause not defined
_mm_pause not defined [message #49165] Fri, 29 December 2017 23:16 Go to next message
forlano is currently offline  forlano
Messages: 1031
Registered: March 2006
Location: Italy
Experienced Contributor
Hello,

I was compiling my program using latest U++ 11634, Mingw compiling for 32 bit platform.
I got the error:

C:\upp\uppsrc\Core\Mt.cpp (635): error: '_mm_pause' was not declared in this scope

located in Mt.cpp:

void SpinLock::Wait()
{
volatile int n = 0;
while(locked) {
#ifdef CPU_X86
_mm_pause(); //<< error
#endif
if(n++ > 500)
Sleep(0);
}
}


Any idea how to fix it?
Thanks,
Luigi
Re: _mm_pause not defined [message #49166 is a reply to message #49165] Sat, 30 December 2017 10:29 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 535
Registered: August 2007
Location: Turkey
Contributor
Hello,

I can confirm this for latest nightly builds on Linux (kernel: 4.14 - x86_64 platform, GCC 7.2.1

The reason seems to be that the following header file is missing.
#include <xmmintrin.h>



Best regards,

Obliivion

[Updated on: Sat, 30 December 2017 10:34]

Report message to a moderator

Re: _mm_pause not defined [message #49168 is a reply to message #49166] Sat, 30 December 2017 16:56 Go to previous message
mirek is currently offline  mirek
Messages: 11701
Registered: November 2005
Ultimate Member
I have tried to add include to Core.h. Please check (trunk)
Previous Topic: CreateSymbolicLink doesn't compile using MinGW
Next Topic: ReadSecret() function for reading passwords, etc. from the console.
Goto Forum:
  


Current Time: Tue Feb 19 10:05:54 CET 2019

Total time taken to generate the page: 0.00569 seconds