Error Stdafx.h No Such File Or Directory Ubuntu
Contents |
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 About Us Learn more about Stack Overflow the company Business Learn
Fatal Error Python.h No Such File Or Directory Ubuntu
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags fatal error curses.h no such file or directory ubuntu Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like
Fatal Error Conio.h No Such File Or Directory Ubuntu
you, helping each other. Join them; it only takes a minute: Sign up Fatal error: 'stdafx.h' file not found up vote 2 down vote favorite I am new to programming C++ and am trying to learn myself through no such file or directory ubuntu terminal websites (learncpp.com) although I am already stuck on compiling my first program =( . They use Visual Studio to program their code and because I am using a macbook, I just use vi and terminal (or should I use something else?) Here's the helloworld.cpp program I wrote based on the tutorial: #include "stdafx.h" #include
Windows and many major Linux distros here . Home Help Search Login Register Wiki Code::Blocks » User forums » Using Code::Blocks » "stdafx.h" error
Stdafx.h No Such File Or Directory Linux
when building « previous next » Send this topic Print Pages: [1] Go stdafx.h no such file or directory mingw Down Author Topic: "stdafx.h" error when building (Read 10894 times) Kblavkalash Single posting newcomer Posts: 5 "stdafx.h" error when
Rpc.h: No Such File Or Directory
building « on: March 09, 2014, 12:13:02 pm » Hello, I've got a code and a header. Now I am Windows xp in on VM from Ubuntu, and when I try to http://stackoverflow.com/questions/22621928/fatal-error-stdafx-h-file-not-found build my c++ code it says:fatal error: stdafx.h: No such file or directoryNow if I delete this line from source code then I get:fatal error: CodeAnalysis\SourceAnnotations.h: No such file or directoryI have that stdafx.h file in my project directory, so maybe I need to somehow tell him where to look? Logged stahta01 Lives here! Posts: 5393 Re: "stdafx.h" error when building « Reply #1 http://forums.codeblocks.org/index.php?topic=19034.0 on: March 09, 2014, 01:03:55 pm » Please read and follow info on this link http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3FPost the "Build Log".Post the full path to the headers reported missing.Post the path to the Code::Blocks project file (cbp).Tim S. Logged C Programmer working to learn more about C++ and Git.On Windows 7 64 bit and Windows 10 32 bit.On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.--When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org Kblavkalash Single posting newcomer Posts: 5 Re: "stdafx.h" error when building « Reply #2 on: March 09, 2014, 02:21:44 pm » Build Log:Code: [Select]mingw32-g++.exe -c "C:\Documents and Settings\Administrator\Desktop\test\src1.cpp" -o "C:\Documents and Settings\Administrator\Desktop\test\src1.o"
C:\Documents and Settings\Administrator\Desktop\test\src1.cpp:1:20: fatal error: stdafx.h: No such file or directory
#include "stdafx.h"
^
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))Path to header missing: C:\Documents and Settings\Administrator\Desktop\test\sdkvcincludePath to source code: C:\Documents and Settings\Administrator\Desktop\test Logged stahta01 Lives here! Posts: 5393 Re: "stdafx.h" error when building « Reply #3 on: March 09, 2014, 02:41:38 pm » Add the path to the header folder.Based on this FAQ http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries.
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start 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 About Us Learn more about Stack Overflow the company Business http://askubuntu.com/questions/53358/how-to-compile-c-c-programs Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes https://de.mathworks.com/matlabcentral/answers/73199-how-can-i-get-rid-of-stdafx-h-error-when-compiling-c-with-mex-in-matlab a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to compile c & c++ programs? up vote 3 down no such vote favorite 3 I read somewhere that I need to install 'build essential packager' & so I tried: sudo apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. But the file still wont compile or run... gcc -Wall -W -Werror factorial.cpp -o factorial. gives me: gcc -Wall -W -Werror factorial.cpp -o factorial. factorial.cpp:3:22: fatal no such file error: iostream.h: No such file or directory compilation terminated This is my piece of code: //WAP to demonstrate static member for calculating factorial #include