Compilation Error

Hi all,

I am having issues compiling code once I try to return a String from my class.

I am storing a String type in the header file and then in the cpp file, I have a function for retrieving the string.

I use, return (audioTrack), which is the name of the String variable.

The error I get is:

Compilation error: cannot convert 'String' to 'int' in return

I changed the code to, return (String audioTrack), but now the error is:

Compilation error: expected primary-expression before 'audioTrack'

I know I am writing the code incorrectly, but how do I properly return a string?

Nevermind. Fixed it.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.