Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 1675
Number of posts: 4764

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Troubling making stand-alone exe Posted by DavidS on 17 May 2001 at 8:06 PM
Whenever I try to compile a certain program into a stand-alone exe I get an error message and the attempt fails. The error is:

LINK: FATAL ERROR L1104 C:\QBASIC\BCOM.LIB: NOT VALID LIBRARY

What does this mean and what am I doing wrong?



Report
Re: Troubling making stand-alone exe Posted by del on 21 May 2001 at 11:52 PM
: LINK: FATAL ERROR L1104 C:\QBASIC\BCOM.LIB: NOT VALID LIBRARY

Just guessing, but the file might be in the wrong directory or missing altogether, or it could be corrupted.

First check that the file BCOM.LIB is actually in the C:\QBASIC directory. If it isn't, either move it into that directory, or change the path in QB to the correct path (do this by going to "Options" in QB, and then go to "Set Paths", and then go to the box "Library files .LIB, .QLB" and type in the correct directory).

If you can't find the file BCOM.LIB at all on your computer, I'd suggest downloading QB again.

Report
Re: Troubling making stand-alone exe Posted by DavidS on 25 May 2001 at 10:52 AM
: : LINK: FATAL ERROR L1104 C:\QBASIC\BCOM.LIB: NOT VALID LIBRARY
:
: Just guessing, but the file might be in the wrong directory or missing altogether, or it could be corrupted.
:
: First check that the file BCOM.LIB is actually in the C:\QBASIC directory. If it isn't, either move it into that directory, or change the path in QB to the correct path (do this by going to "Options" in QB, and then go to "Set Paths", and then go to the box "Library files .LIB, .QLB" and type in the correct directory).
:
: If you can't find the file BCOM.LIB at all on your computer, I'd suggest downloading QB again.
:

There is a file called BCOM45.LIB in the Qbasic directory. Is this what I am looking for? There is no BCOM.LIB though.

If I do have to download QB again where is a good place to do so. I had a lot of trouble finding the place I did (which is now defunct).

Thanks

Report
Re: Troubling making stand-alone exe Posted by del on 28 May 2001 at 12:38 AM
: There is a file called BCOM45.LIB in the Qbasic directory. Is this what I am looking for? There is no BCOM.LIB though.
:
: If I do have to download QB again where is a good place to do so. I had a lot of trouble finding the place I did (which is now defunct).

Yes, it will probably be called BCOM45.LIB if you are using QB version 4.5. I am using that version and the file in my version is called BCOM45.LIB as well, but it works fine on mine.

Try setting the path of your LIB files under "Options" in QB, or alternatively you could try renaming the file BCOM45.LIB to BCOM.LIB.

You can also try compiling your programs manually from DOS. Use BC.EXE (it should be in your QB dir) to convert your .BAS file to a .OBJ file (object file). Then use LINK.EXE to convert the .OBJ file you have created into an .EXE file.

It will ask you for some file names (eg. source listing [NUL.LST]), but most of them have a default value in brackets which you can just press enter to accept. When using LINK.EXE it will ask you for your library file, try typing BCOM45.LIB.

Hope I've helped!


Report
Re: Troubling making stand-alone exe Posted by DavidS on 31 May 2001 at 12:10 PM
: : There is a file called BCOM45.LIB in the Qbasic directory. Is this what I am looking for? There is no BCOM.LIB though.
: :
: : If I do have to download QB again where is a good place to do so. I had a lot of trouble finding the place I did (which is now defunct).
:
: Yes, it will probably be called BCOM45.LIB if you are using QB version 4.5. I am using that version and the file in my version is called BCOM45.LIB as well, but it works fine on mine.
:
: Try setting the path of your LIB files under "Options" in QB, or alternatively you could try renaming the file BCOM45.LIB to BCOM.LIB.
:
: You can also try compiling your programs manually from DOS. Use BC.EXE (it should be in your QB dir) to convert your .BAS file to a .OBJ file (object file). Then use LINK.EXE to convert the .OBJ file you have created into an .EXE file.
:
: It will ask you for some file names (eg. source listing [NUL.LST]), but most of them have a default value in brackets which you can just press enter to accept. When using LINK.EXE it will ask you for your library file, try typing BCOM45.LIB.
:
: Hope I've helped!
:
:
Yes, you are being very helpful!

Unfortunetly, both renaming BCOM.LIB and manually compiling the program failed to work, as well as attempting to change the library path! BCOM45.LIB just isn't accepted anywhere!!! #$@%^!!!

Any more suggestions?

Thanks for the help.
David


Report
Re: Troubling making stand-alone exe Posted by del on 1 Jun 2001 at 12:36 AM
Sorry, I don't know what else to do! Maybe the library file is corrupted. I suppose you could try downloading QB 4.5 again.


Report
Re: Troubling making stand-alone exe Posted by DavidS on 1 Jun 2001 at 10:51 AM
: Sorry, I don't know what else to do! Maybe the library file is corrupted. I suppose you could try downloading QB 4.5 again.
:
:
Thank you for all of the help.

Do you know of a place to download QB4.5?





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.