berlin_alien
|
|
Posted on: January 05, 2014, 05:33:39 pm |
|
|
Joined: Dec 2013
Posts: 4
|
Hi,
currently I'm trying to port my GameMaker Studio-project to ENIGMA. Here I get this error message:
Compile failed on CPP-level:
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:24127:38: error: no match for call to '(std::deque<int>) (var&)' checkedinst = instance_id(i); ^
The code in GML, which raises this error, is:
var i, checkedinst; for (i =0; i <instance_count; i+=1) { checkedinst =instance_id; ....
I am using ENIGMA 1.8.3, file from 20-12-2013.
Can someone tell me, what went wrong here ? Thankyou.
|
|
« Last Edit: January 05, 2014, 05:38:53 pm by berlin_alien »
|
Logged
|
|
|
|
Goombert
|
|
Reply #1 Posted on: January 05, 2014, 07:47:25 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
Hello, berlin_alien, first, you can add code to your posts using the code tag in your post.
Second, you said that this was the code in question.
checkedinst = instance_id(i); But that code is actually this in your GML code.
checkedinst =instance_id;
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
berlin_alien
|
|
Reply #2 Posted on: January 05, 2014, 09:44:18 pm |
|
|
Joined: Dec 2013
Posts: 4
|
Sorry, I mispelled the source-code which raised the error, it is:
var i, checkedinst; for (i =0; i <instance_count; i+=1) { checkedinst =instance_id[i]; .... I noticed too, that the source-code is: ...=instance_id[i] (because it is an array, not a function, GML accepts here no round brackets anyway), but the compiler-error says "instance_id(i)". I assumed this is a change the preprozessor made, because of a different implementation in ENIGMA compared to GMS. There is indeed no "instance_id(i)" anywhere in the source-code.
|
|
|
Logged
|
|
|
|
Goombert
|
|
Reply #3 Posted on: January 05, 2014, 10:10:40 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
Wait, so that resolved the error then?
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
|
Goombert
|
|
Reply #5 Posted on: January 05, 2014, 10:41:26 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
Yes your assumptions are correct then. I believe instance_id is a STL container, a dequeue specifically, as the error message states. Probably a bug in JDI somewhere, Josh is the ENIGMA founder and wrote the current compiler, the new one will fix all of these bugs and is nearly completed, you can see his latest edits scrolling across the top of the navbar right now. He'd be better suited to answer this question than I would.
|
|
« Last Edit: January 05, 2014, 11:09:25 pm by Robert B Colton »
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
|
|