Error with C++

  • anadnese
    19th Feb 2011 Member 0 Permalink
    Using Windows XP and trying to create a mod. followed the instuctions to the letter in setting up C++ 2010 but then I get this:

    1>------ Build started: Project: Powder, Configuration: Debug Win32 ------
    1>LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
    1>C:\Program Files\The Powder Toy\Debug\Powder.exe : fatal error LNK1120: 1 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    It tells me that it cannot locate Debug\Powder.exe and I don't know how to find it or what it is. I tried to take the actual TPT exe file and copy it into the Debug folder and rename it Powder.exe but it dissapears. What's going on?
  • Pilihp64
    19th Feb 2011 Developer 0 Permalink
    it looks like you linked something wrong, check the wiki.
  • devast8a
    19th Feb 2011 Former Staff 0 Permalink
    @anadnese
    It looks like you've set your SubSystem to Windows as opposed to Console. Which by default expects a entry point by the name of WinMain, which I don't believe powder-toy has. You need to either A) Set the subsystem to Console (Which will cause an annoying console window to pop up each time you start the app) or B) Set the entry point to main. Which can be done under the linker (Properties for Project > Linker > Advanced > Entry Point).
  • thehugh100
    19th Feb 2011 Member 0 Permalink
    this happend to me did you link a folder in quotation marks because if you did it dosent work