Problems accessing the C code execution

I had difficulties to get C code to run in my project bb10

test.h

#ifndef TEST_H_
#define TEST_H_

#ifdef __cplusplus
extern "C" {
#endif

int callMe(void);

#ifdef __cplusplus
}
#endif

#endif /* TEST_H_ */

test.c

#include 
#include 
#include 
#include "test.h"

int callMe(void) {
    printf("C function called");
    return 10;
}

got it: thread as a test that * should * work

I get 'Syntax error' for the extern "C" {line in test.h

compiler error is rather vague:

make [2]: * [o.le-v7-g/.obj/test.o] error 1
make [1]: * [debug] error 2
make: * [Device-Debug] error 2

My compiler also gives me this:

-Ic: / bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 - i. o o.le-v7-g/.obj/test.o... /SRC/test.c
Cc1: error: one or more files PCH used have been found, but they were not valid
Cc1: error: use - Winvalid-pch for more information
Cc1: fatal error: o.le-v7-g/.obj/BB_10: no such file or directory
compilation is complete.

BB_10 is the name of the project, and there is an empty folder from BB_10 to the JavaScript on the Project Explorer resources, a red X icon on it. Don't know if this is related to all add C files to the project, but the second I delete the C, all the errors disappear.

Is there an extra step, or something really simple that I'm missing to get the C code execution? I'm completely stumped.

stephenpankiw wrote:

When I clean then rebuild I'll leave 2 errors at more than 300, and is fatal errors in common libraries as follows:

: / bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:54:20: fatal error: string: no such file or directory

but qstring.h is in that folder, I don't know how the compiler is absent, he

errors or because he cannot find a library more:

c:/bbndk/target_10_2_0_1155/QNX6/usr/include/Qt4/QtCore/QByteArray.h:606:1: error: unknown type name 'QByteArray.

 

Can't find the type of QByteArray in qbytearray.h? What is going on?

On the first error, he complains on line 54 of qstring.h, not not not find qstring.h.  Line 54 of qstring.h is:

# include

which seeks to include a system lib.  A quick search on Google for "qstring.h:54:20: fatal error: string: no such file or directory" gives a few discussion forums such as:

http://Qt-project.org/forums/viewthread/39367

where a person has apparently concluded that their use of the file .h/.c instead de.hpp/.cpp extensions extensions was causing their generation not to seek the library system in the right place.  BTW, I'm not snarking you by mentioning research on google, just trying to help and to learn something of myself because I'd run into this problem myself.

Tags: BlackBerry Developers

Similar Questions

  • Problem reinstalling Creative - try to uninstall and reinstall creative cloud bc of problems. meet the error Code: 86 - "another version of creative cloud office is running. To continue, pls leave this instance, click try again. "NO.

    try to uninstall and reinstall cloud creative bc of problems. meet the error Code: 86 - "another version of creative cloud office is running. To continue, pls leave this instance, click try again. "No other CC no longer exists on my computer. Advice?

    If you are on MAC Activity Monitor Open and looking for creative cloud, he he race it Quit
    / Applications/Utilities/Activity HD MAC monitor

    If you are in control of Windows in the Task Manager

    CTRL + Shift + Esc keys

  • To access the servlet code causing problems AM...

    Hello
    I use 11gr1p1 and stack of the ADF. I have an ImageServlet and in it, I created an AM root to access the VO to read the image using the VO.
    Everything works fine but anyway it messes with the framework and my beginning of LOVs gives below error when I click on the LOV icon.

    java.lang.ClassCastException: oracle.jbo.uicli.binding.JUCtrlActionDef cannot be cast to oracle.adfinternal.view.faces.model.binding.FacesCtrlActionDef

    To locate what is causing the problem, I commented lines where I create an AM and return directly to the servlet. Then I did a mistake.

    Any ideas?

    The servlet code
    -----------
              if( request.getParameter( "ImageId" ) != null )
              {
                   String contentType = "image/jpeg; charset=UTF-8";
                   response.setContentType( contentType );
                   oracle.jbo.domain.Number imageId = null;
    
                   try
                   {
                        imageId = new oracle.jbo.domain.Number( request.getParameter( "ImageId" ) );
                   }
                   catch( Exception e )
                   {
    
                        return;
                   }
    
    
                   OutputStream os = response.getOutputStream();
                   String amDef = "com.zzz.model.mdm.am.MDMMainService";
                   String config = "ConfigurationServiceLocal";
                   String viewObject = "OperaImagesRev";
                   String imageAttributeName = "BfileLocator";
                   String viewObjectBindParamName = "pBlobId";
    
    
                   if( imageId != null )
                   {
                       ApplicationModule am = Configuration.createRootApplicationModule( amDef, config );
                        
                        try
                        {
                             
                             ViewObject vo = am.findViewObject( viewObject );
    
                             vo.setNamedWhereClauseParam( viewObjectBindParamName, imageId );
                             vo.executeQuery();
                             if( vo.getEstimatedRowCount() > 0 )
                             {
                                  Row row = vo.first();
                                  oracle.jbo.domain.BFileDomain image =
                                                             ( oracle.jbo.domain.BFileDomain )row.getAttribute( imageAttributeName );
                                  image.openFile();
                                  InputStream is = image.getInputStream();
    
                                  byte[] buffer = new byte[10 * 1024];
                                  int nread;
                                  while( ( nread = is.read( buffer ) ) > 0 )
                                       os.write( buffer, 0, nread );
    
                                  os.close();
                                  image.closeFile();
    
                             }
                        }
                        catch( Exception e )
                        {
                             //e.printStackTrace();
                        }
                        finally
                        { if (am != null)
                            Configuration.releaseRootApplicationModule( am, false );
                        }
                   }

    I ran in the same issue.
    Creating an application root module breaks the link whole layer, when done outside the context of limited application. I mean there a servlet or the e-mail application itself.
    In my case, I launched a planner to start all batch tasks now and then. Because the task has no application module I create a new one, that breaks the user interface.

    Good news for you is that you can solve your problem in the servlet image if you change your web.xml file so that the servlet image goes through the filter adfBindings.
    Just add a filter mapping

    
      adfBindings
      ImageServlet
      FORWARD
      REQUEST
      
    

    to your web.xml file and your servlet is working again.

    My case I still looking for a valid solution :-(

    Timo

  • Problem accessing the service within my Document class

    Hello

    I have a Document class that dynamically adds a MovieClip to my Florida the MovieClip in the library FLA and has "Export for ActionScript" installation for him and that's how I access the My Document class MovieClip.

    The problem is that when the MovieClip is finished (he has a scenario animation and a stop() method applied to the last frame of the animation), I want him to call a function that is placed in my Document class, but simply call the function (for example displayEnterButton()); an error of...

    1180: call to a method may be undefined displayEnterButton.

    Can anyone help here, I'm sure it's a simple problem to solve.

    Thank you very much!

    Kind regards
    M.

    Hello

    I managed a work around that.

    Basically, my Document class, after the code that adds the MovieClip to the display list, I then put in place since a timer that called a function every 100 milliseconds. This function would then check the current image of the loaded MovieClip. If the current framework of the MovieClip is equal to the last frame of the MovieClip I know animation had finished and calls the following function that I needed.

    I pasted the code below in case anyone was interested...

  • Microsoft fix it Center unable to solve the problem because the error code 800154

    My computer is running slow and sometimes hangs.  I tried to improve or correct this problem through the difficulty it Center Microsoft.  I have programs stalled unin I thought my being the cause of (these) problems.  I get an "error code 800154" and this error code blocks any other measure to correct my problem.  Can you help me?

    Harold Nelson * E-mail address is removed from the privacy *   

    Hello

    (1) did you do changes on the computer before this problem?

    (2) what is the full error message or error code?

    (3) when you receive the error message, it is trying to run the fix it?

    I would suggest trying the following methods and check if it helps.


    Method 1:

    Microsoft Safety Scanner: http://www.microsoft.com/security/scanner/en-us/default.aspx
    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Note: the data files that are infected can be cleaned by removing the file completely, which means there is a risk of data loss.

    Method 2:

    Put the computer in a clean boot state, then check if that helps you.

    How to solve the problem by running the clean boot in Windows 7: http://support.microsoft.com/kb/929135 
                                                                                                                         
    Note: once you have completed troubleshooting, perform the steps from step 7: to reset the computer as usual.


    Method 3:

    Slow PC? Optimize your computer for peak performance
    http://www.Microsoft.com/athome/Setup/optimize.aspx

    If the error is due to this problem, then I recommend you to get in touch with Microsoft Fix it Center forums

    http://social.Microsoft.com/forums/is/fixitcenter/threads

    It will be useful.

  • WRT110-problem accessing the Web-based Setup Page

    I can't access the configuration page based on web for the WRT110 router I have. I am able to make a connection on two computers without the router, but when I add them I get an error message in my browser.

    I tried to access the configuration page based on the web both of my computers and some information were followed by Ecritel.net, but I'm having no luck. I receive the following error message "missed connection: connection to the server was reset while the page is loading." The network link was interrupted for negotiating a connection. Please try again. »

    Any advice would be greatly appreciated! Thank you!

    Actually, I get a different error message now. I made a few adjustments to things like the start menu, which is a problem before. Here is the new error message I received:

    Network timeout Server 192.168.1.1 takes too long to respond. The requested site did not respond to a connection request and the browser has stopped waiting for a response

    Can experience the high demand server or a temporary outage? Try again later.

    Are you unable to navigate to other sites? Check the computer's network connection.

    Is your computer or a network protected by a firewall or proxy? Incorrect settings can interfere with browsing the web.

    Still having trouble? See your network administrator or your Internet service provider for assistance.

    Someone at - it ideas? I searched on the Internet, but nothing I've tried works. Thank you in advance!

  • I'm having a problem with the error code ox80070043

    I kept getting notice from microsoft that I did not use real software. I made a phone call to microsoft. After a little off to explain it.

    It gave me a 351861-388594-186196-604521-045834-916795-734671-052075 (CID) after this code was put into my pc.

    I was not able to download my upgrade from windows 7 Home premium, because my pc doesn't seem to be able to read my drive.

    In addition, my pc crashes and is very slow.

    It's like my pc had a falce identification number crashed my pc running like I should.

    I've always used

    the disc; s I bought from Microsoft.

    If I received the wrong code Microsoft can solve this problem for me.

    Because I don't think that's not a fault of my fault.

    Thak you.

    William Carter

    PS My records were grouped in 19/05/2012.   Order No. 11653529 cost of £95,97.

    I still don't know why I kept getting I was victim of a counterfeit.

    Hello

    I suggest you to contact Microsoft Customer support for help.

    How and when to contact Microsoft and support Customer Service

    http://support.Microsoft.com/kb/295539/en-us

    Hope this information helps.

  • Problem accessing the boot UEFI

    I created a virtual 10 of VMware machine from a dd to a Windows 8.1 EUFI/GPT system image.  The host is 8.1 MBR/BIOS.  The original system is a HP Pavilion.  The virtual machine starts very well, and I can also start it from a key USB EUFI.  My problem is that I can't access the EUFI configuration in VMware.  I tried all of the suggested F keys and others.  I can access the EUFI in the original HP machine.  I know that I have consulted the EUFI in other virtual machines EUFI/GPT, but I can not in this one.  Thanks for your suggestions.

    Oops, the screenshots I posted came from the Technical Preview of workstation, not 10 workstation...  But the screens you have posted are WS 10 equivalents to the EFI screenshot I posted.  Option Configuration enter would be an equivalent to your snap041.jpgscreen.

    We do not have any option in our EFI allowing the Legacy Boot configuration.  (There is a way to activate Legacy Boot on our implementation of the EFI, but is prone to problems and incomplete, which is why it is undocumented and not supported.  I recommend that you don't continue this way unless you are willing to tolerate the possible data loss).

    What you are aiming to use Legacy Boot the virtual machine for?  If it doesn't have a USB, your best option would be to edit the configuration of the virtual machine file to change firmware = "efi" firmware "bios" for now = you must start legacy and changing again later.

    Thank you

    --

    Darius

  • Problems, access the Console on VMware ESXi 4.0.0 Build 294855

    I'm having a problem where I can't access the console by pressing Alt + F1 only get the next screen (see attachment) anyone ever see this?

    http://KB.VMware.com/kb/1003677

  • Problems accessing the HP Recovery Manager after the installation of new copy of Windows 7.

    I have the HP Pavilion dv6 (2043us) originally with Windows 7 Home Premium. A recent storm crossed in my area, which seems to me to be the cause of a corrupt hard drive file that prevented Windows startup. My extra fathers using copy of Windows 7 Ultimate (is a prominent IT guy for his company, he has a lot to lose) I decided to install it from that rather than using the HP Recovery Manager in order to save my files (Windows Startup Repair and system restore failed, and to restore the default factory was not desirable) as I mentioned it because of my desire to save my documents) I have installed on the same partition as the original windows, allowing files to be viewed in Windows.old.

    However, after all that, I came to the will to restore the default settings. However, after you press (esc) and (f11) to access the Recovery Manager, it is bring up the Windows Startup logo and the login screen. Is it possible to access the Recovery Manager and restore the default settings? If so, how should I do this? As I said, I left all the original parts intact, so I do not think it is possible after some research, but I'm not sure how to start the process.

    This method to get the active recovery partition was first introduced to me by Cheryl here on the site. It may or may not work.

    Right-click on computer and click Manage > search in the list on the left, and then open disk management. You should see the recovery partition it. Click right and whether it is active and the next time that you start it up, it should boot into the recovery partition and restore back to the factory.

  • Problems with the speed of execution on my T420

    I'm not very tech savvy, so bear with me please if I have forgotten something or doing something wrong.

    Just to clarify, my laptop is a Lenovo ThinkPad T420i, Type 4178. It is about 2 years old.

    I have Windows 7 64 bit.

    My laptop takes about 2-5 minutes to turn on, sometimes it turn on at all. The screen freezes every 15 seconds, but I'm still able to move my cursor. He accused some too. For example, type 'how to download google chrome' will take me sometimes a whole minute, because the only parts of the sentence will be displayed on the screen at once. My keyboard responds very well. The problem is not with wireless internet, because even if the wireless is off the laptop computer is still incredibly slow. It is impossible to watch videos because the screen freezes so.

    I had this problem with the speed of my laptop for about 2 months now. I had finished it wiping back to factory settings, downloaded every scanner malware and virus known to man (none of them found no problems with it) and updated all my drivers.

    I don't really know how to do much on my laptop other than the use of the internet. I would really appriciate instructions step by step.

    Thank you.

    Hello. I did it all at once (up to 8 GB, SSD of RAM HARD disk and reinstall Windows), that's why I can't answer you, how did each of them, but after all, my absolutely BRILLIANT T420 representation!
    Chip graphic is now the weak link, and, unfortunately, it cannot be replaced.

  • Problems with the bar code reader sample

    I want to integrate barcode scanner in my application, but it seems to be a lot more complicated than I thought.

    I use the example of BarcodeReader, and when I integrate his code 1:1 it works correctly.

    As soon as I try to change, however, is not.

    I want to:

    -use without a cover and an animation

    -have everything in a sheet with a close instead of a page button

    When I place "camera.open ()" in onCreationCompleted, for example, the camera is displayed as you wish, but the bar code scanner does nothing.

    I also tried to launch the camera delayed (of 200 or 400 MS) using QTimer::singleShot in c ++, the camera opens but still no scanning codes bar.

    A comment in the code example shows "Temporarily work around a bug", no idea if this could be related?

    This class is very buggy. You need to do initialization twice, the other after a delay of ~ 200 ms after the first. This makes the sample.

    I was able to make it work with the one-time initialization by defining the camera right after the creation of barcode detector:

    camera_ = new Camera();
    barcodeDetector_ = new BarcodeDetector(this);
    barcodeDetector_->setCamera(camera_);
    

    But if I change all the properties of the camera (such as the size of the viewfinder) during initialization or in viewfinderStarted() Manager of signal, it stops working and initialization of the double notch should be used to do work.

  • Security problem for the source code

    Hello guys '

    I have a question about the safety of coding. So, I know that anyone can create .jar .java or .class file.

    And my question:

    Is it possible to create the .cod file .java file? I think the best solution to save the source code uses secure obfuscator.

    Do you use the Java obfuscator? What obfuscator is the best?

    Please share your knowledge with me ' guy

    TNX'

    You would like to read the following Article:

    How to-obfuscate code in a BlackBerry application
    Article number: DB-00438

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Obfus...

    I know that a BlackBerry development company using Proguard.

  • Problem: getting the return code 7 downloading image

    Hello everyone. I get the response from the server in the return Code: 7 when downloading images to my server. Can someone help me? What does this return code?

    Thanks in advance.

    I have it. Its because my memory server was full. Thank you.

  • Displacement of photoshop CS5 (student) to new computer (cannot access the activation code)

    Hello

    I have photoshop CS5 installed on two computers. One of them broke, so I was hoping to install it on my new laptop. However, because the old PC is now broken I can not be disabling this function. In addition, I don't know what was the activation code (I think I've received by e-mail, but the account is now closed due to piracy). Can anyone help with this? I may be able to retrieve my other PC activation code, but don't know how. However that doesn't solve the question of him be already enabled on both computers.

    Thanks in advance for your help.

    Best wishes

    Matt

    Check your Adobe account online: https://www.adobe.com/account.html

    If you have registered your product then the serial number can be found in the section Plans and products.

    See also: find your serial number

    Another option would be to try to use a key research tool...

    If it's a Windows machine, and then try running Belarc Advisor

    http://www.Belarc.com/free_download.html

    For a Mac, you can try:

    https://Mac-product-key-Finder.com/

    Until you have the facility disabled, you can contact the Adobe Support via chat and ask them to reset your activations.  You will need the serial number for this and you get no off-topic or they may send you in the forums without help.

    Chat support - the link below click the still need help? the option in the blue box below and choose the option to chat...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat

    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

Maybe you are looking for