SDK CVI compiler Warnings 64-bit

It seems I am finding CVI Compiler warnings when compiling 64 Bit applications with SDK. I don't get these warning errors when I compile the same applications for 32 Bit.
For example the CVI Compiler warning that I just found was found when I used SDK header file: "SetupAPI.h" with the typedef struct: SP_DEVINFO_DATA and SP_DEVICE_INTERFACE_DATA.
The warning message I got was when I compiled the statements with the SetupAPI.h file included:
SP_DEVINFO_DATA DeviceInfoData;
/* warning message */
DeviceInfoData.cbSize = sizeof(SP_DEVINFO_DATA);
// Warning: Conversion from 'unsigned __int64' to 'DWORD' might lose data.
/*warning message*/
SP_DEVICE_INTERFACE_DATA did = {sizeof(did)};
// Warning: Conversion from 'unsigned __int64' to 'DWORD' might lose data.
When I compile these statements in 32-Bit I don't get these errors.
Of course I can change the "SetupAPI.H" SDK Header supplied by NI but that defeats the whole purpose of why NI would distribute the header file in the first place.

OK - Milan -
I think you misunderstood what I was writing about.
If you look at the SetupAPI.h file that is supplied by NI SDK with CVI 2010 at line 700 with the following typedef  struct:
// Device information structure (references a device instance
// that is a member of a device information set)
typedef struct _SP_DEVINFO_DATA {
    DWORD cbSize;
    GUID  ClassGuid;
    DWORD DevInst;    // DEVINST handle
    ULONG_PTR Reserved;
} SP_DEVINFO_DATA, *PSP_DEVINFO_DATA;
The DWORD is defined as
"typedef unsigned long"
 in cvidef.h (CVI 2010) header file.
Yes I could change the SetupAPI.h inside the header file to change the type to be __int64 instead so that it works with 64 Bit. However, if other applications that are written for 32 bit will now be impacted if the SetupAPI.h is used with the __int64 data type DWORD.
So what NI should so everywhere where they define "DWORD" that is used in the SDK they should have a conditional compile to set the type to "typedef __int64" in CVI 64-bit applications and
"typedef unsigned long" in 32 Bit Applications.

Similar Messages

  • Flex Ant SDK giving compile warnings not present in Flex Builder

    We have a project when  we complie from Flash Builder 4 it compiles as expected with no errors. However when we do an ANT build on a build machine with no Flash Builder installed, the same code (checked out from SVN) and same Flex SDK we have started to get an error: "Error: Access of possibly undefined property labelName through a reference with static type ..."
    If I Run As the ant build from inside eclipse it builds fine and no errors (I verified the SDKs are the same). I can "work around" this by using show-actionscript-warnings="false" in the build.xml file, I'd rather not have to do this.
    The error labelName property in the component that is referenced in the error is indeed marked public and it is [Bindable]. In fact the component that it says this error is associated with hasn't changed in a couple months.
    Some other info that might be of interest on our system that builds the deploy version:
    1. Our build box is running mac os x (10.5.6), Processor: 2GHz Intel Core 2 Duo, Memory: 2GB
    2. Flex SDK 4.1A
    3. Java version 1.5.0_13
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
    JavaHotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
    4. Ant -version: Apache Ant version 1.7.0 compiled on February 29 2008
    Any ideas as to what could be causing this "phantom" error in our module? How to fix? Hints or other avenues to pursue?
    Thanks,
    Mike Weiland

    So it turns out I need to overlay the latest SDK into the Flash Builder directory completely, not just the files I was messing with before.
    In flex builder, go to the directory where the SDKs are installed.
    On my system this is
    C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks
    On a Mac, it might be
    /Applications/Adobe Flash Builder 4.5/sdks
    There should be a 3.6.0, 4.5.0 and a 4.5.1 present.
    Make a copy of the 4.5.1 directory.
    Download the AdobeAIRSDK from
    Windows -  http://airdownload.adobe.com/air/win/download/latest/AdobeAIRSDK.zip
    Mac - not sure what the link is.
    Unzip this file, then overlay the contents into the 4.5.1 directory. There are 8 directories, and 2 files. The target 4.5.1 has 10 directories, and 7 files (on my system)
    In Flash Builder, project properties need to be tweaked.
    The Flex Compiler tab - Check [Use a specific SDK:], and pick Flex 4.5.1 in the dropdown.
    And in the Additional compiler arguments add
    -swf-version=12
    In your code, to use the AEC, pick the Enhanced Microphone, as in
    microphone = Microphone.getEnhancedMicrophone();
    Now if only I could figure out what all the settings do and which one's I need to tweak for our environment... loads of experimenting.
    Mark.

  • Flex SDK compiler warnings localization

    Hi, guys.
    Wonder if i can disable localization of compiler warnings, so that sdk compiler won't take system locale (windows) and use english instead?
    Thanx in advance,
    Tim Tekaev

    use in compiler option : -locale en_US

  • Using Flex 2 SDK to compile for Flash Lite 2.0

    As I understand Flash Lite 2.0 is a stripped down version of
    Flash 7 (that is ActionScript 2.0) with a couple of things added
    for mobile specific things. But is it possible to use the free Flex
    2 SDK to compile a SWF that will run on Flash Lite 2.0 (or Flash 7
    for that matter).
    Zarathrusta

    I'm not familiar with Flash Lite 2.0, so maybe I shouldn't be
    answering this, but I've used the SDK for several projects and I
    believe that like Flex Builder it requires at least Flash 8. So, if
    FL is comparable to Flash 7, I doubt if it would work. Just my
    humble opinion, but hope it helps.
    Later,
    Andy C.(never #)

  • SQL developer not showing compiler warnings

    I'm just testing out the new compiler warning contained in 11g related to the "when others" exception handler when it does not have a subsequent raise or raise_application_error.
    in SQL plus, this works fine:
    SQL> alter session set plsql_warnings='enable:all';
    Session altered.
    SQL>
    SQL> create or replace function do_stuff
      2  return number
      3  as
      4     v_return number;
      5  begin
      6
      7     v_return := 3;
      8     return v_return;
      9
    10  exception
    11  when others then
    12     return null;
    13  end;
    14  /
    SP2-0806: Function created with compilation warnings
    SQL> show errors;
    Errors for FUNCTION DO_STUFF:
    LINE/COL ERROR
    1/1      PLW-05018: unit DO_STUFF omitted optional AUTHID clause; default
             value DEFINER used
    11/6     PLW-06009: procedure "DO_STUFF" OTHERS handler does not end in
             RAISE or RAISE_APPLICATION_ERRORbut in SQL developer the output is:
    BANNER                                                                          
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production    
    PL/SQL Release 11.2.0.3.0 - Production                                          
    CORE     11.2.0.3.0     Production                                                        
    TNS for Linux: Version 11.2.0.3.0 - Production                                  
    NLSRTL Version 11.2.0.3.0 - Production                                          
    session SET altered.
    FUNCTION do_stuff compiled
    No Errors.Anyone experience this issue? is there some setting that makes SQL developer behave differently?

    it must be something I'm doing wrong, above, I was running under windows 7 pointing at the version above.
    I just tried it under an Enterprise Linux pointing at
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production          
    PL/SQL Release 11.2.0.2.0 - Production                                          
    CORE     11.2.0.2.0     Production                                                        
    TNS for Linux: Version 11.2.0.2.0 - Production                                  
    NLSRTL Version 11.2.0.2.0 - Production                                           and I get exactly the same script output and no compiler window....
    actually...... if I go into a procedure window from the schema browser and compile it there, then I get the correct warning messages..... the problem is I mostly develop from .sql files extracted from source control rather than directly from the schema browser, I just want the sql worksheet to be able to show me the same compiler log window.....

  • Can i perform SDK 7 Compilation while maintaining SDK6 look and feel for my App

    In our organization we test the App using visual specs and our existing visual specs are aligned with SDK 6 look and feel. When i compile my app with SDK 7 the visual display of the App changes completely and is no longer in sync with the visual specs used for testing. As SDK 7 compilation is a mandate for post Feb 1 submission, is it possible to compile the code with SDK 7 while maintaining SDK 6 visual look and feel?

    What i am actually trying to do is to maintain the existing SDK6 UI Look and Feel on iOS7. Apple has issued a mandate to have all Apps compiled with SDK7 for App Store submission post Feb1, 2014. If i compile with SDK7, even if i set the deployment target as iOS6, when my app runs on iOS7 it will have the new Apple's iOS7 look and feel. How can i accomplish this?

  • JSP compile warnings

    Folks !
    I have been getting this nuisance warning for ages and I though it was time to get rid of them. Compiling any JSP in JDeveloper I get:
    Warning: package name _jsp.xxxx does not match source file name xxxx
    What is it ?
    Also, anyway to suppress Java compiler warnings so I can look at errors only ?
    thanks a lot,
    -Sanjay

    I have the same problem (many warnings....), but it hasn't cause any problem while running.
    I thing this is becasuse I use uppercase letters inside names of directories.
    Example:
    - my page: public_html/BP/Aplikace.jsp
    - compiled to .java: classes\.jsps\_BP\_Aplikace.java
    - third line of Aplikace.java: package bp;
    So there is the problem: "_BP" (name of directory) versus "_bp" (name of package)!!!
    I thing this is a bug.
    If I am right, I have question for JDevTeam - will it be fixed?

  • [svn:fx-trunk] 11488: Resubmitting binary distribution of xercesPatch. jar from the third party module in the SDK and compiled it with Sun JDK 1.4 .2_12.

    Revision: 11488
    Author:   [email protected]
    Date:     2009-11-05 17:10:10 -0800 (Thu, 05 Nov 2009)
    Log Message:
    Resubmitting binary distribution of xercesPatch.jar from the third party module in the SDK and compiled it with Sun JDK 1.4.2_12.
    QE notes: N/A
    Doc notes: N/A
    Bugs:
    SDK-16818 - Must open-source the code for xercesPatch.jar.
    Reviewer: Discussed with Gordon
    Tests run: Checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-16818
    Modified Paths:
        flex/sdk/trunk/lib/xercesPatch.jar
        flex/sdk/trunk/modules/thirdparty/xerces-patch/build.xml

    Did you try this:
    http://forum.java.sun.com/thread.jsp?thread=434718&forum=60&message=1964421

  • Impdp with created with compilation warnings

    expdp without any error but impdp.
    ORA-39082: Object type TRIGGER:"myuser_name"."AA_CUR_TRIGGER" created with compilation warnings.
    I pick one of compilation errors as above. There are many other errors such as view.
    Did I miss anything? Please help.

    The problem could just be ordering or information missing. expdp exports object in the best order it can think of. By this I mean, if you are exporting a table, it will export the table before the index, and the index before the index_statistics, etc. Sometimes there are objects that are dependent on other objects that are not yet imported. Let's say that you have a procedure that uses a view and a view that uses a procedure. The way expdp/impdp works (and I'm not sure of the order of these 2 objects) is that it will create all procedures and then later on, create all views. (or the other way around, all views, then all procedures). In the case I described above, if views are created before procedures, then the view that calls a procedure will get a compilation warning because the procedure has not been imported yet. If it is the other way around, then the procedure will get the compilation warning because the view is not there.
    The objects will be created and they will recompile the next time you use them. You could also go in after the impdp job is complete and just issue the
    alter object_type schema.name compile;
    and they should compile.
    The other problem you could be running into is if the object you are creating uses another object that is not in the database or if the grant is not there. Let's say that you create a procedure proc_a and it is in the user1 schema. If you try to create a view in user2 that calls proc_a, and if proc_a does not exist, you can get the compilation warning.
    So, I don't think you missed anything.
    Hope this helps.
    Dean

  • Generics, factory methods and compiler warnings

    Hi all,
    I have a parametrized class where new objects are created via a factory. The problem is that I'm getting some compiler warnings. Am I missing something or there's no way to avoid them?
    public interface Schedulable {
    // methods here
    public class Scheduler<T extends Schedulable> {
       // should this be parameterized? If yes, how?
       // (it's not possible to use T while <? extends Schedulable> gives problems)
       private static Scheduler scheduler;
       private NodeManager nodes;
       private DefaultServiceManager<T> services;
       private Timer timer;
       private LifecycleManager lifecycle;
       public static synchronized <E extends Schedulable> QueueScheduler<E> newInstance() {
              if (scheduler == null) {
                 scheduler = new Scheduler();
                scheduler.nodes = DefaultNodeManager.newInstance(scheduler);
                scheduler.services = new DefaultServiceManager<E>(scheduler.nodes);
                scheduler.timer = new Timer(scheduler);
                scheduler.lifecycle = new LifecycleManager(scheduler,
                       scheduler.timer);
                // these fields are initialized here and not into the constructor in order to avoid
               // the 'this' reference to escape (see   //http://www-128.ibm.com/developerworks/java/library/j-jtp07265/index.html
               // for example)
             // all the fields initialized above generate a warning
              return scheduler;
         protected Scheduler() {
              // initialization of some fields here
       // methods here
    // methods here
    }Thanks,
    Michele

    Oops, sorry, didn't see the variable actually is a static, raw one. Here you will have a problem, as for once you cannot use the E for the static variable and second you could not guarantee that a previously created Scheduler would have the same type parameter as the one you are going to create:FirstSchedulable a = Scheduler.newInstance();
    SecondSchedulable b = Scheduler.newInstance(); // would fail!The second call would fail, as the first would have created an instance of Scheduler<FirstSchedulable>, which is stored in the static variable scheduler and not compatible to a Scheduler<SecondSchedulable>.
    You should rethink you design.

  • Raptor (07.15)  almost had compilation  warnings

    The version 07.15 of the Raptor had a feature that would be useful: PL/SQL
    compilation warnings. However it had two problems: 1: the warnings were
    actually
    errors, which alone made the tool unusable, 2: some messages were generated
    without any cause.
    This can be seen in the following:
    INSERT INTO priceloki(t) VALUES (loki_seq.NEXTVAL,
    'Virhe : ' || module || '
    hi_hinnoittelu_pac.hae_hinnastovoimassa_pvm Sqlerr: ' || err_num || ' Errmsg: '
    || err_msg
    Error(68,107): PLW-07202: bind type would result in
    conversion away from column type
    It seems that using expression in assigning to t confuses the compiler, since
    simple variable assignments work correctly.
    In the version 07.96 all traces of the "modern" warning feature are away,
    probably because of field feedback.

    yep. I have warnings in user_errors after compilation.
    It would be better to catch warnings somewhere (into separate output window?) or let user specify compilation level settings...
    select * from user_errors;
    NAME TYPE SEQUENCE LINE POSITION TEXT ATTRIBUTE MESSAGE_NUMBER
    ILOAD_PREPARE_FINISH_CM_PRO PROCEDURE 1 3 5 PLW-07203: parametr 'P_RET_CODE_VC' m&#367;že využívat nápov&#283;du kompilátoru NOCOPY WARNING 7203
    ILOAD_PREPARE_FINISH_CM_PRO PROCEDURE 2 4 5 PLW-07203: parametr 'P_RET_TEXT_VC' m&#367;že využívat nápov&#283;du kompilátoru NOCOPY WARNING 7203

  • PACKAGE_BODY:"FLOWS_030100". compile warnings after import

    When using the datapump import utility most of the FLOWS_030100 packages have compile warnings. The error is
    PLS-00201: identifier 'SYS.WWV_DBMS_SQL' must be declared. The 'SYS.WWV_DBMS_SQL' doesn't exist in the SYS schema, yet it was there on the database that was exported from. Does the apexins.sql script have to be run on the new database ? Database is 10.2.0.3 and apex is 3.1.2.

    I forgot all about that thread, there I was moving from a windows to unix environment. Now i'm cloning my production instance by doing an export\import. Since we just put APEX on unix i never had this problem before, and i don't normally clone by doing an export\import. I thought it was odd that apex is the only app that doesn't seem to come over cleanly using the export/import. In any case i guess i'll remove the apex schema's and reinstall.

  • ++ increment of float inacurate with no compiles warnings???

    Hi,
    I have a simple class that uses the ++ opperator to increment a floting point variable. However the result is not correct and there are no compiler warnings about loss of precision. The class is....
    class Test
        public static void main(String[] args)
            float x = 1.123f;
            x++;
            System.out.println(x);
    }However the result of X is 2.1230001. X will now fail any if statements such as
    if (x = 2.123)
            // Do Something
    }So my question is
    1) Why does this happen
    2) Is it possible to use the ++ operator on a floating point variable with accuracy?
    I'm studying for the SCJP and attention to details like this is everything!!
    Thanks!
    Alan K.

    It has nothing to do with ++.
    SOME THINGS YOU SHOULD KNOW ABOUT FLOATING-POINT ARITHMETIC
    What Every Computer Scientist Should Know About Floating-Point Arithmetic
    Another good (slightly simpler) FP explanation:
    http://mindprod.com/jgloss/floatingpoint.html

  • Qsort issue with CVI 2012 in 64 bit mode

    Possible CVI 2012 64 bit bug.
    Qsort returns very slowly in CVI2012 in 64 bit release mode. Not sure if there are memory leaks or if function actually returns the correct answer as I fixed the problem before going back and isolating the issue to the code supplied. The issue seems to be resolved in CVI 2013.
    In the example provided, an array is created, seeded, and sorted. Approximate timing results (with a chi by eye averaging) are given below for an array of 1e6 double values.
    CVI 2012
    32 bit debug                         32 bit release                                       64 bit debug                                    64 bit release
    4.5 seconds                         0.32 seconds                                       4.3 seconds                                     44.0 seconds
    CVI 2013
    32 bit debug                         32 bit release                                       64 bit debug                                    64 bit release
    2.8 seconds                          0.22 seconds                                      2.0 seconds                                     0.18 seconds
    Attachments:
    qsort test.zip ‏3 KB

    Hey,
    Thank you for your feedback, I compiled your code and you are right. In CVI 2013 the problem seems to be solved. Unfortunately, I can't place a CAR (correction action request) for CVI 2012 because the problem has been addressed by our R&D department. 
    Thanks again for your feedback.

  • Compiling Wine (32-bit) on Arch64 with multilib

    Now I know multilib is not officially supported by Arch, but I need to apply a patch to Wine before compiling it in order to be able to play a game.
    I have installed all the lib32 files (well not all, not catalyst or glibs etc.) but I have all the needed libs.
    So one would assume that I should be able to compile Wine, no?
    Here is the output when I do a simple ./configure
    22:05:16 [speng@spengpc [wine-1.1.14] 3.2]$ ./configure
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for cpp... cpp
    checking whether gcc -m32 works... no
    configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.
    Maybe it's not looking in the right location? Hmm, any ideas on how I could do this without chroot?
    Thanks!
    Edit:
    Log output is:
    configure:3464: $? = 0
    configure:3471: g++ -v >&5
    Using built-in specs.
    Target: x86_64-unknown-linux-gnu
    Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,treelang --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic
    Thread model: posix
    gcc version 4.3.3 (GCC)
    configure:3475: $? = 0
    configure:3482: g++ -V >&5
    g++: '-V' option must have argument
    configure:3486: $? = 1
    configure:3489: checking whether we are using the GNU C++ compiler
    configure:3518: g++ -c conftest.cpp >&5
    configure:3525: $? = 0
    configure:3542: result: yes
    configure:3551: checking whether g++ accepts -g
    configure:3581: g++ -c -g conftest.cpp >&5
    configure:3588: $? = 0
    configure:3689: result: yes
    configure:3755: checking for cpp
    configure:3771: found /usr/bin/cpp
    configure:3782: result: cpp
    configure:3811: checking whether gcc -m32 works
    configure:3835: gcc -m32 -o conftest -g -O2 conftest.c >&5
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/libgcc.a when searching for -lgcc
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/libgcc.a when searching for -lgcc
    /usr/bin/ld: cannot find -lgcc
    collect2: ld returned 1 exit status
    configure:3842: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME "Wine"
    | #define PACKAGE_TARNAME "wine"
    | #define PACKAGE_VERSION "1.1.14"
    | #define PACKAGE_STRING "Wine 1.1.14"
    | #define PACKAGE_BUGREPORT "[email protected]"
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:3856: result: no
    configure:3858: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.
    Last edited by speng (2009-02-08 22:36:00)

    Hi all,
    Im trying to compile wine-git for a regression test, iam using a native 64bit system so i setup a 32bit chroot and installed the following packages:
    base base-devel xorg nvidia nvidia-utils
    My problem are these message outputs from ./configure:
    configure: libxcomposite 32-bit development files not found, Xcomposite won't be supported.
    configure: libgnutls 32-bit development files not found, no schannel support.
    configure: WARNING: OpenGL development headers not found. OpenGL and Direct3D won't be supported.
    configure: WARNING: libxml2 32-bit development files not found, XML won't be supported.
    configure: WARNING: libxslt 32-bit development files not found, xslt won't be supported.
    configure: WARNING: libjpeg 32-bit development files not found, JPEG won't be supported.
    Does anyone know which packages i need to install to satisfy at least the OpenGL part?
    SOLVED: nvidia nvidia-utils packages don't include the development headers so did this by myself using nvidia driver package from nvidia site
    Last edited by Arjann (2009-05-19 11:17:39)

Maybe you are looking for

  • Horrible reception in the house and spotty reception outside?!

    Our wireless reception is horrible in the house. We cannot hold calls at all. We typically have to dash outside to take/make a call. Even then, the outside reception in the yard tends to be spotty. We have to walk around and watch for bars. We notice

  • Require cert and domain credentials to authenticate?

    Is there a way to require a machine certificate AND domain credentials to authenticate to a wireless network (Cisco LWAPP, ACS, AD)?  My objectives are: Permit access from corporate hardware ONLY, i.e., prevent users from logging from a personal lapt

  • One to One signup question

    So yesterday I went and spent $3,000 on a new computer. I am very happy with it. But we waited for over 45 minutes before we could get help. (this store is really busy) So we bought the computer we wanted and did not ask many questions because we wer

  • What are the features of Business object.

    Hi Experts, Can any please give me  brief idea about Business object which one will going implent into BI . and what are the features of Business object. i will assign points if it is helpfull. Regards venu.

  • Where is the plug-ins folder for the contact sheet plug in! Mac

    I'm trying to download contact sheet!  I don't know exactly how to get to the plug ins folder.