Base operand of '- ' is not a pointer.....

Hi there!
I get this error when I'm compiling this code:
JNIEXPORT jstring JNICALL Java_Monitor_generalQuery
(JNIEnv *env, jobject obj)
char *AC01_DATA;
return (*env)->NewStringUTF(env, AC01_DATA) ;
I don�t know what's happening.
This the compilation command:
g++ -o MyProgram.o -c MyProgram.C -I/usr/include -I/usr/java1.1/include -I/usr/java1.1/include/solaris
Of course, if I comment that code line everything works fine.
Please if you have some idea about this, I will be a very happy programmer.
Thanks in advance.

Thanks man, I just did that and it works, the amazing
thing is that in the tutorial it's written in that
way(with *)
The tutorial you mention is written in C, yet you appear to be using C++. Try the following syntax instead:
string result = env->NewStringUTF(AC01_DATA.c_str());
return result;
Just an example of course, your mileage may vary. Alternatively, try using gcc instead of g++ with your existing syntax.

Similar Messages

  • The definition of base class Application was not found.

    Hello:
    I have been coding in Flash Builder Burrito and publishing to my Xoom for a few weeks. All of a sudden at the end of the day I'm getting this compiler error which says:
    1017: The definition of base class Application was not found.    AppName.mxml    /AppName/src    Unknown    Flex Problem
    I sometimes hit the wrong key with I try to copy and paste and all of a sudden a new window will open for source of a default component which I never wanted to edit. I'm afraid I somehow deleted or modified the default class defnition of Application?
    I don't understand why this would come out of the blue, I was working on a function within a class that was drawing points  ... Then all off a sudden I'm getting this error and it's driving me nuts.
    I tried to reinstall FB Burrito on my Mac, but after all that work it still says the same thing. Wouldn't it replace the default class defs?
    Please help!

    Wow, some really strange behavior.
    OK, so here is what I'm going through. I reinstall, import the project and compiles.
    Then I uncomment the new section which contains the following code:
    lineStyle(1.0,0x8ea4bf);
    var line_commands:Vector.<int> = new Vector.<int>();
    line_commands.push(GraphicsPathCommand.LINE_TO, GraphicsPathCommand.LINE_TO, GraphicsPathCommand.LINE_TO, GraphicsPathCommand.LINE_TO);
    var line_coord:Vector.<Number> = new Vector.<Number>();
    line_coord.push(0,0, newW, angle, newW, (newH+angle), 0, newH);
    drawPath(line_commands, line_coord);
    I get 3 diffrent errors, which lead up to the error listed in the topic.
    At first it says that "int" isn't a valid type and it points to this line:
    var line_commands:Vector.<int> = new Vector.<int>();
    Then I take int out so the line looks like this:
    var line_commands:Vector = new Vector();
    Then it says I can't nest classes and it points to the main MXML. I go to the main MXML then the error switches to say "The definition of base class Application was not found.".
    I did figure out how to fix this with out reinstalling. I have to delete the project from my list (making sure to comment out the code above), then re-launch FB Burrito, then re-import the project and it works.
    This is way nuts! I dont understand ... am I crazy?

  • Did not receive points for purchase

    Hello,
    I purchased a Frigidaire oven back on 11/23/14 but was not issued any points. Please let me know what is needed to rectify this situation.
    thanks,

    Greetings patsfan12, and welcome to the Best Buy forum,
    After looking over your account using the email address you registered with the forum, the reason why the Frigidaire oven you purchased was not awarded points is because you applied it to an 18 month promotional financing offer.  Based on the Program Terms, a member can either select standard financing and points OR promotional financing and zero points (base and bonus).  While your purchase may not have qualified for points, it should still have counted towards reaching Elite and Elite Plus status.
    With that having been said, I will be sending you a private message so that I can go over your My Best Buy™ account with you to ensure it is up-to-date and to see if there are perhaps any other questions I can help answer.  To check your private messages, you will want to login to the forum and click on the little yellow envelope icon at the top of the page.
    My Best Buy™ Points and Promotional Financing
    Thank you for taking the time to post to the forum and for being a My Best Buy™ member!
    Derek|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Since updating my airport utility app to iOS 8, it can no longer see my base station and will not connect to wifi.

    Since updating my airport utility app to iOS 8, it can no longer see my base station and will not connect to wifi. My son's 4s with an older version of the app sees it and connects fine, so I know it's working. The internet works fine for everyone else in the house but my

    Please take a look at this Apple support document to see if it help solve your issue:
    iOS: Troubleshooting Wi-Fi networks and connections
    If this does not help, we would recommend that you post in the iPhone community support area, since you have an iPhone / iOS issue. The link is just below.
    Using iPhone

  • My Airport wireless is working for my two MacBook Pros and my daughter's iPod, but our iPad, Iphone and other iPod all say they need to set up an Airport Base Station but do not have the proper software.  I'm not sure what to do to remedy this situation.

    My Airport wireless is working for my two MacBook Pros and my daughter's iPod, but our iPad, Iphone and other iPod all say they need to set up an Airport Base Station but do not have the proper software.  I'm not sure what to do to remedy this situation.

    This might sound like a silly question, but are you sure the iOS devices (iPhone, iPad, iPod touch etc.) are still trying to connect to the same network from your own Airport router, as the MacBook Pros are? If you tap Settings on them, is the network name next to where it says Wi-Fi, the right one?
    I've got a weird feeling that either in the past couple of days, a neighbour got an Airport device and hasn't set it up yet (causing your iOS devices to try to help), or that perhaps there's an issue with your Airport router and they're noticing it and trying to help out, while for whatever reason, Airport Utility isn't opening itself on the MacBook Pros like it normally should if there's a problem.
    If you open Airport Utility on one of the MacBook Pros, does it report any problems with your Airport device, and can you view/edit the settings on it?

  • How about two SDN "blogspaces" : one FOR points  and 1 NOT FOR points ?

    I suggest that the current SDN logspace be divided into two subspaces:
    one for points: this is where technical and/or non-controversial messages would be posted and be rewarded according to the current rules
    one not for points: this is where folks would post "controversial" messages (technical or non-technical) that would not get any point reward.
    I would personally prefer to post in the "not for points" subspace, for several reasons.
    But I'd prefer to see what others have to say before saying what they are.
    By the way, there's a US expression "preaching to the choir".  The new blog (for no points) would be for those who are not necessarily "preaching to the choir".
    djh

    david,
    i think i do understand your intention and therefore agree with you.
    IMHO, the blogsphere here on SDN, as execellent as it is, is kind of a 'posing platform' rather than a discussion space. People do post their contributions, receive their points reward and expect some congratulations and cheering if anything at all. I happened to me that people got upset when I questioned the use or correctness or usefulness of some of the content of their blogs. When it did this with the intention to discuss matters, I recognized that people actually didn't want to discuss their contributions.
    Of course the things said above do not hold true for for a big number of contributors.
    The same thing thing in the forums. A lot of people do provide very valuable answers but often not discuss matters when points are already given.
    So having a discussion area, free of the rewards system's pressures might be a helpful addition. Something like a discussions corner. In Vienna we call this 'Kaffeehaus'
    A place where you post some free thought where you don't have to justify the minimum blog reward points, where you don't have to apply the care expected in drafting a blog, etc..
    Just freestyle discussion on useful or not so useful topics.
    regards,
    anton

  • Getting Error base class BitmapAsset was not found

    I am converting a project using Away3D boomstick to the new FL11 version. I have installed the 4.5.1 SDK, dropped in the new away3d classes, added the flashplayer11_b1_playerglobal_071311.swc and now I get the following error.
    Description Resource Path Location Type
    1017: The definition of base class BitmapAsset was not found. Mercer-Molehill line 10 Flex Problem
    Any Ideas? I really need to get this working for a demo tomorrow.

    It seem the right playergloblal is not accessed. If You compile in Flash IDE make sure that ActionsScript Settinng is configure with the rigth paths.
    The SDK 4,5 has change the name of flex.swc to core.swc and others files.
    Flex 4.5 Framework Differences
    flex.swc and utilities.swc were renamed to core.swc and authoringsupport.swc
    The datavisualization.swc was split into charts.swc and advancedgrids.swc.
    Path to sdk
    I put all those SWC in a folder in C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\ActionScript 3.0\flex_sdk\4.5\
    Flash Actionscript  settings. -> library path ->add the path till sdk
    Configure globalplayer.swc. in Flash
    in Common-Configuration/Player created a copy of FlashPlayer10_3.xml to FlashPlayer11.xml.
    <player id="FlashPlayer11" version="12" asversion="3">
       <name>Flash Player 11</name>
    Finally
    Flash Actionscript  settings. -> library path ->add path till globalplayer
    it work for me. ( tell me if I done wrong please).

  • Xy graph in PDA module does not plot points or update

    The XY Graph for PDA does not plot points or update. Input data is simple cluster of floating point data (x,y)in while structure. The axes scale properly with Configure PDA XY Scales.vi. Cursor legend also OK. Checked line and point attributes-OK. Running 7.0F1 and pocketPC2003. Please help.

    Garret,
    Can you attach the VI so that we can see it? If you think it is a bug in the toolkit, rather than a programing thing I would suggest sending an e-mail to NI. In addition are you using eVT 3 or 4 or both?

  • Definition of base class ByteArrayAsset was not found

    I was able to run through the developer guide to get several simple applications going, but I'm getting stuck when trying to compile a game (using amxmlc) that uses Flex-style embeds to embed bitmap graphics.
    The error I'm seeing is this: (I've included input for completeness. I am located inside the project directory.)
    ===
    > ../flex/bin/amxmlc -default-size 320 480 -library-path engine.swc -source-path+=.  -- scripts/Main.as
    Loading configuration file /Users/jon/Desktop/iphone/flex/frameworks/air-config.xml
    scripts/MyAssets_SceneList.as(10): col: 49 Error: The definition of base class ByteArrayAsset was not found.
    (Repeats 10 times)
    ===
    As directed in the guide, I downloaded the latest Flex SDK and dragged in the contents of the iPhone packager directory. And to reiterate, I was able to get several simple applications working on my iPad, so my setup should be correct.
    Where have I gone wrong?

    I've narrowed it down further. Emebds DO work, but it's particularly an embed that leads to a ByteArrayAsset that does not. In my case, I am embedding an XML file as an octet stream.
    Any ideas? Thanks!

  • Help - error: 1017: The definition of base class CairngormEvent was not found.

    Hi.
    I've inherited someone else's flex code.  I need to make a small change re-complie and re-deploy, but the IDE (flash builder 4) keeps telling me there's an error in one of the.as files.  Here's the details:
    = Error:
    1017: The definition of base class CairngormEvent was not found.   
    = Code:
    package actionScripts.events {
        import flash.events.Event;
        import com.adobe.cairngorm.control.CairngormEvent;
        public class CairngormGeneralEvent extends CairngormEvent {    
         [etc..]
    Any ideas?
    I'm using Flash Builder 4. Any help would be much appreciated.

    check if the Cairngorm.swc is in the libs folder

  • First operand of . is not an object, so cannot access member WriteLine

    1) I get error like
    First operand of . is not an object, so cannot access member WriteLine. (180,235) Z_REM_STRING.Z_FUNCLIB_FORMULA.FieldFormula Name:RemoveSpace PCPC:691 Statement:11
    2) I have the record called Z_REM_STRING and have one field call FUNCLIB_FORMULA.FieldFormula
    3) the function inside the FieldFormula is
    Function RemoveSpace(&inputString As string) Returns string;
    some log
    Return &temp;
    End-Function;
    the code inside the function is work fine inside the AE
    what mistake that I made?

    Hi
    The part where you have "some log" you have not declared the file.
    Try something like:
         Local File &myFileVar = GetFile("C:\temp\myLogFile.log","W",%Filepath_Absolute);
    where &myFileVar is the file variable you use for the writeline.
    Kind regards
    André

  • InfoCube is not a Basis-InfoCube;Administration is not useful

    Hi All,
    On adding a new field to a DSO , we are unable to activate it. It gives the message as shown below:
    InfoCube is not a Basis-InfoCube;Administration is not useful
    When we see the logs it shows that database tables are deleted.
    Thanks,
    Mayuri

    Yes, but if i try to activate the DSO , ith give the message that the there was an error in activating the DDIC tables.
    Thanks,
    Mayuri

  • MapViewer base map image is not loading on OBIEE 11.1.1.6.4

    Hi Experts ,
    We are facing issue in OBIEE 11.1.1.6.4 and OBIEE 11.1.1.6.5. The background maps are not loading. The measure is getting plotted the as per postal code but the background map is not coming up.
    The Issue is only with External maps. It is working in Google maps.
    In Mapviewer > Management > Manage Map Tile Layers we can see GOOGLE_MAP as well as our required map tile layer.
    When we select GOOGLE_MAP and click on view map / manage tiles button we can see the background map.
    But the same doesnt happen for our background map.
    Our Operating System is Windows 2008 (We have tried in Linux as well).
    Thanks

    In case you have not found the reason for your problem. You mentioned that the problem is only with External maps, but also say that it works with Google maps (which is external). I'm assuming you had an internal map that was not working, right? First suggestion is to check MapViewer log for errors after you try to view the tile layer. You may have missing metadata, or broken definitions (base map or tile layer) pointing to data that do not exist.

  • How to test the object is base 64 encoded or not.

    Hi,
    MimeUtility is which I am using for base 64 encoding of object.
    but while decoding I want to test whether the object is base 64 encoded and then only I want to decode it. actually while encoding I will be encoding it based on some criteria. If that criteria is satisfied then I will be encoding the object else I will not do so but I cant test it same way again so I have to explicitly test whether its encoded at base 64 encoding then only decode it.
    Sorry it seems to a long story :)
    Thanks in advance.

    If that criteria is satisfied then I will be encoding the object else I will not do soSo, you're not saying what that criteria is, but you're asking if there is some way (and I suspect asking for some way) of determining, after the fact, whether that criteria was met.
    Depending on the criteria, and the method of encoding, I would have thought it quite possible for some object which was not encoded to be in every respect identical to the encoding of some other object. In this case it would not be possible to determine whether some arbitrary object was the result of an encoding.
    But then, as already pointed out, you know if you encoded something or not.

  • Purchased gift cards during 4x choose your points day, did not receive points

    Hello:
    I purchased gift cards during the 4x choose your points day in June, but the bonus points posted as 0. From the terms, Bonus points are awarded for gift card purchases. Can you have someone contact me to please review and fix. 4X POINTS OFFER:
    *My Best Buy Elite Plus members get 4X base points on qualifying purchase. Coupon required. Offer is non-transferable. Bonus points will not be multiplied. Bonus points awarded for Best Buy gift card purchases. No cash value. No copies. May not be combined with other bonus point offers. Limit 1 bonus point offer per membership. Excludes purchases through Pacific Sales/Pacific Kitchen & Home inside Best Buy Stores. Valid 6/02/15–6/27/15 only in Best Buy stores. Thanks,Todd

    Hi Todd,
    Welcome to the Best Buy forum!
    After using the email address you registered with the forum to review your account, I can see exactly why you were awarded zero points for the gift cards you purchased.  That reason is actually mentioned in the terms of the "Choose Your Points" coupon that you included in your above post.  While the purchase of Best Buy gift cards is usually excluded from bonus points offers, they were not excluded from that coupon; however, it looks like you purchased prepaid Visa gift cards and not Best Buy gift cards, which were still excluded.
    If you have any additional questions or if you would like for me to go over your My Best Buy account with you, then please feel free to send me a private message and I will see what I can do to further assist.  To send a private message, you will want to login to the forum and click on the blue button in my signature that is labeled "Private Message."
    Thank you for connecting with us and for being a member of the My Best Buy program.

Maybe you are looking for