Thread: A C++ program in Solaris that cannot be ported to Linux

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    18

    A C++ program in Solaris that cannot be ported to Linux

    Hi All
    Can anybody provide me links to some C++ programs in Solaris that cannot be ported to linux.

    Any help would be appreciated.

    Regards
    Venkat

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Huh?
    Well I can think of "cannot" for legal reasons, and "cannot" for technical reasons.

    And why are you asking?
    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.

  3. #3
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    anything that uses the Solaris Overlay Visuals Library for its graphical output. Can't give you examples. I am aware of lots of Ada code that uses this library but it would be somehow illegal for me to give it to you. I know you're asking for C++ anyway.

    Aside from the use of libraries that only exist on solaris there is the matter of CPU architecture. If you're talking about linux on an x86 and Solaris on a Blade or Sparc system you have a reversal of endian-ness to deal with. C++ is very portable, but you have to be very aware of what you're doing to make code THAT portable.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. linux, doubles, and unions
    By paraglidersd in forum Linux Programming
    Replies: 14
    Last Post: 11-19-2008, 11:41 AM
  2. Compiling a C program in Linux
    By hern in forum C Programming
    Replies: 14
    Last Post: 06-28-2004, 08:33 PM
  3. simple program on linux
    By finnepower in forum Linux Programming
    Replies: 10
    Last Post: 05-29-2004, 03:10 PM
  4. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM