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 » Community » Newbie corner » Core\Mt.ccp
Core\Mt.ccp [message #49403] Sun, 04 February 2018 22:32 Go to next message
idkfa46 is currently offline  idkfa46
Messages: 120
Registered: December 2011
Experienced Member
Hi all,
when I try to compile my project I receive the error below about Core.
What does it mean?

Regards,
Matteo

Error:
C:\upp\uppsrc\Core\Mt.cpp (635): error: '_mm_pause' was not declared in this scope
 (): _mm_pause();
C:\upp\uppsrc\Core\Mt.cpp (635): note: suggested alternative: '_mm_free'
 (): _mm_pause();
 (): _mm_free


Core\Mt.cpp
void SpinLock::Wait()
{
	volatile int n = 0;
	while(locked) {
	#ifdef CPU_X86
		_mm_pause();         <<<<<<< ROW 635
	#endif
		if(n++ > 500)
			Sleep(0);
	}
}
Re: Core\Mt.ccp [message #49404 is a reply to message #49403] Sun, 04 February 2018 22:56 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 534
Registered: August 2007
Location: Turkey
Contributor
Hello Matteo,

Your question is answered here:

https://www.ultimatepp.org/forums/index.php?t=msg&th=102 19&start=0&

You can update your copy of U++ to latest, nightly build, or -a quick fix- simply add:

#include <xmmintrin.h>


Best regards,
Oblivion

[Updated on: Sun, 04 February 2018 23:20]

Report message to a moderator

Re: Core\Mt.ccp [message #49405 is a reply to message #49404] Mon, 05 February 2018 21:19 Go to previous message
idkfa46 is currently offline  idkfa46
Messages: 120
Registered: December 2011
Experienced Member
Thank you Oblivion,
it works!

regards,
Matteo
Previous Topic: Connection to MySql problem
Next Topic: The linker does not find a .lib file
Goto Forum:
  


Current Time: Sat Feb 16 16:09:38 CET 2019

Total time taken to generate the page: 0.01560 seconds