Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Error: Identifier not found "SetMXCSR"

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  
Author Message
xxhehe
Expert Cheater
Reputation: 0

Joined: 11 Mar 2015
Posts: 136

PostPosted: Sat Mar 21, 2015 12:15 am    Post subject: Error: Identifier not found "SetMXCSR" Reply with quote

byteinterpreter.pas(477,11) Error: Identifier not found "SetMXCSR"

byteinterpreter.pas(733) Fatal: There were 1 errors compiling module, stopping


P.S1:
windows XP 32-bit
CE 6.4 SVN 2925



01.png
 Description:
 Filesize:  148.78 KB
 Viewed:  15332 Time(s)

01.png


Back to top
View user's profile Send private message
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 891

PostPosted: Sat Mar 21, 2015 1:55 am    Post subject: Reply with quote

Same SVN revision compiles fine for me, although I'm not setup to build the 32-bit version. Would you please show a screenshot of the project options page for comparison? Maybe your cpu isn't set for i386+ to include the function or something.


_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Mar 21, 2015 11:10 am    Post subject: Reply with quote

Lazarus should be from revision 44997
FPC2.7.1 from revision 27759


Also, you have to apply this patch, if you want 32bit CE:
Code:
Index: pointerscannerfrm.pas
===================================================================
--- pointerscannerfrm.pas   (wersja 2926)
+++ pointerscannerfrm.pas   (kopia robocza)
@@ -1340,7 +1340,9 @@
       for i:=0 to Pointerscanresults.modulelistCount-1 do
         sqlite3.ExecuteDirect('INSERT INTO modules(ptrid, moduleid, name) values ('+ptrid+','+inttostr(i)+',"'+Pointerscanresults.getModulename(i)+'")');
 
-      for j:=0 to Pointerscanresults.count-1 do
+      //for j:=0 to Pointerscanresults.count-1 do
+      j:=0;
+      while j<=Pointerscanresults.count-1 do
       begin
         offsetlist:='';
         offsetvalues:='';
@@ -1361,7 +1363,7 @@
           progressbar1.position:=ceil(j / Pointerscanresults.count * 100);
           progressbar1.Update;
         end;
-
+      inc(j);
       end;
       progressbar1.position:=100;
       progressbar1.update;

_________________
Back to top
View user's profile Send private message MSN Messenger
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 891

PostPosted: Sun Mar 22, 2015 5:44 pm    Post subject: Reply with quote

I think DB uploaded a patch to SVN, build 2927, that reworks the bit that's causing you compile errors. Give it a try?

Quote:

475 - {$ifdef windows}
476 - Set8087CW($133f); //disable floating point exceptions (multithreaded)
477 - SetMXCSR($1f80);
478 - {$endif}
475 + SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow, exUnderflow, exPrecision]);
476 +

_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Mar 24, 2015 10:36 am    Post subject: Reply with quote

@justa_dude, that change is for other purposes - to make the code more portable.

xxhehe just uses too old Lazarus. He needs Lazarus v1.3 (revision 44997) and FPC 2.7.1 (revision 27759)




Here, development environment used by DB:
Dark Byte wrote:
Here is a copy of my fps/lazarus build folder
https://drive.google.com/file/d/0B1cDswCin9PSQmk0NHktblh4Tmc/view?usp=sharing
It's using rar5 and is for 64-bit only



Or mine (it can compile 32bit and 64bit CE)(it already has 32bit GDB):
Lazarus,gdb,fpc - https://drive.google.com/uc?export=download&id=0BwMAnE6mjogMaEExXzQ0RjhvTUU&authuser=0


32bit and 64bit GDB:
gdb - https://drive.google.com/uc?export=download&id=0BwMAnE6mjogMd2h1RVBBWndhMkU

_________________
Back to top
View user's profile Send private message MSN Messenger
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 891

PostPosted: Tue Mar 24, 2015 9:22 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
@justa_dude, that change is for other purposes - to make the code more portable.


Heh, maybe... you've gotta' admit that it would also eliminate the "byteinterpreter.pas(477,11) Error: Identifier not found "SetMXCSR" error, though.

_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Mar 28, 2015 1:02 pm    Post subject: Reply with quote

Nope.

In windows you can use SetMXCSR and Set8087CW to enable/disable exceptions and etc. But, that isn't available in ARM.

SetExceptionMask will work on more machines, also with ARM.



And he needs newer version anyway. there are many changes like this one:
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/rtl/objpas/sysutils/sysutils.inc?revision=27656&view=markup&pathrev=27656
Code:
Fri Apr 25 15:10:12 2014 UTC (11 months ago) by sergei
File MIME type: text/plain
File size: 17649 byte(s)

* i386 and x86_64 changes for Delphi compatibility:
  * 'mxcsr' variable made public and renamed to DefaultMXCSR.
  * GetSSECSR and SetSSECSR renamed to GetMXCSR and SetMXCSR, respectively. Previous names continue to exist as deprecated aliases

_________________
Back to top
View user's profile Send private message MSN Messenger
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 891

PostPosted: Sat Mar 28, 2015 4:29 pm    Post subject: Reply with quote

justa_dude wrote:
Heh, maybe... you've gotta' admit that it would also eliminate the "byteinterpreter.pas(477,11) Error: Identifier not found "SetMXCSR" error, though.


mgr.inz.Player wrote:
Nope.


OK, please explain to me how removing the call to SetMXCSR doesn't eliminate the error the OP had with being unable to find the SetMXCSR function? Where would the error come from if byteinterpreter.pas no longer attempts to call SetMXCSR?

_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25281
Location: The netherlands

PostPosted: Sat Mar 28, 2015 4:31 pm    Post subject: Reply with quote

that one error might be fixed, but there are lots of other issues that will show up after that (e.g the RPM/WPM parameter change)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 891

PostPosted: Sat Mar 28, 2015 4:36 pm    Post subject: Reply with quote

Dark Byte wrote:
that one error might be fixed, but there are lots of other issues that will show up after that (e.g the RPM/WPM parameter change)


Fair enough. I can't claim to know the build environment well, so I'll happily defer on the matter.

_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites