• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Undefined variable (RES_ID) not allowed in expression
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undefined variable (RES_ID) not allowed in expression


  • Subject: Re: Undefined variable (RES_ID) not allowed in expression
  • From: Aristotel Digenis <email@hidden>
  • Date: Mon, 02 Aug 2004 01:11:17 +0100

How embarassing. After spending nearly two hours trying to fix this, not finding the solution and posting the problem to the mailing list, I have now sirted it. I was about to give up and go to sleep, and gave it one last shot. Some how(not sure how) I had included AUResource.r in my active target, as well as the resource file of my plug-in. The problem went away when I removed it from the target.Hopefuly this post might save the time of those newbies that come accross this problem in the future.

Shame I didn't find the answer before posting this though.

Goodnight


Aristotel Digenis wrote:

I have been compiling my plug in with xCode with no problems. All the sudden, the order in which headers of the audio unit are compiled has changed and then at "rezzing" I get a problem which I have never seen before. I cannot even find any information on the mailing list regarding this. While the plug in would compile the heirachy of the AudioUnit framework first, then moving to the classes that I have written, now it compiles things in a completely different order. The result error is as follows. Has anybody come across this? Help would be gretaly appreciated as my work has come to a comlete stop as a result of this. Thanks in advance


Rezzing / Developer/Examples/CoreAudio/AudioUnits/AUPublic/AUBase/AUResources.r (8 errors)

Undefined variable (RES_ID) not allowed in expression.
Expected varialble, but got ','
Undefined variable (RES_ID) not allowed in expression.
Expected varialble, but got ','
Undefined variable (RES_ID) not allowed in expression.
Expected varialble, but got ','
Undefined variable (RES_ID) not allowed in expression.
Expected varialble, but got ','

In the file AUResources.r they refer to the following section of code, which ofcourse I have not touched. I have not made any changes to this file, infact I have never looked at it before.

resource 'STR ' (RES_ID, purgeable) {
NAME
};

resource 'STR ' (RES_ID + 1, purgeable) {
DESCRIPTION
};

resource 'dlle' (RES_ID) {
ENTRY_POINT
};

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


resource 'thng' (RES_ID, NAME) {
COMP_TYPE,
COMP_SUBTYPE,
COMP_MANUF,
0, 0, // Flags, Mask
0, 0, // Code
'STR ', RES_ID,
'STR ', RES_ID + 1,
0, 0, /* icon */
VERSION,
componentHasMultiplePlatforms | componentDoAutoVersion,
0,
{
0,
'dlle', RES_ID,
platformPowerPC
},
};
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.


References: 
 >Undefined variable (RES_ID) not allowed in expression (From: Aristotel Digenis <email@hidden>)

  • Prev by Date: Re: Unresolved Icon Matter
  • Next by Date: Appropriate things to shut down the AU HAL
  • Previous by thread: Undefined variable (RES_ID) not allowed in expression
  • Next by thread: Re: Unresolved Icon Matter
  • Index(es):
    • Date
    • Thread