.exe question

This is a discussion on .exe question within the C++ Programming forums, part of the General Programming Boards category; I use Borland C++ compiler, and the .exe file I get when I compile works fine on my com, but ...

  1. #1
    Registered User stillwell's Avatar
    Join Date
    Aug 2004
    Posts
    80

    .exe question

    I use Borland C++ compiler, and the .exe file I get when I compile works fine on my com, but when I send it to other people, they can't open it.

    What do I need to do, to make an .exe people can run on their com?

  2. #2
    #include<xErath.h> xErath's Avatar
    Join Date
    Jun 2004
    Posts
    722
    1# are they running the same operation system?
    2# is it a console app? if so, did you put a getch() or system("pause") at the end?? if not the console window pops-up and disapears

  3. #3
    Registered User
    Join Date
    Oct 2004
    Posts
    120
    I'm not too famniliar with Borland C++, but if it links any .dlls for any reason, then the .dlls have to be sent with the .exe and all installed in the same dir.

    PK

  4. #4
    Registered User stillwell's Avatar
    Join Date
    Aug 2004
    Posts
    80
    But isn't there a way that I can make and independent .exe file, that doesn't need anything to go with it?

    Oh, and the program says that it can't find the file rtl.60bpl, when run on other coms. It is a console program.

  5. #5
    Registered User
    Join Date
    Oct 2004
    Posts
    120
    Check if there are any settings in the linker about use of dynamic vs. static libraries. Again, I don't know Borland, but if they have libs somewhat like MFC (from VC++) there is an option to use the lib as a dynamic (dll) or static lib. Static will build everything into the exe.

    PK

    I don't know what the file rtl.60bpl is. Try a google search or a Borland message board, that might be more helpful.

  6. #6
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903
    I use Borland all the time.. and send my .exe files to all my friends (which is like one or two people) and they never have any problems running my shizzle.
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  7. #7
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Borland does link to certain dlls with certain compiler options enabled. Wow, when I first joined the boards I'd have to say everyone else who was there would have been familiar enough with Borland to know this problem well. Times really do change.

  8. #8
    Registered User stillwell's Avatar
    Join Date
    Aug 2004
    Posts
    80
    Anyone know which settings I need to change?

    Doesn't other compilers have this problem?

  9. #9
    Registered User
    Join Date
    Oct 2004
    Posts
    120
    Every compiler comes with its own laundry list of issues and problems Like I mentioned earlier, you might have better luck on a Borland specific board or through google. Borland's fallen out of popularity over the last few years, so theres less ppl out there who can help you, but they are out there, somewhere...They just don't seem to be here

  10. #10
    Registered User stillwell's Avatar
    Join Date
    Aug 2004
    Posts
    80
    Well, do visual have the same kind of problem? I could just change compiler, as I only use Borland, because that's what we use in school.

    I even think I have a full licens for Visual, through my school.

  11. #11
    Registered User
    Join Date
    Oct 2004
    Posts
    120
    VC++ does have a similar problem when using MFC library. the MFC32.dll file has to be included with exe if you do dynamic linking.
    For console apps I have never had a problem because I usually create a completely empty project and just include a few standard C headers. I would also suggest hunting through any options. Thats how I learned how to use all the adavanced compiler features of VC++...just playing around and seeing what I can change.

    Also, if you get free VC++, it never hurts to learn it as it can be a valuable skill on your resume. There are a lot of companies that use VC++, but almost none that use Borland as their main dev environment.

    PK

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 13
    Last Post: 12-09-2008, 10:09 AM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Compiler Question
    By tyouk in forum C Programming
    Replies: 4
    Last Post: 12-03-2003, 08:28 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Problem creating .exe files
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 03-22-2002, 01:25 PM

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