windll and linux dll

This is a discussion on windll and linux dll within the Linux Programming forums, part of the Platform Specific Boards category; If I create a dll that uses commands in iostream.h to read and write to files in linux, will I ...

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    161

    windll and linux dll

    If I create a dll that uses commands in iostream.h to read and write to files in linux, will I be able to copy the dll to a disk and use it in windows?

    thanx in advance!

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,453
    No.

    It is your source code which is portable from one machine to another.
    Copy that to windows and recompile it using a windows compiler to produce a windows DLL
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    161
    thanx.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21