Error Unable To Create Output File In C
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site unable to create output file in turbo c About Us Learn more about Stack Overflow the company Business Learn more unable to create output file tcpdf about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss unable to open iostream h in turbo c++ Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Errors when running my Turbo-C HelloWorld example up vote -2 down vote favorite When I run simple printf command, I get the following errors: First.c 1: Unable to open file stdio.h First.c 2: Unable to create output file 'D:\TCC\First.obj' Please let me know what I did wrong here. Platform : Windows IDE: Turbo C c share|improve this question edited Jun 9 '12 at 4:27 Michael Petrotta 44.5k11108151 asked Jun 8 '12 at 19:12 user1445267 1414 1 What is the full code and how are you compiling? –Mike Kwan Jun 8 '12 at 19:13 And what platform are you on? –Hassan Jun 8 '12 at 19:14 2 and what is the exact error message you get? –marcelog Jun 8 '12 at 19:16 Please look into this: stackoverflow.com/questions/1961828/why-not-turbo-c –SuperSaiyan Jun 9 '12 at 4:33 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote Solution in Windows check this link and below solution: this solution copied form one of stackoverflow.com pages Check if you have anything like those stdio.h file and other header files under INCLUDE folder and LIB folder. LIB contains some files. In my case, I had the same issue but both of these folder were blank.. good to know. Steps: Press: ALT + O + D (i.e. press ATL (keep pressed) and then O english character) and then D). You'll see a popup window. This window will have values for INCLUDE and LIB directories. The by default value for these two boxes in the popup window are: Drive l
Best Of... Categories 141.8K All Categories104.8K Programming Languages 6.4K Assembler Developer 1.9K Basic 39.9K C and C++ 4.3K C# 7.9K Delphi and Kylix 4 Haskell 9.6K Java 4.1K Pascal 1.3K Perl 2K PHP 525 Python 37 Ruby 4.4K VB.NET 1.6K VBA 20.8K Visual Basic 2.6K Game programming 312 Console programming 89 DirectX Game dev 1 Minecraft 110 Newbie Game Programmers 2 Oculus Rift 9K Applications 1.8K Computer Graphics 732 Computer Hardware 3.5K Database & SQL 528 Electronics development 1.6K Matlab 628 Sound & Music 257 XML Development 3.3K Classifieds 198 Co-operative Projects 189 For sale 190 FreeLance Software City http://stackoverflow.com/questions/10954762/errors-when-running-my-turbo-c-helloworld-example 1.9K Jobs Available 601 Jobs Wanted 202 Wanted 2.9K Microsoft .NET 1.7K ASP.NET 1.1K .NET General 3.3K Miscellaneous 5 Join the Team 0 User Profiles 354 Comments on this site 62 Computer Emulators 2.1K General programming 187 New programming languages 613 Off topic board 179 Mobile & Wireless 53 Android 124 Palm Pilot 335 Multimedia 151 Demo programming 184 MP3 programming 6.9K Operating Systems & Platforms 0 Bash scripts 22 http://www.programmersheaven.com/discussion/408952/unable-to-create-output-file Cloud Computing 365 Embedded / RTOS 53 FreeBSD 1.7K LINUX programming 369 MS-DOS 0 Shell scripting 320 Windows CE & Pocket PC 4.1K Windows programming 906 Software Development 408 Algorithms 68 Object Orientation 89 Project Management 90 Quality & Testing 250 Security 7.6K WEB-Development 1.8K Active Server Pages 61 AJAX 2 Bootstrap Themes 55 CGI Development 19 ColdFusion 224 Flash development 1.4K HTML & WEB-Design 1.4K Internet Development 2.2K JavaScript 35 JQuery 290 WEB Servers 153 WEB-Services / SOAP unable to create output file britto116 Member Posts: 2 November 2009 in Beginner C/C++ Its simple addition pgm after installing turbo c3 ts s my first program after i enter and compile,this error came plz clear ts the error s turboc2oname.cerror 1:turboc2oname.c:unable to create output'noname.obj' 0 · Share on Facebook Comments AsmGuru62 Member Posts: 6,519 November 2009 [color=Blue]Try to save the file NONAME.C as some PROG1.C or some other name. Turbo C assumes that NONAME is a predefined file name for a non-existent file. Change it.[/color] 0 · Share on Facebook Sign In or Register to comment. Terms of use / Privacy statement / Publisher: Lars Hagelin Programmers Heaven articles / Programmers Heaven files / Programmers Heaven uploaded content / Programmers Heaven C Sharp ebook / Operated by Community
question and get tips & solutions from a community of 418,547 IT Pros & Developers. It's quick & easy. unable t create output file in c P: 2 poojaprakashsp ow shud https://bytes.com/topic/c/answers/845062-unable-t-create-output-file-c i solve this problem???? Oct 11 '08 #1 Post Reply Share this Question 5 Replies Expert 2.5K+ P: 3,652 Ganon11 What are attempting now, any what errors, if any, do you get? Oct 11 '08 #2 reply P: 2 poojaprakashsp Im a degree student currently doing my project I had done some part of my project in colege and stored that in my pen driv wen i came home and copied those files and compiled it....it unable to showed a FATAL ERROR i.e UNABLE TO CREATE OUTPUT FILE ...........'C:\TC\OUTPUT\filename.obj' dont know how to solve this one......... Oct 12 '08 #3 reply Expert Mod 2.5K+ P: 4,675 sicarie Could you post the function in your code that creates this output file, as well as the declaration of any variables used? ::Edit:: poojaprakashsp - Please do not double-post your questions. Ganon11 has attempted to help you so please use the first thread you have created. unable to create As well, please review the rest of the Posting Guidelines for this site and abide by them in the future. Thanks, sicarie Oct 13 '08 #4 reply 100+ P: 687 newb16 Could you post the function in your code that creates this output file, as well as the declaration of any variables used? It's not a runtime error during execution, it's compiler error during compilation phase ( it's unable to create object file in default output directory ) . The solution is sort of 'computer user 101' - check this directory exists, there is no read-only file with the same name, etc. Oct 13 '08 #5 reply Expert Mod 2.5K+ P: 4,675 sicarie It's not a runtime error during execution, it's compiler error during compilation phase ( it's unable to create object file in default output directory ) . The solution is sort of 'computer user 101' - check this directory exists, there is no read-only file with the same name, etc. That's very true - my preferred method of troubleshooting is getting the user to post the directory location, and then opening up an explorer window, pasting that directory location, making sure it goes to the right place, that the file is spelled correctly, and then that the file is declared correctly for writing (which is in the code). Oct 13 '08 #6