Thread: executables

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    2

    Question executables

    I have just started out learning how to program in C. I am trying to transfer one of my small, simple programs to a floppy disk to bring to work. I know the program works properly as I have tested it out. What I am wondering is, how do I get my program, which was written in my schools UNIX system onto a floppy diask and work the way it does when I run it in UNIX? I would really appreciate any help anybody can give me. It is just a simple text program with some choices. I have been trying for a while and just cannot get it to transfer to a floppy and run. Thanks anybody for some pointers.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    The problem is that unless the system you want to run the Unix program on uses the same setup for executable binaries, it won't work. If possible, download a free compiler for your unnamed system and recompile your code for that system. If it was written in standard C, you can save the code itself and recompile it on whatever system you want without too much trouble.
    My best code is written with the delete key.

  3. #3
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    There are conversion programs that can patch one type of format to another, but more complex programs- with extensive platform dependant function calls - are obviously less likely to be convertible than, say, a com to elf format.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Small executables in VC++ 8
    By Bleech in forum Windows Programming
    Replies: 3
    Last Post: 06-20-2007, 08:28 AM
  2. Executable's properties?
    By cboard_member in forum Windows Programming
    Replies: 3
    Last Post: 07-11-2006, 03:04 PM
  3. Why can't Windows run Linux binary executables?
    By Kleid-0 in forum Tech Board
    Replies: 30
    Last Post: 12-04-2005, 11:44 PM
  4. Question about running executables from program
    By PJYelton in forum C++ Programming
    Replies: 2
    Last Post: 03-19-2005, 04:43 PM
  5. STL + MSVC++ = big executables ?
    By teneniel in forum C++ Programming
    Replies: 6
    Last Post: 11-04-2002, 02:12 PM