Thread: Building error

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    40

    Building error

    Hello there;
    I am using Visual Studio 2010, and whenever I compile a source code ( even the template, nothing is wrong with the template right? ) it displays the message box where it says that there was build errors and then AVG jumps in telling me that the application is a potential threat. I pressed "add to exceptions". The AVG messages stopped but the building problem is still there, so what must I do guys? Anyone
    ?

  2. #2
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Well, I would start by looking at the build errors.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    40
    1>------ Build started: Project: poopoo, Configuration: Debug Win32 ------
    1>Build started 12/08/11 03:59:55 AM.
    1>InitializeBuildStatus:
    1> Touching "Debug\poopoo.unsuccessfulbuild".
    1>ClCompile:
    1> stdafx.cpp
    1>c:\program files\microsoft sdks\windows\v7.0a\include\windows.h(151): fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory
    1>
    1>Build FAILED.
    1>
    1>Time Elapsed 00:00:00.14
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

  4. #4
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Cannot open include file: 'excpt.h': No such file or directory
    This one is pretty self-explanatory, does the header file exist? If so, did you add it to your project? Did you include it with " ", e.g. #include "excpt.h" (correct), vice #include <excpt.h> (incorrect, most likely).
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  5. #5
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    I think the excpt.h is being included from windows.h, which means: what did you do with excpt.h and can you put it back?

  6. #6
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by tabstop View Post
    I think the excpt.h is being included from windows.h, which means: what did you do with excpt.h and can you put it back?
    That's a system include? Hmm...learn something new everyday.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  7. #7
    Registered User
    Join Date
    Feb 2011
    Posts
    40
    Well, there is no header file under the name excpt.h in the source code, besides I didn't type anything, the source should create an empty application ( whether it ia a console or windows application).

  8. #8
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by AndrewHunter View Post
    That's a system include? Hmm...learn something new everyday.
    I've never heard of it either, I'm just going by:
    c:\program files\microsoft sdks\windows\v7.0a\include\windows.h(151):

  9. #9
    Registered User
    Join Date
    Feb 2011
    Posts
    40
    In the console application it says in the output:
    1>------ Build started: Project: Here_Goes_Nothing_2, Configuration: Debug Win32 ------
    1>Build started 12/08/11 04:20:00 AM.
    1>InitializeBuildStatus:
    1> Touching "Debug\Here_Goes_Nothing_2.unsuccessfulbuild".
    1>ClCompile:
    1> stdafx.cpp
    1>c:\users\User_1\documents\visual studio 2010\projects\here_goes_nothing_2\here_goes_nothin g_2\stdafx.h(10): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
    1>
    1>Build FAILED.
    1>
    1>Time Elapsed 00:00:02.16
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    please guys I am really stuck.

  10. #10
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Did you make an "empty project" or did you have the studio pre-generate code for you? Either way if you didn't type anything it sounds like a broken install.

    @tabstop: Haha...I guess I should really pay attention to posts.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  11. #11
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by Blacky Ducky View Post
    In the console application it says in the output:
    1>------ Build started: Project: Here_Goes_Nothing_2, Configuration: Debug Win32 ------
    1>Build started 12/08/11 04:20:00 AM.
    1>InitializeBuildStatus:
    1> Touching "Debug\Here_Goes_Nothing_2.unsuccessfulbuild".
    1>ClCompile:
    1> stdafx.cpp
    1>c:\users\User_1\documents\visual studio 2010\projects\here_goes_nothing_2\here_goes_nothin g_2\stdafx.h(10): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
    1>
    1>Build FAILED.
    1>
    1>Time Elapsed 00:00:02.16
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    please guys I am really stuck.
    Yep, sounds like a broken installation, or you inadvertantly changed some settings if it was working before. Did you manually move stuff around?
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  12. #12
    Registered User
    Join Date
    Feb 2011
    Posts
    40
    Actually it was working fine, but I dont remember messing around in anyway.

  13. #13
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Well it gives you the path, did you open up the folder and look for the files yet?
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  14. #14
    Registered User
    Join Date
    Feb 2011
    Posts
    40
    Yes it cant seem to find libraries <stdio> or <tchar>.
    I opened <stdafx> and it had #include <stdio.h> and #include <tchar.h>, but when I try to open them (from the IDE) it says :.

    File 'stdio.h; not found in current source file's directory or in build system paths.

  15. #15
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Right, I meant did you open up explorer and trace the path to where those files are suppose to be physically located on your computer?
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Kernel building error
    By nsayag in forum Linux Programming
    Replies: 8
    Last Post: 07-15-2009, 06:04 PM
  2. Replies: 9
    Last Post: 03-30-2009, 06:37 PM
  3. GUI building, is RAD the way to go?
    By indigo0086 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-21-2007, 09:36 PM
  4. ERROR BUILDING .EXE. Can someone help.
    By TWIXMIX in forum Game Programming
    Replies: 11
    Last Post: 12-23-2004, 11:53 PM
  5. Error when building
    By Reaperc89 in forum C++ Programming
    Replies: 4
    Last Post: 01-14-2004, 10:59 PM