Create a dll for windows with gcc

hello!
I have made a program in 'C' under linux and i want to make it into a dll with gcc to use it in labview under windows.
Has anyone already done a such thing? so what is the magic option to pass to gcc to make it properly?
Thank you.

vincent72 wrote:
Thank you for your replies. unfortunately, these options don't work on our computer. the keyword 'declspec' wasn't reconnised by our gcc. we also tried the keyword '__attribute ((dllexport))__' but it didn't work anymore.
I think the standard gcc attribute is more
something like attribute(export). After all gcc environments typically
use shared libraries and not DLLs. But then again not every gcc
compiler will be able to just create proper Win32 executables. As
explained already, there needs to be quite a lot in the toolchain for
the intended target.
For instance the compiler/linker should support COFF library format in
order to create a valid Win32 executable file unless you have a your
own format specific Win32 compatible loader that gets linked in and
understands your library format. Also declspec() is a Microsoft
specific extension not supported by off the shelf gcc. And gcc has no
intentions to add anything they consider non-standard, and most
Microsoft extensions are non-standard.
MingW does come with a patched gcc, that supports the most important
things to be able to create valid Win32 executables but most other gcc
versions don't.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?

    Trying to install Acrobate 8 Standard on PC with Windows 7, 64 bit. During the installation I was asked to provide "File Adobe PDF.dll for Windows Vista. How can I obtain the required file?

    Nothing in the Acrobat 8.x product family is compatible with Windows 7 (or any contemporary OS).
    The Acrobat 8.x product family passed into End of Support way back -- (November 2011).
    The current release of Acrobat (XI) is compatible in Windows 7.
    Be well...

  • How to create recovery disk for windows 8.1 after update from windows 8.

    My laptop came with windows 8 and i have recovery discs for windows 8.
    Now i've updated to windows 8.1, so i want to creat recovery discs for windows 8.1.
     So in future when i use recovery discs i dont have to download windows 8.1 again.
    Please tell me if there is any way to do this.....

    As colakid posted, in Windows 8 the ability to create a recovery CD/DVD has gone. Your options are to:
    create a recovery USB; or
    create a recovery image.
    Recovery USB
    Colakid's post talks you through how to make a recovery USB: from control panel, choose Recovery, then Create a Recovery Drive, and follow the prompts.
    However, the 'recovery USB' can be a bit misleading. When the wizard starts, there is an option to 'copy the recovery partition from the PC to the recovery drive'. If you do not check this option, you will still need installation media to reset your PC.
    Since you have upgraded from Windows 8 to Windows 8.1, you will probably not be able to check this option, as it will be greyed out (like it is in the picture in Colakid's post).
    If you go ahead and create the USB anyway, you will be able to boot to it, but you won't be able to reinstall Windows unless you have the installation media (or possibly a system image, though I haven't tried that).
    Recovery image
    The recovery image is an image of your computer that Windows will use when you select the 'refresh my pc' option. You can create a recovery image using the recimg.exe tool.
    First, open an elevated command prompt (type cmd and press Ctrl + Shift + Enter).
    Next, create the recovery image by typing:
    recimg /createimage [path]
    Where [path] is the folder you want the image in, eg C:\Recovery. You cannot set the file name - it will always be called CustomRefresh.wim.
    Let it run its course. When it's done, you can check that it is the current recovery image by typing
    recimg /showcurrent
    It's important to keep in mind what a recovery image contains. It will have your Windows system files (in their current state), and the desktop apps you have installed (so it makes sense to do this after a fresh install of Windows). It will
    not backup any Metro apps or user files, because these are not deleted during a system refresh. If you want a complete backup of everything on your computer the way it is now, you should make take a complete system image (which
    can be done from the File History settings in control panel - at the bottom left there will be a 'System Backup Image' option - or you can do it using any other backup software like Ghost or Acronis).
    In my case, I created the recover image straight after upgrading to Windows and it was about 6 GB.
    Prepare/Create and register an recovery partition, so the option Copy the Recovery Partition becomes available in the recovery drive UI  application.
    In elevated command run> RECIMG -CREATEIMAGE C:\REFRESHIMAGE< 
    This will create a new custom.wim in a folder Refreshimage.
    Now lets get ready to register the path of the image, so our create recovery drive option(COPY THE RECOVERY PARTITION FROM THE PC TO THE RECOVERY DRIVE) becomes available.
    >  In the folder you created there will be a> custom.wim<
    change it to>INSTALL.wim<
    > Create a folder In Cd/directory using Elevated command> mkdir c:\Win8.1-Recovery,>
    Win81-Recovery<.
    > Copy the  INSTALL.WIM. Put in the Win81-recovery folder created.
    > Run in elevated commad>REAGENTC /SetOSImage /Path C:\Win81-Recovery\INSTALL.WIM /Index 1<
    Do not copy the arrows if using copy and paste, that is my way of pointing out lines of code
    Information provided by the link below, thanks Keith. I simplified the process for easy following and added my own tweak from trial and error for the install.
    blogs.technet.com/b/keithmayer/a···ive.aspx

  • How to create a pop up window with text information?

    Hi experts,
    I am a newbie in LC and I have created a form to be sent to the vendors by our buyers.  Everything seems fine except the Accounting Manager would like to include our Financial Details in the form.  I would like to simply create a pop up window with the information which will be activated by pressing a button.  I have tried to create an invisible button and a visible button to achieve this but didn't succeed. 
    p.s. I have no javascript background but slowly learning.  I would appreciate if anyone can assist me to complete the task.
    Thanks a million.

    Hi Mdjco,
    Thanks for replying.  What I need to accomplish is to have another page of information with all the financial details on the pop up window and the vendor has a choice to print it out or not.  After the form is filled out, it is to be sent back to our buyers.  So instead of me inserting a 2nd page with the information, I would like to hide it unless someone presses a button to show it.
    I have found something like making 2 buttons, one is invisible with all the information on it and the other one "visible" to activate the invisble button.  Didn't work at all.
    Also another question is after the vendor insert the digital signature, it automatically asked to save (which I found out why from help) and then it opens up the email and sends the form as XML.  I will need it to send as PDF, possible??
    Much appreciated.

  • Creating private apps for Windows

    Dear DPS Community
    I would like to create Windows App and distribute this app internally.
    I only found this information on Adobe's website:
    Creating private apps for Windows
    Microsoft has two requirements for enterprise deployment of Windows Store apps:
    The app's device must be joined to a domain.
    The certificate used to sign the .appx must be in the trusted list of certificates on the device.
    The .appxbundle file provided by DPS App Builder is signed for submission to Windows Store. For enterprise deployment, you might need to re-sign the .appxbundle and its contents with your own enterprise certificate. Contact your Adobe representative for more information. For distribution of the app file, use any supported Microsoft method. You can even use a simple command-line method.
    Where can I find further informations? Is there a companion guide for windows out there?
    Thanks for your help.
    - Cindy

    Microsoft’s guide for enterprise distribution of Windows Store apps is at http://technet.microsoft.com/en-us/library/hh852635.aspx. There's nothing special about DPS apps that makes them different from a distribution standpoint than any other Windows Store app, and the Microsoft guide is the go-to reference for how to do enterprise deployment of Store apps.
    Note that the DPS apps downloaded from App Builder are self-signed with an untrusted certificate. Most enterprises will likely have their own corporate certificate they’d prefer to use instead. To re-sign the DPS app:
    Unpack the bundle using makeappx
    makeappx.exe unbundle /p viewerpackage.appxbundle /d unpacked_directory
    makeappx.exe bundle /d unpacked_directory /p resigned_viewer_package.appxbundle
    signtool.exe sign /fd sha256 /f enterprisekey.pfx resigned_viewer_package.appxbundle
    Go into unpacked_directory
    Sign both .appx files using signtool
    signtool.exe sign /fd sha256 /f enterprisekey.pfx viewer_x86.appx
    signtool.exe sign /fd sha256 /f enterprisekey.pfx viewer_ARM.appx
    Re-pack the bundle using makeappx
    Sign the .appxbundle using signtoolsigntool.exe sign /fd sha256 /f enterprisekey.pfx resigned_viewer_package.appxbundle
      Neil

  • Where can I download Oracle.DataAccess.Lite.dll for Windows CE 5

    Hi,
    I'm starting a project with Visual Studio 2008 and I need to access an Oracle Database.
    After searching a lot, I found this page: Oracle Database Lite 10g Mobile Client Windows Mobile, but it's for Windows Mobile 6, do you know where can I found the DLL for Windows CE 5 ?
    Regards,
    Sandro Herbst

    Developer 6i is no longer available for download (at least not that I can find: it is not available in the usual places [e-Delivery, OTN, My Oracle Support]). The only way I can think of that you can get the version you need for Red Hat is to contact Oracle Support and submit a special request for the software or if you know someone that has a copy of the software - ask them to make you a copy.
    @BelMan, your link at http://www.cedet.dk/ours/otndownloads.html is no longer valid.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Download trial for windows with a mac

    I need to know if there are a way to download trials of CS6 for windows with a mac

    Thanks for your answer Mylenium, but always i try to download the trial the download manager always download "dmg" file!, how can i get download the windows installer?

  • How to create a dll in LabVIEW with a 2D array

    I'm attempting to create a dll in LabVIEW with the following parameters from Test DLL.vi:
    Inputs:
    IN1 - Word
    Buffer - 2D array of Unsigned Byte
    Output:
    OUT1 - Unsigned Byte
    The prototype is constructed as follows in the Build Specifications of the Project:
    uint8_t TestDLL(int16_t IN1, TD1Hdl *Buffer)
    The dll builds successfully but when I attempt to use it in another VI (using the Call Library Function block) the prototype appears but it does not look like what was defined from the Build Specifications.  Instead it looks like the following:
    void TestDll(void );
    I attached some screen shots of all the settings as described above.
    Attachments:
    Test DLL Front Panel.JPG ‏85 KB
    DLL Prototype Before.JPG ‏84 KB
    DLL Prototype After.JPG ‏54 KB

    The Test DLL.vi is what I used to create dll prototype with in the Build Specifications in the project.
    Note:  There is no logic implemented yet.
    Attachments:
    Test DLL.vi ‏7 KB

  • How do i register Quick Time Pro for Windows with my new MacBook?

    How do i register QuickTime Pro for Windows with my new MacBook?
    I just bought a MacBook in the last few months and just got around to register my Quicktime Pro? It says invalid registration; Can i transfer the seriel number? i do i get a mac seriel #?

    Registration key for the Mac and Windows OS are brought separately. Meaning you need to buy one for the mac and one for windows. These keys aren't cross platform...sorry.

  • Boot camp 5.0.1 aways crash when i try to create a partition for windows. My mac is new MBP retina.Any one can help me?

    boot camp 5.0.1 aways crash when i try to create a partition for windows. My mac is new MBP retina.Any one can help me?

    boot camp 5.0.1 aways crash when i try to create a partition for windows. My mac is new MBP retina.Any one can help me?

  • How to creat the Varient for 1099MISC With Holding Tax

    How to create the Variant for 1099MISC With Holding Tax ?

    HI,
    please follow the below steps to create variant at report.
    tcode se38
    report RFIDYYWT
    pass all the parameters
    press save icon
    give variant name
    retrive the variant in report
    tcode se38
    report name RFIDYYWT
    press : shift + F5
    or get varinat icon.
    I hope above will resolve your issue.
    Regards
    Madhu M

  • If i create a partition for Windows 7, and boot up in Windows using Boot Camp, can I still access the files from the Mac partition (Photo's Music etc.)

    If i create a partition for Windows 7, and boot up in Windows using Boot Camp, can I still access the files from the Mac partition (Photo's Music etc.)

    JDFitch wrote:
    Ok Great,
    Will installing Boot Camp drivers allow me to both read and write to the OS X Volume from windows?
    This is important as if it will it means i can make the windows partition a lot smaller and keep all my files on the OS X partition which would be preferable.
    Jon
    No, OSX will be read only (from Windows) and vice versa. (you can install 3rd party utilities on either or both partitions, to make read/write possible)

  • Can 10G express be used to create an application for use with a 10G instanc

    Hi
    Can 10G express be used to create an application for use with a 10G instance? I am new to Oracle 10G. I like the interface for creating applications, maintaining users, etc. Can this tool be pointed at a regular instance of 10G so that applications can be created against a regular 10G database not the express database?
    Can PL/SQL proceedures that are created in 10G express also be migrated to a 10G database?
    Thanks in advance
    Dean-O

    Can 10G express be used to create an application for use with a 10G instance?Yeah, that's the whole point from a marketing perspective ;)
    Can this tool be pointed at a regular instance of 10G so that applications can be
    created against a regular 10G database not the express database?Yes but it's a different version. Check out:
    http://www.oracle.com/technology/products/database/application_express/index.html
    Can PL/SQL proceedures that are created in 10G express also be migrated to a 10G database?Yes they can!
    ~Jer

  • How to create the C++ DLL for Windows Mobile and how to import it in C#

    Hi All,
         Please can u guide me for creating DLL on C++ and using it in C#
         1) Steps to create the DLL using C++ for Windows Mobile
         2) And where to place the DLL after builiding to make use of it in my C# project
    Thanks in Advance!!!
    Thanks & Regards,
    Sharan

    Hello all,
    I know this is an old thread but i have to give it a try ( i am stuck with an almost identical problem but cant solve it since 5 days googling and reading.
    I am developing an app for Unitech HT660e which has Win CE. THe app is complete but now i need some more control over the barcode scanner. In order to gain controll i need to use USI.dll which is explained in this documentation (chapter 2 has the link to
    the SDK which contains the USI.dll ) :
    http://www.datacol.co.nz/pdf/uni_prog-guide_1.21.pdf
    But i also get : Cant find PInvoke DLL 'USI.dll'.
    In chapter 4 is SysIOAPI.DLL mentioned which i cant fin.
    Chapter 17 has USICF.dll which may be interesting bcos this one can be added as reference and "using USICF" . I am using compact framework 3.5 for this and the emulator is "usa windows mobile 5.0 pocket pc r2 emulator". 
    Reading your post i noticed i can use the "Pocket PC 2003 SE Emulator" but it gives me the same error.
    Maybe i need to include a path in my code but i tried this as well...and get the same problem. Maybe i am missing something.
    Here is my code:
    using USICF;
    using System.Runtime.InteropServices;
    namespace SmartDeviceProjectzaDLLtesting
        public partial class Form1 : Form
            [DllImport("USI.dll", EntryPoint = "VibrationOn")]   //ignorethis?:,CallingConvention=CallingConvention.Winapi)]//Cdecl)]    //EntryPoint = "VibrationOn")]
            public static extern void VibrationOn(bool bEnable);
            public Form1()
                InitializeComponent();
            private void Form1_Load(object sender, EventArgs e)
               // USICF.USIClass usiba = new USICF.USIClass(this); // this gives an exception as well
               VibrationOn(true); // thiis causes the exception
     //           VibrationOn(false);

  • Creating a LabVIEW Shared DLL for use with C# and Strings?

    Hi All,
    I am trying to create a prototype for a LabVIEW Shared DLL that all the VI does is take in a string and return an upper cased string. Needless to say the DLL builds fine but when I try calling the shared DLL from C# the .NET application recieves an exception about "Ansi char arrays can not be marshaled as byref or as an unmanaged-to-managed parameter". Does anyone have an example of how to pass a string to a VI and return a string or an example of a better way of accomplishing this.
    We are using labVIEW 7.1 on Windows 2000.
    I am in quite a bit of a hurry to prove that this type of a LabVIEW Shared DLL VI would work. The eventual system will be passing in a string of XML with a large amount of
    data and returning XML.
    Thanks in advance,
    Jim

    Hello jprucha,
    This occurs because LabVIEW DLLs are not considered managed code. As such, we need to define the C# function as unsafe to be able to call unmanaged DLLs.
    You can find more information about C# and managed code at Microsoft's developer website linked below.
    MSDN Home Page
    Good luck with the development,
    Matt F
    Keep up to date on the latest PXI news at twitter.com/pxi

Maybe you are looking for

  • My Ipod software won't update

    I can't get my software on my ipod to update from 1.1 to 1.2 everytime I try it just says something about an unknown error 1417 anyone have any ideas???   Windows XP Pro  

  • Grid Control and RAC

    I've installed the agent on my RAC which consists of two nodes..but i'm seeing more than one agent on each node...why is that? Does someone have a document or a link to something that shows Grid Control managing a RAC? I've looked at the GC installat

  • Bad video quality over WiFi?

    iChat seems to be trying to out-think me by lowering iChat video quality when it's on WiFi, but using great video when I'm on ethernet. This seems silly, since I have great WiFi connectivity, but I can't seem to disable the behavior. Does anyone know

  • CPU v/s Edge 3.1 deployment

    Hi All, We are in the process of deploying Business Objects Edge 3.1 on windows 2008  We planning for 20 NUL & 20 CAL licenses. I wanted to know if there is any limitation of deploying edge series setup in terms of no of CPU? Can i use a 2 QUAD proce

  • Partitioning an Existing Table

    Dear Forum, Can we create partition on an existing table without dropping it in Oracle 11.2.0.3.0? I know EXCHANGE PARTITION, but that I don't want. Thank you & regards.