944,052 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 2968
  • C++ RSS
Jun 13th, 2006
0

Not able to compile using TurboC

Expand Post »
Hi,

I'm not a beginner in C...I'm more used to C/C++ programming through Microsoft visual C++ rather than Simple compilers such as TurboC.

Now I've loaded TurboC in my home PC so that my brothers get started with C programming...

But we are not able to compile any program...
Error: not able to open stdio.h

Actually the compiler is not able to track any include files.

I have all my settings right...INCLUDE, LIB path set in options->directories.

Please show me the way out...What else could be the problem???

Thanks,
Mamata.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Mamata is offline Offline
1 posts
since Jun 2006
Jun 13th, 2006
0

Re: Not able to compile using TurboC

I havent programmed in TurboC in my life, so I cant help you with your settings. But theoritically if the include, and library directories are configured properly, there shouldnt be any problem. Did you check that stdio.h is actually inside that directory?


Anyway why do you think that Microsoft VC isnt a good compiler for learning C? Since TurboC is a bit outdated, it would be better if you use a modern compiler like Microsoft VC or DevCPP. You can get the VC 2003 toolkit for free if you only want a commandline compiler. Although Microsoft has replaced it with the VC2005 compiler, there are external sites that lets you download it. Google for it. When it comes to compilers, there is nothing called simple or complex. All of the above compilers can be used in the command line, and that will be enough for a beginner. The way you compile is more or less the same for all compilers.
Moderator
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
WolfPack is offline Offline
1,559 posts
since Jun 2005
Jun 13th, 2006
0

Re: Not able to compile using TurboC

In my TurboC setup I have a TURBOC.CFG config file in the directory with the executables. It contains
C++ Syntax (Toggle Plain Text)
  1. -Ic:\lang\TC\INCLUDE;c:\lang
  2. -Lc:\lang\TC\LIB;c:\lang
  3. -v
-I finds any headers in either directory listed.
-L
same for libraries.
-v
to add debug code to the compile.

I have the compiler in C:\lang
Moderator
Reputation Points: 3278
Solved Threads: 894
Posting Sage
WaltP is offline Offline
7,747 posts
since May 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: C+ Compiler
Next Thread in C++ Forum Timeline: Need Help In C++





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC