64 bits code with Pro*C

I need to generate 64 bits code with my Pro*C programs.
Some documents reference a makefile called demo_proc64.mk,
where can i found it?
How can i use de lib64 library's if i dont have that makefile?
Thanks.

I stumbled upon the solution. In my makefile, I had the final compile look something like this (greatly abbreviated):
cc $(PROLDLIBS) program1.o -o program1Well, it turns out that if you list PROLDLIBS after the object, it compiles without complaining about multiple main() functions. So it's all happy if I do this:
cc program1.o $(PROLDLIBS) -o program1I guess I should assume that the sslb9 library detects if there is already a main() function and disregards its own if so. Whatever... I still don't know what that library does, but at least I don't have to jump through hoops to strip it out anymore.

Similar Messages

  • 64-bit Windows 7 Pro's Windows XP Mode, Palm Desktop 4.1.4 sync with Palm Vx?

    I last talked about Palm Desktop compatibility with 64-bit Windows at http://forums.palm.com/palm/board/message?board.id=software&message.id=37767.  Fortunately, I haven't replaced my laptop yet, so I am in the enviable(?) position of planning the acquisition of a spanking new machine with 64-bit Windows 7 Pro (sidenote: likely a 14" ASUS).  However, my PDA is still Palm Vx, which requires Palm 4.1.4, which requires 32-bits, which is provided in Windows 7 Pro by its Windows XP Mode.  Has anyone heard any word of whether XP mode allows seamless sync'ing through the serial or IR ports?  Serial is most preferrable, of course, due its speed, lack of headaches with line-of-sight alignment, and the fact that it needs to be docked anyway for recharging.
    I'm not sure if it's as dependent on the Palm Desktop version as much as it depends on the Hotsynch Manager, which is 4.1.0.  There are probably certain Hotsynch Manager versions that are compatible with Palm Desktop 4.1.4 and Palm Vx.
    Post relates to: Palm Vx

    I last talked about Palm Desktop compatibility with 64-bit Windows at http://forums.palm.com/palm/board/message?board.id=software&message.id=37767.  Fortunately, I haven't replaced my laptop yet, so I am in the enviable(?) position of planning the acquisition of a spanking new machine with 64-bit Windows 7 Pro (sidenote: likely a 14" ASUS).  However, my PDA is still Palm Vx, which requires Palm 4.1.4, which requires 32-bits, which is provided in Windows 7 Pro by its Windows XP Mode.  Has anyone heard any word of whether XP mode allows seamless sync'ing through the serial or IR ports?  Serial is most preferrable, of course, due its speed, lack of headaches with line-of-sight alignment, and the fact that it needs to be docked anyway for recharging.
    I'm not sure if it's as dependent on the Palm Desktop version as much as it depends on the Hotsynch Manager, which is 4.1.0.  There are probably certain Hotsynch Manager versions that are compatible with Palm Desktop 4.1.4 and Palm Vx.
    Post relates to: Palm Vx

  • How can I see CR2 photos in Bridge (using Win 8.1 Pro 64.bit). With Win 7 Pro there is no problem.

    How can I see CR2 photos in Bridge (using Win 8.1 Pro 64.bit). With Win 7 Pro there is no problem.

    There is a Bridge Forum:
    Bridge General Discussion
    You may want to mention the camera type, though.

  • Create a New Comp code with a bit similar to the existing ones

    Hello Friends,
    My client requires a new comp code 3015 which is going to have only some functionalities of the existing comp code 3000.
    The functionalities are all customised. After copying the comp code 3000 , how can I supress the customised functionalities which are not required in the comp code 3015.
    Also please kindly give me the tips for copying the comp code
    Awaiting your response.
    Thanks,
    Krishna

    Hi,
    You can copy company codes with EC01 transaction.
    Regards,
    Eli

  • Why Do Both Photoshop CS5 (64 Bit) and Premiere Pro (64 Bit) Crash on Start up.

    Both Photoshop CS5 (64 Bit) and Premiere Pro (64 Bit) Crash on Start up. 32 bit version of Photoshop works fine.
    Here is the problem signature when they crash.
    Problem signature:
      Problem Event Name:          APPCRASH
      Application Name:          Photoshop.exe
      Application Version:          12.0.0.0
      Application Timestamp:          4bbc5b10
      Fault Module Name:          CoolType.dll
      Fault Module Version:          5.7.82.7602
      Fault Module Timestamp:          4b980c97
      Exception Code:          c0000005
      Exception Offset:          0000000000073a92
      OS Version:          6.1.7601.2.1.0.256.48
      Locale ID:          1033
      Additional Information 1:          7c82
      Additional Information 2:          7c821a1fc13b00b508d1bb6ee7ecaf44
      Additional Information 3:          019c
      Additional Information 4:          019cb6db15489631b8a43faf27e30830
    Problem signature:
      Problem Event Name:          APPCRASH
      Application Name:          Adobe Premiere Pro.exe
      Application Version:          5.0.3.0
      Application Timestamp:          4ce382d1
      Fault Module Name:          CoolType.dll
      Fault Module Version:          5.7.82.7449
      Fault Module Timestamp:          4b7b1af3
      Exception Code:          c0000005
      Exception Offset:          00000000000739ea
      OS Version:          6.1.7601.2.1.0.256.48
      Locale ID:          1033
      Additional Information 1:          889a
      Additional Information 2:          889afed61eb6ddf1c1c3419adc6026b6
      Additional Information 3:          8235
      Additional Information 4:          823549a371dff618695395cc0a8514ee
    Both are referencing cooltype.dll. I ran Font Doctor on all system and non-system fonts and found no errors. Booted without Extensis Suitcase loading. Nothing works. All 32 bit programs work fine. Any clues would be appreciated.

    It does not necessarily mean a "corrupt" font, but can be a font that PrPro, and PS, cannot handle.
    Though I have read that changes have been made, Open Office's DejaVu font would crash PrPro's Titler - every time. There are quite a few others. Font Dr, and similar utilities, will not see the font(s) as corrupt, but they are so poorly designed, that PrPro and PS cannot deal with them.
    Though it can be a long, drawn out process, one can often zero in on the problem font(s), with a little work. This is accomplished by first defining the "System Fonts," and not touching them. Then, uninstall half of the remaining fonts, and testing PrPro and PS. If they launch fine, you know that somewhere in that list of fonts, the problem exists. If there is still a failure to launch, chances are good that the problem font(s) reside in that half, that are still installed. Note: because the problem still exists, does not guarantee that there are NOT problem fonts in that uninstalled group, so keep that in mind.
    Repeat the proces, by uninstalling half of the remaining fonts and testing.
    If necessary, repeat by removing half of the now remaining fonts and testing.
    When you get to a point, where you are no longer getting problems, reinstall fonts, in small groups, testing in between. The smaller the groups, the easier it will be to pinpoint the problem font(s).
    Keep notes on which fonts you are uninstalling and reinstalling, until you narrow it down to the problem font(s).
    I would start by uninstalling any "free fonts," and then commercial, 3rd party fonts. A lot of free fonts are just poorly designed, and can cause issues, though they might work fine in some other programs.
    I use a font manager, so that I only have ~ 350 fonts installed at one time, and then dynamically install fonts, as needed for Projects. That keeps my machine clean, and if, upon installation, I get a crash/hang, I know that at least one font in that Set is causing it. This helps, as my workstation has ~ 19,000 fonts on it, and some are free fonts, and many are from 3rd parties. Some are also very, very old.
    Good luck,
    Hunt
    PS - one common cause for hangs on loading PrPro can be from VST's, used in Audio-editing. If you also have a lot of VST's, you could have two issues with two separate programs, i..e. PS hanging on fonts, and PrPro hanging on VST's. The results would be the same, but the causes could be different. That leads to even more work. For PrPro, also see this ARTICLE. If you get PS launching, but PrPro is still not functioning, drop by the PrPro Forum, and someone can help you there.

  • Help with Pro*C/C++ precompiler error

    Hello.
    I have a little experience working with Pro*C/C++ and now I am trying to learn more by my own.
    I think this is an easy question. I am trying to precompile the Thread_example1.pc code from Pro*C/C++ Precompiler Programmer's Guide, Release 9.2 (I am trying it in a windows machine because I have pthreads for windows installed, so that I have commented the DCE_THREADS references).
    The thing is I am not able to precompile the code (I have tried several precompiler options).
    Now I am getting the error (I am sorry it is in Spanish):
    Error semßntico en la lÝnea 126, columna 32, archivo d:\Ejercicios_ProC\MultithreadExample\Thread_example1.pc:
    EXEC SQL CONTEXT ALLOCATE :ctx;
    ...............................1
    PCC-S-02322, se ha encontrado un identificador no definido
    The thing is that it is defined (outside a EXEC SQL DECLARE section but the precompiler CODE is set to default that does not need to be inside).
    If I declare it inside a EXEC SQL DECLARE section I get:
    Error semßntico en la lÝnea 105, columna 18, archivo d:\Ejercicios_ProC\MultithreadExample\Thread_example1.pc:
    sql_context ctx[THREADS];
    .................1
    PCC-S-02322, se ha encontrado un identificador no definido
    I have also tried writing EXEC SQL CONTEXT USE :ctx[THREADS]; just before the declare section but I get the same error than before.
    Can someone help me?

    Hmm, try the updated one (mltthrd1.pc). I've tried it (and a converted-to-pthread version on Linux). Both work fine. What version of Pro*C are you using?
    NAME
      MltThrd1
    FUNCTION
    NOTES
      32-bit Pro*C/C++ Multithreaded sample program from Pro*C/C++ User's Guide.
    Requirements
      The program requires a table ACCOUNTS to be in the schema
      SCOTT/TIGER. The description of ACCOUNTS is.
    SQL> desc accounts
    Name                  Null?   Type
    ACCOUNT                       NUMBER(10)
    BALANCE                       NUMBER(12,2)
    For proper execution, the table should be filled with the
    accounts 10001 to 10008.
         shsu: run MltThrd1.sql first.
    OWNER
    DATE
    MODIFIED
      rahmed     10/10/96 - ported for WIN32 port.
    #include <windows.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sqlca.h>
    #define CONNINFO "SCOTT/TIGER"
    #define THREADS 3
    EXEC SQL BEGIN DECLARE SECTION;
         struct parameters
              sql_context * ctx;
              int thread_id;
         typedef struct parameters parameters;
         struct record_log
              char action;
              unsigned int from_account;
              unsigned int to_account;
              double amount;
         typedef struct record_log record_log;
    EXEC SQL END DECLARE SECTION;
    /* Function prototypes   */
    void err_report(struct sqlca);
    void do_transaction(parameters *);
    void get_transaction(record_log**);
    void logon(sql_context,char *);
    void logoff(sql_context);
    record_log records[]= { { 'M', 10001, 10002, 12.50 },
                   { 'M', 10001, 10003, 25.00 },
                   { 'M', 10001, 10003, 123.00 },
                   { 'M', 10001, 10003, 125.00 },
                   { 'M', 10002, 10006, 12.23 },
                   { 'M', 10007, 10008, 225.23 },
                   { 'M', 10002, 10008, 0.70 },
                   { 'M', 10001, 10003, 11.30 },
                   { 'M', 10003, 10002, 47.50 },
                   { 'M', 10002, 10006, 125.00 },
                   { 'M', 10007, 10008, 225.00 },
                   { 'M', 10002, 10008, 0.70 },
                   { 'M', 10001, 10003, 11.00 },
                   { 'M', 10003, 10002, 47.50 },
                   { 'M', 10002, 10006, 125.00 },
                   { 'M', 10007, 10008, 225.00 },
                   { 'M', 10002, 10008, 0.70 },
                   { 'M', 10001, 10003, 11.00 },
                   { 'M', 10003, 10002, 47.50 },
                   { 'M', 10008, 10001, 1034.54}};
    static unsigned int trx_nr=0;
    HANDLE hMutex;
    void main()
         EXEC SQL BEGIN DECLARE SECTION;
              sql_context ctx[THREADS];
         EXEC SQL END DECLARE SECTION;  
         HANDLE thread[THREADS];
         parameters params[THREADS];
         int j;
         DWORD ThreadId ;
         /* Initialize a process in which to spawn threads. */
         EXEC SQL ENABLE THREADS;
         EXEC SQL WHENEVER SQLERROR DO err_report(sqlca);
         /* Create THREADS sessions by connecting THREADS times, each
         connection in a separate runtime context. */
         for(i=0; i<THREADS; i++){
              printf("Start Session %d....\n",i);
              EXEC SQL CONTEXT ALLOCATE :ctx[j];
              logon(ctx[j],CONNINFO);
         /* Create mutex for transaction retrieval.
            Created an unnamed/unowned mutex. */
         hMutex=CreateMutex(NULL,FALSE,NULL);
         if (!hMutex){
              printf("Can't initialize mutex\n");
              exit(1);
         /* Spawn threads. */
         for(i=0; i<THREADS; i++){
              params[j].ctx=ctx[j];
              params[j].thread_id=i;
              printf("Thread %d... ",i);
              thread[j]=CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)do_transaction,
                                     &params[j],0,&ThreadId);
              if (!thread[j])
                   printf("Cant create thread %d\n",i);
              else
                   printf("Created\n");
         /* Logoff sessions. */
         for(i=0;i<THREADS;i++){
              printf("Waiting for Thread %d to stop....",i); /* waiting for thread to end */
              if(WaitForSingleObject(
                             thread[j],                       /* handle of thread  */
                             INFINITE) != WAIT_OBJECT_0)      /* time-out interval */
                   printf("Error waiting for thread % to terminate\n", i);
              else
                   printf("Thread %d stopped\n",i);
              printf("Stop Session %d....\n",i);
              logoff(ctx[j]);
              EXEC SQL CONTEXT FREE :ctx[j];
    } /* end main() */
    * Function: do_transaction()
    * Description: This function executes one transaction out of
    *                          the records array. The records array is managed
    *                          by get_transaction().
    void do_transaction(parameters *params)
    struct sqlca sqlca;
    EXEC SQL BEGIN DECLARE SECTION;
         record_log *trx;
    EXEC SQL END DECLARE SECTION;
    sql_context ctx;
    ctx = params->ctx;
         /* Done all transactions ? */
         while (trx_nr < (sizeof(records)/sizeof(record_log))){
              get_transaction(&trx);
              EXEC SQL WHENEVER SQLERROR DO err_report(sqlca);
              /* Use the specified SQL context to perform the executable SQL
              statements that follow. */
              EXEC SQL CONTEXT USE :ctx;
              printf("Thread %d executing transaction # %d\n",params->thread_id,trx_nr);
              switch(trx->action){
                   case 'M':       EXEC SQL UPDATE ACCOUNTS
                                  SET BALANCE=BALANCE+:trx->amount
                                  WHERE ACCOUNT=:trx->to_account;
                                  EXEC SQL UPDATE ACCOUNTS
                                  SET BALANCE=BALANCE-:trx->amount
                                  WHERE ACCOUNT=:trx->from_account;
                                  break;
                   default:
                                  break;
              EXEC SQL COMMIT;
    * Function: err_report()
    * Description: This routine prints the most recent error.
    void err_report(struct sqlca sqlca)
         if (sqlca.sqlcode < 0)
              printf("\n%.*s\n\n",sqlca.sqlerrm.sqlerrml,sqlca.sqlerrm.sqlerrmc);
         exit(1);
    * Function: logon()
    * Description: This routine logs on to Oracle.
    void logon(sql_context ctx,char *conninfo){
         EXEC SQL BEGIN DECLARE SECTION;
              char connstr[20];
         EXEC SQL END DECLARE SECTION;
         EXEC SQL CONTEXT USE :ctx;
         strcpy(&connstr[0],(char*)conninfo);
         EXEC SQL CONNECT :connstr;
    * Function: logoff()
    * Description: This routine logs off from Oracle.
    void logoff(sql_context ctx)
         EXEC SQL CONTEXT USE :ctx;
         EXEC SQL COMMIT WORK RELEASE;
    * Function: get_transaction()
    * Description: This functions manages the records array.
    void get_transaction(record_log** temp)
    DWORD dwWaitResult;
         /* Request ownership of mutex. */
         dwWaitResult=WaitForSingleObject(
                             hMutex,      /* handle of mutex   */
                             INFINITE);       /* time-out interval */
         switch (dwWaitResult) {
        /* The thread got mutex ownership. */
        case WAIT_OBJECT_0:
                        *temp = &records[trx_nr];
                        trx_nr++;
                        /* Release ownership of the mutex object. */
         if (! ReleaseMutex(hMutex))
                             printf("Not able to release mutex\n");
         break;
        /* Cannot get mutex ownership due to time-out. */
        case WAIT_TIMEOUT:
                             printf("Cannot get mutex ownership due to time-out\n");
        /* Got ownership of the abandoned mutex object. */
        case WAIT_ABANDONED:
                             printf("Got ownership of the abandoned mutex object\n");
    }

  • How much real world difference would there be between the 1600MHz memory of a 4,1 Mac Pro and the 800MHz memory of a 3,1 Mac Pro? My main app is multitrack audio with Pro Tools. Thanks so much.

    How much real world performance difference would there be between the 1600MHz memory of a 4,1 Mac Pro and the 800MHz memory of a 3,1 Mac Pro? My main app is multitrack audio with Pro Tools. Thanks so much. The CPU speed of either one would be between 2.8GHz and 3.0GHz.

    What are the differences.... firmware and build, there were tweaks to the PCIe bus itself. As a result 3rd party cards and booting is better.
    Support in 5,1 firmware for more 56xx and W35/36xx processors. Also memory timing.
    The 4,1 was "64-bit boot mode optional" and 5,1 was default. I don't know if there are changes but I assume so, even if it is not reflected elsewhere or in version number.
    I don't know what the prices are but 2009, to buy one today, when the 2010 is $1800.
    The 2008 of course was test bed for 64-bit UEFI and it sure seems even Lion and then ML are not as well engineered - outside of Linc who would be the least likely to have a problem.
    I would assume 2010 has better support for 8GB and even 16GB DIMMs as well as for 1333MHz.
    Nehalem family had only come out in fall 2008 and a lot of work went into making improvements well past 2009.
    If you remember, there were serious heat problems with those and 10.5.7+ up thru 10.6.2 even with iTunes, audio, and hyperthreading and cores hitting and staying in 80*C range. That I assume was both poor code (sleep does not mean poke and ask constantly) as well as changes in SMC and kernel improvements, to work around. Microcode can be patched in firmware, kernel, by drivers and by code, but it is best when the chips and core elements don't need to be.
    If someone is stretched, and can get 2009 for $1200 it might be a fine fit. That year offered the OEM GT120 which isn't really as nice and matched for today both OS and apps that rely on a GPU. And for odd reasons two such 120's don't work well in Lion+ but that is probably minor. Having the 5770 is just "nicer" though.
    There are some articles about trouble booting with PCIe SATA/SAS/SSD and less trouble with 2010. Also support for graphic card and audio I think was one of those "minor" 5770 related support issues. But shows some small changes were made there too.
    I wish someone would come out and pre-announce DDR4 + SATA3 along with PCIe 3.x (for bandwidth and more power per rail) along with say Ivy Bridge-E socket processors was going to be this summer's 3 yr anniversary and to replace the 2010 designed motherboard. But that is what is on Intel's and others drawing boards simmeringn in the pot.

  • Updating Palm TX to 32 bit Win 7 Pro from XP: use XP mode? Or Win 7?

    I am really good at making fatal errors with technology and my Palm is too critical to risk,  so I bought a 32 bit laptop, with Windows 7 pro and XP mode installed.  
    I have scoured the forums  but all I can find are problems/solutions with 64 bits (which is what scared me off in the first place of course).
    First, should I install in XP mode?  Or will installing in Win 7 in a 32 bit computer go smoothly?  
    Second, can I safely use my original disc with the 4.2 version of Palm Desktop?
    Finally, for my peace of mind, would you kindly check my checklist for errors or omissions or danger zones.  
    1) synch the device to Palm desktop
    2) backup to my SD card with NVBackup
    3) Open XP mode  - or do not open XP mode as you recommend
    4) install Palm desktop  (from disc or download as you recommend)
    5) enter the same user name as on the device/ xp computers
    6) change conduits to Handheld overrides desktop
    7) synch with the cable. Make tea. Be calm.
    8) check data on handheld and on desktop for errors.
    9) When somewhat confident all is well, return conduits to synchronize except for Backup which stays as Handheld overrides desktop. (nor sure why, but it is the default I guess.)
    Thanks,
    Muddling
    This question was solved.
    View Solution.

    Hey!  You have Win7... I'm still using Vista64 as my most modern PC OS!  
    To turn off UAC - go to the Control Panel/Users/Turn off User Account Control.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Remove Company Code with all the Employees in it from r/3?

    Hi i have a bit unusual requirement.
    i want to know how can i Remove a Company Code with all its assigned Employees completely from a system(r/3) ?
    can this be possible at all? if yes then please also mentions what can be the side effects of this action.

    Jack,
    You will have to follow reverse engineering....
    As Sikandar Guru Mentioned.....identify all the PERNRs for mass deletion....
    Secondly I believe, that you want to Delete the Company Code.....check with Finance Folks.......If they have no issues, you can delete the co. code with TCODE EC01... but this will not delete the Relationships to Personnel area...etc.
    There may be custom Features, Reports or programs functioning based on Co. Code.......
    So, in a way....its not feasible..neither wise to attempt deletion of Co. Code....
    S_PHO_48000106 is the TCode for Mass Deletion.
    Good Luck !!!
    Kumarpal Jain.
    Edited by: Kumarpal Jain on Oct 26, 2009 3:20 PM

  • Windows 7 64 bit on Mac Pro Ver 1.1 installation options!

    Hi All, There seems to be a lot of concern that Win 7 wont run on MP V:1.1. I have this MP and do want to install Win 7 on it.
    My Spec is as follows:
    Mac Pro (2 x 2.66GHz Dual Core Intel Xeon) Ver 1.1. HD4870 Graphics Card and a 24" Dell U2410 Display. My O/S is Lion.
    Question: Will it work installed using Lion's Boot Camp on a freshly formated hard drive?
    Question. If Boot Camp is the problem can I install Windows 7 as a totally independent O/S on freshly formated hard drive on my Mac Pro by pulling the Lion O/S out making it exclusively a Windows Pc?
    This option, if possible would be very inconvenient as I suppose I would have to remove the Hard Drive containing the Lion O/S every time I wanted to use Win 7?
    Can anyone advise me please

    I just thought I would share my Mac Pro 1.1 experience. I recently had to replace a failed memory riser card  by buying a pair from ebay (they both failed a month apart) and took advantage of the opportunity to replace my Mac Pro 2006 with the 2008 model for $700 and inserted my drives and upgraded to 10.8.5. Just holding off on Mavericks for now...  Bought a Radeon 5770 and graphics are just peachy (i'm not a gamer). Then I put a samsung ssd 512gb in as the system drive and a 3tb for data so that machine is going fine
    What to do with the 2006 Mac Pro?. No one wants it on ebay so I thought i'd try it on Windows. Windows 32bit loads via boot camp once you figure out how to  recognise the sata bus (depends on your windows 7 dvd version i think) but under 32 bit you only get 2gb usable ram ! something , not just video is addressing 2gb so that *****. You cannot boot off the 64bit dvd (try it) so i installed 64bit windows 7 on a clean drive on my core2dou pc then put the drive in my 4core xeon mac pro. It booted fine and installed alot of drivers for the xeons automatically. Then I got some drivers from 64bit bootcamp and sound drivers from the realtek website. Then , I upgraded to 64 bit windows 8 pro and everything still works. Then, I downloaded the free windows 8.1 pro update and everything still works..... As PCs go, this is still a pretty fast machine, and gives little away to , say an i5 or i7. If you put in an SSD and gamers video card it  would fly, but i dont need that....

  • Generating 32 bit code on 64bit system

    redhat el4 update 3, 2.6.9-34.ELsmp on a sun w2100z
    With the Solaris x86 compiler the default is 32 bit code even
    on a 64 bit system. Is a way to get 32 bit code generated on
    a 64bit system with the Linux version? Other than running
    on a 32 bit system (which works fine).
    mw

    As a general rule, you should try using appropriate gcc flag if that functionality is not covered in our compilers -flags output. If neither provides the needed functionality, ask, something could have been overlooked.
    Chris, I don't think we have new flags mentioned anywhere yet, docs update is scheduled to happen later, somewhere closer to release. We could make a list of adopted gcc-style flags.

  • Acquiring 24-bit sound with a third-party sound card... truncation issues.

    I am having a very strange problem when using LabVIEW to acquire audio
    data via the Windows API from a Creative Professional E-MU 1616m sound
    card.  The goal is to acquire sound in 24-bit resolution. 
    When capturing sound in 16-bit mode (as set in the LabVIEW software),
    the E-MU 1616m behaves as expected, with a 105dB SNR and approximately
    -130dB noise floor, after dithering.  However, when switching to
    24-bit capture mode, a very severe truncation occurs.  This sends
    the harmonic distortion and noise through the roof.  After
    investigating fairly deeply in our LabVIEW code, I am wondering what
    might be the problem.
    I have compiled a number of screenshots which showcase the problem in more detail.
    Here is a background of the experiment:
    For these tests, both the analog and digital audio was generated by an
    Audio Precision System Two system, and was passed directly into the
    respective line-level or digital audio inputs.  Digital audio was
    tested using both coax and optical cable.  In the sound card
    control software, the audio was sent directly from the input channel
    into the WAVE IN L/R (via the Windows API, I assume).  The
    sampling rate for the profile was 96kHz.
    The sampling rate in all LabVIEW functions was set to 96kHz.  The sample rate set in the AP Digital generator was 96kHz.
    ANALOG 20dBu 96kHz 16bit.jpg
    In this test, everything looks fine.  The audio input is at
    Full-scale for the E-mu's ADCs.  It is exhibiting expected 16-bit
    performance (with dithering).
    ANALOG 20dBu 96kHz 24bit.jpg
    Now we instruct the driver to capture sound in 24 bits.  Notice
    that the noise floor and THD+N go up considerably.  Effects of
    truncation become visible on the time-domain display.
    ANALOG -20dBu 96kHz 16bit.jpg
    Now we drop the input level to -20dBu.   The performance
    starts to look a little messy but is still acceptable.  Note,
    however, the high peaks on the odd harmonics.
    ANALOG -20dBu 96kHz 24bit.jpg
    Now we try to capture at 24 bits.  The effects of truncation are extreme at this low signal level.
    ANALOG -60dBu 96kHz 16bit.jpg
    Now we are at extremely low signal levels.  Individual
    quantization levels can be seen on the signal.  Dither is also
    present.  Performance is still good.
    ANALOG -60dBu 96kHz 24bit.jpg
    However, when increasing the resolution to 24 (which should increase
    the number of quantization levels), our signal is reduced to a square
    wave.  Obviously something is wrong.
    DIGITAL 0dB 16bit 96kHz 16bit.jpg
    Now on to the digital tests.  We start with full-scale.  We
    used an AP outputting a properly dithered 16-bit signal over an optical
    cable.  The soundcard is instructed to receive in 16 bit
    mode.  It looks good.
    DIGITAL 0dB 16bit 96kHz 24bit.jpg
    Using the same input, we change to 24 bit receive mode. 
    DIGITAL 0dB 24bit 96kHz 16bit.jpg
    Now we set up the AP to output a properly dithered 24-bit signal at
    full-scale.  The dips in the frequency domain show us that
    something is wrong.
    DIGITAL 0dB 24bit 96kHz 24bit.jpg
    Receiving in 24-bit mode.  Same story as before.
    DIGITAL -90dB 16bit 96kHz 16bit.jpg
    Now we decrease the amplitude to a low level.  Well-implemented dither is shown here clearly.
    DIGITAL -90dB 16bit 96kHz 24bit.jpg
    However, receiving in 24-bit mode reduces the signal to a dithered square wave.
    DIGITAL -90dB 24bit 96kHz 16bit.jpg
    Here is the low-level signal with the AP generating a 24-bit
    signal.  Dither is applied, but vanishes in the e-mu 1616m. 
    It seems the dither level has been changed.  This is the cause of
    our dips from before.
    DIGITAL -90dB 24bit 96kHz 24bit.jpg
    And finally, we transmit and receive in 24-bits.  Here are the results.
    We have achieved similar results using several of your breakout boxes and soundcards.
    Attached are all screenshots, as well as the main VI (AP Test.vi) and
    the dependent vi's.  There are a number of SVT vi's in the
    project, but they can be ignored since they are not related to the
    problem.
    Any help would be greatly appreciated.
    Best Regards,
    Brett Gildersleeve
    Attachments:
    AP Test.zip ‏2381 KB

    Hi Brett,
    I took a look at the code you attached, but it appears that you may have left out the subvi that actually acquires the sound. When you say Windows API, I assume that you are calling a DLL at some point. How are you configuring the inputs (or what function are you using)? It could be (and this is just a guess) that when you specify 24 bits, the DLL returns the data in a very specific format. If you don't interpret the bits that are returned correctly, LabVIEW may not know what to do with them, as LabVIEW does not have a native 24-bit datatype. If there is any documentation for these function calls, our answer might there...
    Just some thoughts -- thanks for posting your solution!
    Charlie S.
    Visit ni.com/gettingstarted for step-by-step help in setting up your system

  • External procedure with Pro*C in it

    I have some C functions that I have compiled into a shared library on Unix.
    One of the functions contains a SQL statement to insert into a table, so I
    compile the file with Pro*C. It compiles fine. I have another C program
    that calls the function within my shared library. It runs fine and the shared
    library does insert the data into the table.
    I create an Oracle library that points to the shared library, then create a stored
    function in the database that executes the routine in the shared library. At
    this point, everything seems in place. We have been using external procedures
    for a while, and they seem to work OK. This is the first one we have, though that
    has Pro*C code in it.
    When I execute the stored function to execute my Pro*C routine, I get the errors
    ORA-06520: PL/SQL: Error loading external library
    ORA-06522: Unresolved external.
    This shared library is the first one that we are using that has Pro*C in it. The
    documentation doesn't say anything about being able to use Pro*C routines
    as external procedures; but it doesn't say you can't. Am I attempting the impossible?
    If not, what am I missing?
    null

    Is your library object pointing to one shared library and in turn function in this library is 'looking' to another shared library? if so, that is not allowed

  • Problem with Pro*C Precompiler in 10gR2

    To test whether my pro*c precompiler was working, I copied a sample program and tried running it through the precompiler. I am running Fedora 6 on Linux X86-64
    This was what I got.
    proc iname=sample1.pc ltype=long
    Pro*C/C++: Release 10.2.0.1.0 - Production on Sat Aug 18 01:53:49 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    System default option values taken from: /u01/app/oracle/product/10.2.0/db_1/precomp/admin/pcscfg.cfg
    Syntax error at line 72, column 26, file /usr/include/gconv.h:
    Error at line 72, column 26 in file /usr/include/gconv.h
    unsigned char **, size_t *, int, int);
    .........................1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "size_t" to continue.
    Syntax error at line 88, column 7, file /usr/include/gconv.h:
    Error at line 88, column 7 in file /usr/include/gconv.h
    size_t *);
    ......1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "size_t" to continue.
    Syntax error at line 97, column 6, file /usr/include/gconv.h:
    Error at line 97, column 6 in file /usr/include/gconv.h
    size_t *);
    .....1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "size_t" to continue.
    Syntax error at line 106, column 3, file /usr/include/gconv.h:
    Error at line 106, column 3 in file /usr/include/gconv.h
    __gconv_trans_fct __trans_fct;
    ..1
    PCC-S-02201, Encountered the symbol "__gconv_trans_fct" when expecting one of th
    e following:
    char, const, double, enum, float, int, long, ulong_varchar,
    OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
    OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
    OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
    struct, union, unsigned, utext, uvarchar, varchar, void,
    volatile, a typedef name,
    Syntax error at line 0, column 0, file sample1.pc:
    Error at line 0, column 0 in file sample1.pc
    PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the following:
    ; : an identifier, end-exec, random_terminal
    Error at line 0, column 0 in file sample1.pc
    PCC-F-02102, Fatal error while doing C preprocessing
    This is what I have in pcsfg.cfg
    sys_include=(/build/s630/precomp/public,/usr/include,/opt/gcc33/lib64/gcc-lib/x86_64-suse-linux/3.3/include,/usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/include,/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/include,/usr/include/linux,/usr/lib/gcc/x86_64-redhat-linux/4.1.1/include)
    ltype=short
    define=__x86_64__
    include=(/u01/app/oracle/product/10.2.0/db_1/precomp/public)
    include=/u01/app/oracle/product/10.2.0/db_1/precomp/hdrs
    I would be very grateful for any help.
    Thanks

    Thanks very much for your help. With code=CPP the size_t error disappears. But will that produce Pro C code in C format ?
    I ran into another problem.
    [oracle@Falcon source]$ proc iname=sample1.pc ltype=long code=CPP
    Pro*C/C++: Release 10.2.0.1.0 - Production on Sun Aug 19 08:33:31 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    System default option values taken from: /u01/app/oracle/product/10.2.0/db_1/precomp/admin/pcscfg.cfg
    Semantic error at line 19, column 22, file sample1.pc:
    EXEC SQL CONNECT :userid;
    .....................1
    PCC-S-02322, found undefined identifier
    Semantic error at line 25, column 23, file sample1.pc:
    WHERE deptno = :dept_number;
    ......................1
    PCC-S-02322, found undefined identifier
    Semantic error at line 38, column 39, file sample1.pc:
    EXEC SQL FETCH emp_cursor INTO :emp_name;
    ......................................1
    PCC-S-02322, found undefined identifier
    [oracle@Falcon source]$ vi sample1.pc
    Where this is the code.
    [oracle@Falcon source]$ cat sample1.pc
    #include <stdio.h>
    /* declare host variables */
    char userid[18] = "PRODUSER/PRODUSER";
    char emp_name[10];
    int emp_number;
    int dept_number;
    char temp[32];
    void sql_error();
    /* include the SQL Communications Area */
    #include <sqlca.h>
    main()
    { emp_number = 7499;
    /* handle errors */
    EXEC SQL WHENEVER SQLERROR do sql_error("Oracle error");
    /* connect to Oracle */
    EXEC SQL CONNECT :userid;
    printf("Connected.\n");
    /* declare a cursor */
    EXEC SQL DECLARE emp_cursor CURSOR FOR
    SELECT ename
    FROM emp
    WHERE deptno = :dept_number;
    printf("Department number? ");
    gets(temp);
    dept_number = atoi(temp);
    /* open the cursor and identify the active set */
    EXEC SQL OPEN emp_cursor;
    printf("Employee Name\n");
    printf("-------------\n");
    /* fetch and process data in a loop
    exit when no more data */
    EXEC SQL WHENEVER NOT FOUND DO break;
    while (1)
    EXEC SQL FETCH emp_cursor INTO :emp_name;
    printf("%s\n", emp_name);
    EXEC SQL CLOSE emp_cursor;
    EXEC SQL COMMIT WORK RELEASE;
    exit(0);
    void sql_error(msg)
    char *msg;
    char buf[500];
    int buflen, msglen;
    EXEC SQL WHENEVER SQLERROR CONTINUE;
    EXEC SQL ROLLBACK WORK RELEASE;
    buflen = sizeof (buf);
    sqlglm(buf, &buflen, &msglen);
    printf("%s\n", msg);
    printf("%*.s\n", msglen, buf);
    exit(1);
    Why won't it recognize userid ? And that is a valid login/password.

  • Environnement with pro-cobol and linux redhat

    Hi,
    I have a linux redhat Linux 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
    and oracle 11g database where we have installed Pro-cobol with a launcher xframe ( not me !)
    we want to use command-line with pro-cobol :
    exemples :
    export COBOLOPTS="-dy -shared -M -lxconv -L$XFRAMEHOME/lib -I $PWD -WC,""DLOAD"" -WC,""SOURCE"" -WC,""COPY"" -WC,""XREF"" -WC,""FLAG(E)"" -WC,""MODE(STD)"" -WC,""ALPHAL(WORD)"" -WC,""NOTRUNC"" -WC,""NOSDS"" -WC,""SRF(FIX)"" -WC,""MAP"" -do ./ -dp ./ "
    cobol -o OV1SLSP.e OV1SLSP.pre OV1MADR0.o $ORACLE_HOME/precomp/lib/cobsqlintf.o OV1MADR1.pre.o OV1MSNT0.pre.o 2> OV1SLSP.errors
    execution:
    OV1SLSP.e
    results
    Erreur de segmentation
    we have a this error.
    but when we use xframe launcher :
    execution:
    xrun OV1SLSP
    results
    XRUN: STARTING OV1SLSP
    OV1MADR0 PLANTAGE SQL RNVP : -1012
    SQLERRMC ORA-01012: non connecté
    COBOL:rts: HALT: JMP0015I-U [PID:000004A0 TID:B7FFC940] CANNOT CALL PROGRAM 'COBCANC'. xvsamRts: undefined symbol: COBCANC PGM=OV1MADR0
    XRUN: TERMINATED WITH CODE 134
    =>This message is normal because we have connect to database !
    It's working perfect.
    My question is : what is the correct librairies to have to make static compiling pro-cobol's programs?
    hope to be cleared.
    Thanks.
    Edited by: french_dam on 28 janv. 2011 10:07
    Edited by: french_dam on 28 janv. 2011 10:11

    Have you checked the system requirements for using Pro-Cobol with Oracle 11g and Linux? See here:
    Pro*COBOL® Programmer's Guide 11g Release 1 (11.1)
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28428/pcoabops.htm#insertedID1
    Hope this helps,
    Ben

Maybe you are looking for

  • IPhone iOS4 Exchange emails continue to re-download.

    We have several iPhone iOS4 users whose emails download, disappear and re-download. Seems to be a continuous loop. Tried the following solutions: 1. Delete and re-create Exchange account on iPhone. 2. Reset Network settings. 3. Installed network conf

  • H67MA-E35 (B3) HDMI and DVI-D no output

    Just did a new build consisting of: Mobo H67MA-E35 B3 CPU Intel i5-2500 3.3 Ghz Mem 8GB DDR3 1333MHz Win7 64bit I am not getting an output signal from either the HDMI or the DVI-D.  The VGA works fine. I flashed the Mobo BIOS to E7680IMS v11.6 and in

  • XSLT code required

    Hi Mates, I have requirement like need to check value endwith Y then add comment line and populate output field using XSLT mapping. Ex: Input :Source=KolkataY check Source is ends with Y then Add comment line and populate Source =Kolkata Please provi

  • InitialContext and PROVIDER_URL

    I'm creating an InitialContext in a server-side object, relying on the WebLogic Server to use the local naming service. This works as expected. However, once created, I would like to determine the URL and initial context factory for the local naming

  • How to remove information of datafile from controlfile without recreating i

    Hi , I am using Oracle 10g RAC.I just to add a datafile in my RCA database but it get failed but its information get registered in Contorlfile . I started my database by offline drop to that datafile in mount stage. Is there any procedure by which i