Thread: Link Error!

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

    Link Error!

    Hello there;
    I am using Visual Studio 2010 and the first source code I compile, which is the template, unedited, genrated this build error....
    Code:
    1>------ Build started: Project: Customers, Configuration: Debug Win32 ------
    1>Build started 22/08/11 06:56:16 AM.
    1>PrepareForBuild:
    1>  Creating directory "c:\users\ahmed\documents\visual studio 2010\Projects\Customers\Debug\".
    1>InitializeBuildStatus:
    1>  Creating "Debug\Customers.unsuccessfulbuild" because "AlwaysCreate" was specified.
    1>ClCompile:
    1>  stdafx.cpp
    1>  Customers.cpp
    1>LINK : fatal error LNK1104: cannot open file 'c:\users\ahmed\documents\visual studio 2010\Projects\Customers\Debug\Customers.exe'
    1>
    1>Build FAILED.
    1>
    1>Time Elapsed 00:00:12.40
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    if anyone can tell me what does that mean..I'd appreciate it very much.

    Thanks for your time.

  2. #2
    Registered User
    Join Date
    Feb 2011
    Posts
    40
    I think I got it.....sorry my bad.

  3. #3
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    This is one of those random bugs in VS. One possible solution is to go to Build->Rebuild Solution. If that doesn't work make sure your project doesn't contain any header files that are actually missing.
    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.

  4. #4
    Registered User
    Join Date
    Feb 2011
    Posts
    40
    Thanks Andrew, but it was a stupid mistake on my side.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 01-11-2007, 05:22 PM
  2. Link error
    By iewro in forum Networking/Device Communication
    Replies: 15
    Last Post: 09-28-2005, 02:08 AM
  3. link error
    By barneygumble742 in forum C++ Programming
    Replies: 2
    Last Post: 06-01-2005, 05:34 AM
  4. DLL Link error
    By big146 in forum C++ Programming
    Replies: 1
    Last Post: 06-29-2004, 11:45 PM
  5. link error...need help
    By Unregistered in forum C Programming
    Replies: 11
    Last Post: 06-20-2002, 02:57 PM