Compiling Unix compatible code with VC ?
-
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
-
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
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
-
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
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