Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Compile dll in Ubuntu to include in Windows 7 (32 bit) program

Compile dll in Ubuntu to include in Windows 7 (32 bit) program

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 12244972
    wrote on last edited by
    #1

    Hi, I just need instructions to build my working source code in C++ into a dll that is compatible with Windows 7. Thanks.

    J L 2 Replies Last reply
    0
    • M Member 12244972

      Hi, I just need instructions to build my working source code in C++ into a dll that is compatible with Windows 7. Thanks.

      J Offline
      J Offline
      Jochen Arndt
      wrote on last edited by
      #2

      You want to build a Windows DLL on a system running Ubuntu? Such tasks are called cross-compilation and require installation of additional components. See Compile for Windows on Linux | BlogCompiler[^] for setting up such a cross compilation environment using MinGW. The creation of DLLs is described at cross compilation - Compiling a DLL project written in c++ - Ask Ubuntu[^].

      1 Reply Last reply
      0
      • M Member 12244972

        Hi, I just need instructions to build my working source code in C++ into a dll that is compatible with Windows 7. Thanks.

        L Offline
        L Offline
        leon de boer
        wrote on last edited by
        #3

        Assuming that your code has no linux OS calls in it and is just generic stuff you just define an interface for it and compile it like Jochen's answer. If you have linux OS calls you will need to build windows replacements or use a framework.

        In vino veritas

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups