Thread: "Unresolved External Symbol" Error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    You might try this.

    • See if you can use the C standard library. [1]
    • See if you can use other parts of the C++ standard library. [2]
    • Create a new project, if you haven't already.
    • Compile some source code from the command line.
    • Disable, or at least rebuild, your precompiled headers.
    • Google for other people having similar troubles . . . .


    What happened when your computer crashed? Did you re-install MSVC? If not, maybe it lost some of its files.

    [1] Something like this:
    Code:
    #include <stdio.h>
    
    int main() {
        printf("Hello, World!\n");
        return 0;
    }
    [2]
    Code:
    #include <string>
    
    int main() {
        std::string str = "Hello, World!";
        return 0;
    }
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  2. #2
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183
    @Bubba
    I'm sorry, I'm rather confused by your post. I don't really understand what I'm supposed to do...
    @dwks
    Yes, I re-installed MSVC - it was erased from the computer!
    Anyway, I tried the two examples:
    [1]. Compiles fine, works fine.
    [2]. Compiles fine. However, when I run I get this error:
    Code:
    Run-Time Check Failure #2 - Stack around the variable 'str' was corrupted.
    Not sure if that has to do with the compiler...
    Thanks for all of the suggestions everyone. I wonder why I didn't have to do this last time...

    I still need help, if anyone is willing. (Maybe people thought I was finished?)
    Last edited by mikeman118; 12-19-2007 at 10:13 PM.

  3. #3
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183
    Alright, I now have everything working. It was as I thought, I had to install the platform SDK and do some other things, which I had done before, before it would work. For all who want to know, you can find a tutorial here.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  3. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  4. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  5. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 03:01 PM