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. Database & SysAdmin
  3. System Admin
  4. Compiling Unix compatible code with VC ?

Compiling Unix compatible code with VC ?

Scheduled Pinned Locked Moved System Admin
c++designquestion
3 Posts 2 Posters 5 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.
  • Y Offline
    Y Offline
    yarp
    wrote on last edited by
    #1

    Hi there, it's my first post at Code Project. I'm a short time surfer there but I find it the greatest VC site I ever found. I'm currently making an (HP) pcl2tiff converter for my company. This converter is designed to run on both PC and Unix. I develop under MSVC 6.0 and I write portable code so that I've little or no modification when I'll do the port to Unix (HP-UX 11). I've read somewhere - I'm not sure - it is possible to generate Unix compatible exe directly from Visual C++, that is I wouldn't have to compile under Unix and that would be so great. Can someone confirm this - or is it just a silly idea ? btw When finished this converter will read HPGL/PCL5 printer files and generate output to TIFF or Bitmaps. Yarp

    G 1 Reply Last reply
    0
    • Y yarp

      Hi there, it's my first post at Code Project. I'm a short time surfer there but I find it the greatest VC site I ever found. I'm currently making an (HP) pcl2tiff converter for my company. This converter is designed to run on both PC and Unix. I develop under MSVC 6.0 and I write portable code so that I've little or no modification when I'll do the port to Unix (HP-UX 11). I've read somewhere - I'm not sure - it is possible to generate Unix compatible exe directly from Visual C++, that is I wouldn't have to compile under Unix and that would be so great. Can someone confirm this - or is it just a silly idea ? btw When finished this converter will read HPGL/PCL5 printer files and generate output to TIFF or Bitmaps. Yarp

      G Offline
      G Offline
      Giles
      wrote on last edited by
      #2

      I've heard of one virus that can run on both Intel based Linux and Windows machines, but I think you have to go down to the assembler level to do this, and you would really need to know what you are doing. Effectively you would still need to include support for both systems in the exe as they are different API's. As well as that VC6 is for 32bit Win apps, and to get this working it would have to be half dos based - 16bit app, as all the Win32 exe headers would get in the way. I would say this is really not something you would want to attempt. Are the HP-UX machines Alpha based, in which case it nails the coffin shut. Giles

      Y 1 Reply Last reply
      0
      • G Giles

        I've heard of one virus that can run on both Intel based Linux and Windows machines, but I think you have to go down to the assembler level to do this, and you would really need to know what you are doing. Effectively you would still need to include support for both systems in the exe as they are different API's. As well as that VC6 is for 32bit Win apps, and to get this working it would have to be half dos based - 16bit app, as all the Win32 exe headers would get in the way. I would say this is really not something you would want to attempt. Are the HP-UX machines Alpha based, in which case it nails the coffin shut. Giles

        Y Offline
        Y Offline
        yarp
        wrote on last edited by
        #3

        In fact I need not include support to either system. All I do with this PCL decoder is to read the file and ouptput the result to another file - a bitmap for example. These are just file ios, that's the reason why I thought there was a little possibility. The dream as gone but anyway thank for the answer. Yarp

        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