Advertisement

Problem executing program outside of Borland

Started by November 01, 2001 09:37 PM
9 comments, last by CHollman82 23 years, 3 months ago
Hi, I just started going through your tutorials (I'm at 4 already!) but I noticed that when I try to run the exe from outside of Borland I get an error that says "A required DLL file, CW3230.DLL, was not found". The program executes fine from within Borland, so I don't understand why it won't work on it's own. Oh, and I don't know if this is important or not, but I removed the "#include vcl.h" and "USELIB ("glaux.lib");" lines because the commenting said that they were only needed for Visual C++ 4.0. Edited by - CHollman82 on November 1, 2001 10:38:51 PM
codeXtremeif(you->intelligence < radish->intelligence) you->STFU();
quote:
Original post by CHollman82
Hi, I just started going through your tutorials (I''m at 4 already!) but I noticed that when I try to run the exe from outside of Borland I get an error that says "A required DLL file, CW3230.DLL, was not found". The program executes fine from within Borland, so I don''t understand why it won''t work on it''s own. Oh, and I don''t know if this is important or not, but I removed the "#include vcl.h" and "USELIB ("glaux.lib");" lines because the commenting said that they were only needed for Visual C++ 4.0.

Edited by - CHollman82 on November 1, 2001 10:38:51 PM


If I''m not mistaking, the 2 lines you removed shouldn''t be removed. That''s probably what''s causing your errors. Put them
back in and recompile and try again...


"And that''s the bottom line cause I said so!"

Cyberdrek
Headhunter Soft
A division of DLC Multimedia

Resist Windows XP''s Invasive Production Activation Technology!

"gitty up" -- Kramer
[Cyberdrek | ]
Advertisement
I would, except that Borland C++ has a problem with USELIB, the error says ") expected" it wants me to put a ")" right after "USE"
codeXtremeif(you->intelligence < radish->intelligence) you->STFU();
If you''re using a version of Borland more recent than 4.0, then DO COMMENT OUT #include vcl.h and Uselib("glaux.lib"), but make sure you compile the program with glaux.lib.
Yes, I am using Borland 5.02. How would I go about compiling the program with glaux.lib ?
codeXtremeif(you->intelligence < radish->intelligence) you->STFU();
CW3230.DLL is the Borland C runtime. There is a compiler option somewhere whether to link statically or dynamically against it.

"I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours." - - Stephen Roberts
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
Advertisement
I use the command line version of the Borland compiler - to compile with libraries you just call bcc32 source.cpp lib1.lib lib2.lib ...
Don''t know how you do it within the IDE. I assume there are some options somewhere - or maybe you need a project file containing the source and libraries?
In the Project Options, go to the Linker page and uncheck "Use dynamic RTL". If it is a project using forms and the VCL, then go to the Packages page and uncheck "Build with runtime packages".

Steve ''Sly'' Williams  Monkey Wrangler  Krome Studios
Steve 'Sly' Williams  Monkey Wrangler  Krome Studios
turbo game development with Borland compilers
I don''t know what all you guys are talking about.

The EASY WAY - find CW3230.DLL and put it in the same directory as your program!
Borland is funny that way...just find the dll and put it with your program.





This has been a post by oglman, King of all that is holy.

This topic is closed to new replies.

Advertisement