Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 19th June 2008, 06:12 PM   (permalink)
Default Borland C++ Error Message

Recently downloaded the free command-line C++ compiler, installation went OK but on compiling my C++ code I get: Error E2194 Could not find file
What could be the problem? I've verified the file name and confirmed there were no mistakes...
__________________
Everybody can but not everybody will.
aibelectronics is offline  
Old 19th June 2008, 06:45 PM   (permalink)
Default

Have you set the path to the correct directory?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 19th June 2008, 07:01 PM   (permalink)
Default

I did. Typing bcc32 on the console displays all the relevant parameters, Make, the compiler, linker and so on...

or if you meant the path of the file I also did as well...
__________________
Everybody can but not everybody will.
aibelectronics is offline  
Old 19th June 2008, 07:16 PM   (permalink)
Default

If you google you get lots of hits, try this reply:

Re: [edit+] Editplus Guru please give me an advic: msg#00066
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 19th June 2008, 07:19 PM   (permalink)
Default

Does the path to the file you're trying to compile have spaces in it? If so, try compiling in a directory where the path doesn't have any spaces in it.


Torben
__________________
Curiosity was framed. Ignorance killed the cat.
Torben is offline  
Old 19th June 2008, 08:25 PM   (permalink)
Default Reply

Spaces in the path? Hmm... it does. C:\Documents and Settings\Desktop... But why would Borland design a compiler that hates spaces in the path? If this is the problem then I doubt if it's very good design...

I'll try it though a little bit doubtful. About the link Nigel, I think my compiler is well set up. Thanks..
__________________
Everybody can but not everybody will.
aibelectronics is offline  
Old 19th June 2008, 08:30 PM   (permalink)
Default

Quote:
Originally Posted by aibelectronics View Post
Spaces in the path? Hmm... it does. C:\Documents and Settings\Desktop... But why would Borland design a compiler that hates spaces in the path? If this is the problem then I doubt if it's very good design...

I'll try it though a little bit doubtful.
Well, Borland C++ is from the 1990's and is a direct descendant of older DOS/Windows stuff so it might still carry some baggage from that era.

If you want to try free C++, I would first suggest g++ (under cygwin, if you're stuck using Windows), which is free and quite good. Another one which I've read good things about (but never tried) is call dev-c++.


Good luck,

Torben
__________________
Curiosity was framed. Ignorance killed the cat.
Torben is offline  
Old 20th June 2008, 09:47 AM   (permalink)
Default

Quote:
Originally Posted by aibelectronics View Post
Spaces in the path? Hmm... it does. C:\Documents and Settings\Desktop... But why would Borland design a compiler that hates spaces in the path? If this is the problem then I doubt if it's very good design...
The Windows file system is just a bodge, it doesn't really do long file names at all, and it can't include spaces. You're attempting to use an old DOS program which doesn't include the bodged file system - so use short filenames, no spaces, and keep to 8.3 as DOS requires.

It's not a Borland problem, it's a Microsoft one, as they never used a decent file system - Linux or AmigaDOS have no such problems, both been based on UNIX file systems.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 20th June 2008, 03:11 PM   (permalink)
Default

Thanks Nigel and Torben. I solved the problem by adding .txt to the end of my the file_name (I had written it in Notepad). The new problem now is the compiler cannot find stdio.h and similar header files. However I'll try re-downloading the compiler from another site and see whether that solves the problem...
__________________
Everybody can but not everybody will.

Last edited by aibelectronics; 20th June 2008 at 03:12 PM.
aibelectronics is offline  
Old 20th June 2008, 04:10 PM   (permalink)
Default

Quote:
Originally Posted by aibelectronics View Post
Thanks Nigel and Torben. I solved the problem by adding .txt to the end of my the file_name (I had written it in Notepad). The new problem now is the compiler cannot find stdio.h and similar header files. However I'll try re-downloading the compiler from another site and see whether that solves the problem...
Like I said way back in this thread, such directories need to be added to your PATH so they are found.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 20th June 2008, 07:45 PM   (permalink)
Default

Quote:
Originally Posted by aibelectronics View Post
Thanks Nigel and Torben. I solved the problem by adding .txt to the end of my the file_name (I had written it in Notepad). The new problem now is the compiler cannot find stdio.h and similar header files. However I'll try re-downloading the compiler from another site and see whether that solves the problem...
It would be a good idea if you could actually post the errors you are getting. Take a screenshot or something. Then we would have a little more to go on.


Torben
__________________
Curiosity was framed. Ignorance killed the cat.
Torben is offline  
Old 22nd June 2008, 07:55 PM   (permalink)
Default reply

Thanks. My compiler's "include" folder doesn't have stdio.h listed, the last listed was chstring.h, all header files beyond this are absent. I mean files like iomanp, time, stdlib are absent. Data Corruption? Maybe it was where I downloaded it from. I'm re-downloading another and since I'm not stuck to borland I'm open to other choices as well. About uploading pix I'll do that if will help though think we're communicating quite nicely :-)
__________________
Everybody can but not everybody will.
aibelectronics is offline  
Old 22nd June 2008, 08:08 PM   (permalink)
Default

Eeek. Notepad? Might I suggest you get a different text editor. Crimson editor is designed with programmers in mind, and it is free. It will make your life much easier.
Homepage of Crimson Editor - Free Text Editor, Html Editor, Programmers Editor for Windows
Mikebits is online now  
Old 22nd June 2008, 08:16 PM   (permalink)
Default

Quote:
Originally Posted by aibelectronics View Post
Thanks. My compiler's "include" folder doesn't have stdio.h listed, the last listed was chstring.h, all header files beyond this are absent. I mean files like iomanp, time, stdlib are absent. Data Corruption? Maybe it was where I downloaded it from. I'm re-downloading another and since I'm not stuck to borland I'm open to other choices as well. About uploading pix I'll do that if will help though think we're communicating quite nicely :-)
A screenshot of the error would be good, plus a link to where you downloaded the original package (the one you're having trouble with). I'll install it here and see what I get.


Torben
__________________
Curiosity was framed. Ignorance killed the cat.

Last edited by Torben; 22nd June 2008 at 08:16 PM. Reason: Forgot to finish a sentence.
Torben is offline  
Old 22nd June 2008, 09:41 PM   (permalink)
Default

I've just started learning c and c++ and am using 'code::blocks' ide with wxWidgets. It all fits together very nicely and makes the process quick and simple so I can concentrate on learning the language rather than paths and text editors. It's available for different OS's as well so should keep Linux users happy.
monkeybiter is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
error message gugs General Electronics Chat 2 22nd July 2007 09:41 PM
Error message EXODUS Micro Controllers 3 1st March 2007 09:00 AM
Im getting the following error message for C Using PIC faomari Micro Controllers 14 24th August 2006 09:04 AM
Error message Roff General Electronics Chat 1 16th December 2003 04:15 PM
Error message Roff General Electronics Chat 3 23rd May 2003 09:18 PM



All times are GMT. The time now is 09:16 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker