CVI can not link VS2010 static lib files

A completely new static lib file created in VS2010 Express hat the following content:
StaticLib.h:
void __stdcall call( void );
StaticLib.c
void __stdcall call( void ){ }
VS2010 compiles this as a c file. This is already ensured by the ending ".c", but to be safe I use the compiler option /TC .
All other options are at their default value. I compile using "Release | Win32".
The created lib file is copied to an new CVI folder, along with the header.
Both files are added to the project.
In addition a main.c is created with the following content:
void main ( void ){ call(); }
The compile attempt is aborted with the following error message:
 Bad header encountered while reading external module: 'Release\StaticLib.obj'.
 Aborted load of member "Release\StaticLib.obj" from library "c:\C90\LibImportTest\Release\LibImportTest.lib".
Is there a way to reuse static lib files compiled in VS2010 with CVI?
If so please show me a minimal example.
( please do not post any suggestions involving dlls )
Solved!
Go to Solution.
Attachments:
UPLOAD.zip ‏2 KB

I tried this with CVI 2012. I think its the VC 2010 Project Setting: Configuration Properties >> General >> Whole Program Optimization = Use Link Time Code Generation that causes the problem with CVI. Change this setting to "No Whole Program Optimization" and CVI 2012 is able to link the VC 2010 lib file for me. Hope this is the same issue for you. If not, try changing other VC optimization or language settings in the Project Properties dialog..

Similar Messages

  • Our Windows PC crashed with all our music on it.  There are copies of both purchased (thru iTunes store) and from our own CDs on another HD in a backup file.  They are not linked to a Media file.  Is there any way I can put this music on my new computer?

    Our Windows PC crashed with all our music on it.  There are copies of both purchased (thru iTunes store) and from our own CDs on an external HD in a backup file.  They are not linked to a Media file.  Is there any way I can put this music on my new computer?

    The syncing of music is one way, computer to phone. See this helpful document from a fellow user. Credit goes to the author.
    https://discussions.apple.com/docs/DOC-3141

  • Cant open PDF files..It says the adobe acrobat reader that is running can not be used to view files in a browser..plz suggest the solution.thanks

    Whenever i try to open a PDF file it says " The adobe/acrobar reader that is running can not be used to view files in a web browser. Plz exit adobe/acrobat readerand exit your web browser and try again." Wt do i need to do, plz suggest.
    Regards
    Aditya Bhargava

    Hi adityabhargava01-
    My first suggestion is to upgrade to the most recent version of Firefox by going to this link:
    http://www.mozilla.org/en-US/firefox/new/
    My second suggestion is to read this article on how to many your preferences on how Firefox deals with PDFs and all other file types:
    [[Options window - Applications panel]]
    I hope that helps!

  • How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    What OS are you running.. this is usually only a problem in Mavericks.
    If so I recommend you mount the hard disk manually..
    Use Go, Connect to server.
    Type in the IP address if static.. eg
    AFP://10.0.1.1
    Or the name.. but you will have issues unless the name is short, no spaces and pure alphanumeric.. if you are using bad names.. fix it by a full factory reset in airport utility and give it all names that comply to the above.
    Type in
    AFP://TCname.local Where TCname is replaced with the actual name.
    You will be asked for the password the first time which is public unless you changed it.. please remember to save this in the keychain.
    Copy files then to a new directory you create on the TC.. do not place files inside the TM sparsebundle. Nor directly under the main directory.

  • Services for Object in Maintenance order can not link

    Hello,
    "Services for object" in Maintenance Order can not link to share point.
    Linking documents from the C drive or Global drive is successful but if SHAREPOINT is used, it fails
    When trying to link to a Word document on our Sharepoint... It fails... when I'm in an order... it gives me an error... (displayed on the attached Word file...) and when I'm working within a document... (CVN02) it merely links to my C:\ drive which won't work...  
    We need to link to our "master" Sharepoint (web based) documents.
    Please suggest the solution.
    Thanks
    Regards
    Anil

    Anil,
      Couldn't you add the web address as the attachment?
    Regards
    Narasimhan

  • Improper message coming on console  " ftpd[16809]: [ID 487707 auth.error] load_modules: can not open module /usr/lib/security/pam_unix_session.so.1"

    Hi All,
    I am using solaris 10u10 on Sun Fire platform. I am getting below message on cosole.
    ftpd[16809]: [ID 776383 auth.error] open_module: stat(/usr/lib/security/pam_unix_session.so.1) failed: No such file or directory
    ftpd[16809]: [ID 487707 auth.error] load_modules: can not open module /usr/lib/security/pam_unix_session.so.1
    ftpd[16810]: [ID 776383 auth.error] open_module: stat(/usr/lib/security/pam_unix_session.so.1) failed: No such file or directory
    ftpd[16810]: [ID 487707 auth.error] load_modules: can not open module /usr/lib/security/pam_unix_session.so.1
    ftpd[16815]: [ID 776383 auth.error] open_module: stat(/usr/lib/security/pam_unix_session.so.1) failed: No such file or directory
    ftpd[16815]: [ID 487707 auth.error] load_modules: can not open module /usr/lib/security/pam_unix_session.so.1
    ftpd[16816]: [ID 776383 auth.error] open_module: stat(/usr/lib/security/pam_unix_session.so.1) failed: No such file or directory
    ftpd[16816]: [ID 487707 auth.error] load_modules: can not open module /usr/lib/security/pam_unix_session.so.1
    ftpd[16817]: [ID 776383 auth.error] open_module: stat(/usr/lib/security/pam_unix_session.so.1) failed: No such file or directory
    ftpd[16817]: [ID 487707 auth.error] load_modules: can not open module /usr/lib/security/pam_unix_session.so.1
    Also the file is present on the server 
    root@atrcx1454/var/adm> ls -lrt /usr/lib/security/pam_unix_session.so.1
    -rwxr-xr-x   1 root     bin        20652 Mar 19  2008 /usr/lib/security/pam_unix_session.so.1
    Can anyone help why above message is coming on console

    Is the ftp daemon that you use provided by the Solaris media ? If this is not the case, then would recommend to contact the software maintainer for more help.
    And regarding chroot, please check this URL to know what it is : Sandbox (computer security) - Wikipedia, the free encyclopedia
    Depending how this environment is configured, the library is maybe not present in this one.

  • " Can not interpret the data in file " error while uploading the data in DB

    Dear All ,
    After running the below report I am getting the " Can not interpret the data in file " error.
    Need to upload the data in DB through excel or .txt file.
    Kindly advise to resolve the issue.
    REPORT  ZTEST_4.
    data : it like ZPRINT_LOC occurs 0 with header line,
    FILETABLE type table of FILE_TABLE,
    wa_filetable like line of filetable,
    wa_filename type string,
    rc type i.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
    CHANGING
    FILE_TABLE = filetable
    RC = rc.
    IF SY-SUBRC = 0.
    read table filetable into wa_filetable index 1.
    move wa_filetable-FILENAME to wa_filename.
    Else.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    start-of-selection.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = wa_filename
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'
    TABLES
    DATA_TAB = it.
    IF SY-SUBRC = 0.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    insert ZPRINT_LOC from table it.
    if sy-subrc = 0.
    commit work.
    else.
    rollback work.
    endif.
    Regards
    Machindra Patade
    Edited by: Machindra Patade on Apr 9, 2010 1:34 PM

    Dear dedeepya reddy,
    Not able to upload the excel but have sucess to upload the .csv file to db through the below code. Thanks for your advise.
    REPORT  ZTEST_3.
             internal table declaration
    DATA: itab TYPE STANDARD TABLE OF ZPRINT_LOC,
          wa LIKE LINE OF itab,
          wa1 like line of itab.
                       variable  declaration
    DATA: v_excel_string(2000) TYPE c,
           v_file LIKE v_excel_string VALUE    'C:\Documents and Settings\devadm\Desktop\test.csv',  " name of the file
            delimiter TYPE c VALUE ' '.         " delimiter with default value space
         read the file from the application server
      OPEN DATASET v_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    write:/ 'error opening file'.
      ELSE.
        WHILE ( sy-subrc EQ 0 ).
          READ DATASET v_file INTO wa.
          IF NOT wa IS INITIAL.
            append wa TO itab.
          ENDIF.
          CLEAR wa.
        ENDWHILE.
      ENDIF.
    CLOSE DATASET v_file.
    EXEC SQL.
         TRUNCATE TABLE "ZPRINT_LOC"
    ENDEXEC.
    *------display the data from the internal table
    LOOP AT itab into wa1.
    WRITE:/ wa1-mandt,wa1-zloc_code,wa1-zloc_desc,wa1-zloc,wa1-zstate.
    ENDLOOP.
    insert ZPRINT_LOC from table itab.

  • Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it?

    Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it in some other form befor dragging it?

    Hello djensen1x,
    Could you please let me know what version of Acrobat are you using.
    Also, tell me your workflow of combining those PDF files?
    Please share the screenshot of the error message that you get.
    Hope to get your response.
    Regards,
    Anubha

  • Can not access the media card files Blackberry 8310 - HELP

    Can not access the media card files Blackberry 8310.
     I had a battery drain problem. The unit would only last 16 hours before completely drained. Purchased a new battery with the same result. I figured that I should try a complete reset so I did a hard wipe. Once that was done and I loaded the unit back up and returned online, the battery drain problem was resolved but now I can not access the media card.
     Here are the messages:
     “A media card has been inserted that contains encrypted content which will be unaccessible by this device”
     I can see the files. I have transferred them to my PC via the SD card but I can not open them. Here are the settings:
     Media card support – ON
    Encryption Mode: - Security Password & Device
    Encrypt Media Files – YES
    Mass Storage Mode Support – OFF
     Please note – I can not change the encryption mode since it is set by policy
     Security Options – General Settings – Content Protection – Disabled
     The version of Desktop Manage I am using is 4.2.1.8. When I try to use the Media Manager to move the files, I get an error message and can’t move the file. If I access the file on the card and try to display it, I get:
     Unable to display file /media card/ pictures/ing000000xx.jpg.rem
     Here is what I have tried (from the advice on this board):
     1)     Read the files directly off the media card – No good
    2)     Create a “new” folder on the media card and move a file into it then try to read it – No good
    3)     Email the file then read it – No good
    4)     Reset Encryption mode to off then try – Can’t do it – IT Policy setting
    5)     Be sure that the password was set the same as before the wipe (setting is password & device) – Can’t do it – The Blackberry prevents me from using an old password.
     So I think I can’t read the files because I can’t replicate the encryption key. Could that be right? My problem is that I do not understand why this would be the case. It is still the same device and since it knows what the old password was (because it would prevent me from using it again), why would it not generate a key to access the files?
     All I am trying to get off the card are pictures on my 6 year old … some are priceless. Can someone help me do this? One would think that this should not be this hard but from all the postings I have found, it seems that it is. And yes, shame on me for not moving the files before I did the reset (THAT will never happen again!) but this being unrecoverable is unconscionable given how many seem to find themselves in this situation.
     Thanks for any help you can offer!

    Not sure why you couldn't see them using mass storage mode. Did you have the pics stored on your media card? Try going to media-menu-explore-media card-blackberry-pictures See what the extension is on your pics. If any have the extension such as .jpg.rem they are encrypted.
    IrwinII
    Please remember to "Accept as Solution" the post which solved your thread. If I or someone else have helped you, please tell us you "Like" what we had to say at the bottom right of the post.

  • I can not delete or copy new files to my Iomega external hard drive

    Hi,
    I can not delete or copy new files to my Iomega external hard drive. Opening hard drive folder I can see that I can not overwrite it. I have heard that I need to install some program for the external hard drive to operate properly in Mac.
    Please help what to install or there is some other option.
    Thnx

    I'm not the expert on this since I have never done it. It sounds like you may need a data rescue program like Data Rescue III. I believe you can download a demo and see if you can see the files. If you can, then you can buy the program and retrieve the files. I don't know if Disk Utility can restore them--I think they have to be visible but this is not something I have ever had to do.
    In the meantime, don't do anything with the drive--you don't want to overwrite any files. Hopefully all or most of the files are still there and you will be able to retrieve them. The less the drive is used, the better your chances are of retrieving the data.
    Forgive me for not realizing that there were files on the drive that you wanted to save. Upon re-reading your question, I now see that there were. I should have known to warn you, and my bad that I didn't.
    Good luck!

  • I recently upgraded to a G5 and Logic Pro 8. My previous system was a Power Mac 7200 with Logic Platinum 3.5.3. I can not open the old song files unless they are first saved in Logic 6 or 7. Where do I get a dongle for Logic 7?

    I recently upgraded to a G5 and Logic Pro 8. My previous system was a Power Mac 7200 with Logic Platinum 3.5.3. I can not open the old song files unless they are first saved in Logic 6 or 7. Where do I get a dongle for Logic 7?

    eBay or Craigslist would be the only choice.

  • I have reinstalled cs4 student edition afther a deactivation by adobe but can not veiw ORF or DNG files in bridge i am runing windows 7

    I have reinstalled cs4 student edition afther a deactivation by adobe but can not veiw ORF or DNG files in bridge i am runing windows 7

    Keep in mind that if your camera is newer than the last released version of Camera Raw (5.7) for Photoshop CS4, Adobe does provide a free solution for compatibility, as Curt has mentioned, through the use of the free DNG Converter application.
    The way that works is this:
    1.  You get your raw images from your new camera into a folder on your computer.
    2.  You run the latest DNG Converter application and choose the folder.
    3.  It converts the entire folder full of images to .DNG files.
    4.  You open a DNG file as you would an older raw file, with your old version of Photoshop.
    While the DNG Converter provides you a way to continue to use your older Photoshop software with a new camera, keep in mind that there are significant improvements in the raw converter in the latest version of Photoshop that may allow you to make better images out of your raw files if you do choose to upgrade Photoshop.
    -Noel

  • I can not up load a PDF file to my File Manager?

    i can not up load a PDF file to my File Manager?

    Hi there,
    You will need to provide way more information then that.
    How big is the file? What happens when you upload it?
    Do you have screenshots to show any errors you get?

  • ITunes can not run because some required files are missing.

    I got a message that said something like "iTunes can not run because some required files are missing. reinstall itunes." I tried to reinstall iTunes but I kept getting that message. So, i uninstalled it, and tried to install it again. this did not work. I think that Quicktime is actually what is broken, because iTunes installs fine, but the Quicktime installation failed. When the installation failed, i got a message that said, "Installation failed: error code: -3"
    I then tried installing Quicktime with the standalone installer. The installation got further, but it then failed as well, giving the error code -1603.
    What can I do to get this reinstalled, and if you can't answer that, how can I contact Apple from Iraq? Thank you.

    hmmm...that happened to me at one point to, and I'm trying to think back, I believe I was able to uninstall it by using the standalone installer.....
    Try these steps and see if anything helps, and then in the troubleshooting section, look up the specific error number you are receiving...
    http://docs.info.apple.com/article.html?artnum=93976

  • Slideshow can not be export: An invalid file or volume name has been detected.

    How can I find this file after following error?
    slideshow can not be export
    An invalid file or volume name has been detected.
    I am not able to export my slideshow at all
    Wie kann ich diese Datei finden nach der Error Meldung?
    Diashow kann nicht exportiert werden
    Ein unzulässiger Datei- oder Volumenname wurde entdeckt.
    Ich kann die Diashow so überhaupt nicht exportieren!

    Wann tritt diese Fehlermeldung auf? Direkt nachdem der "Export" Knopf gedrückt wurde, oder erst nach einiger Zeit, wenn die fertige Diaschau gesichert werden soll?
    Wohin soll die Diaschau geschrieben werden, wenn sie fertig ist? Auf den Schreibtisch oder auf eine externe Festplatte? Die Fehlermeldung könnte bedeuten, dass der gewählte Dateiname unzulässig ist oder der Ordner oder die festplatte unzulässige Namen haben.
    Eventuell ist auch eined der Bilder in der Diaschau nicht lesbar.
    Können Sie überhaupt irgeneine Diaschau exportieren? Versuchen Sie einmal eine neue, zweite Diaschau zu erzeugen, ganz kurz mit nur einoder zwei Bildern. Geht das?
    -- Léonie

Maybe you are looking for

  • Where could I buy a new hard disk for my macbook pro 15''(MB986CH/A)

    Does anyone know where I could buy a new hard disk for my macbook pro 15''(MB986CH/A) (mid 2009)? The hard drives sold in Apple Store are not for macbook pro... Thanks a lot!

  • CPPR + DMS

    Hi Experts, SRM 7 EHP 1 ECC 6 EHP 5 PPS scenario using CPPR We have attachments at PR line item level. The attachments are through DMS. Through CPPR we are trying to create a RFx directly from the PR. We are using PI. Please let us know if there is a

  • Make a full backup of Database

    Dear All Expert, I have completed installation and configuration then I want to backup full of Database to new OS without re-install new Database, is it possible? If can, please guide how to do it. Thanks and regards, Vandy Edited by: Vandy_Kh on Jan

  • I downloaded Maverick and now safari quits all the time

    I have checked and all updates have been done.  Safari as well does not work properly, it goes back to system preferences, like home page goes back to apples page  even though I have changed it to Google.ca. I am not able to use my favorites bar, I h

  • Tabstrip problems

    Hi ALL, I am using tabstrip to do the work. the flow of call is like this. 1,define the tabstrip, and subscreen for the tabstrip. and some other needed. we assume that the screen of tabstrip is 0100.    any direct click on tabstrip can be performed c