User forums > Using Code::Blocks
error LNK2001: unresolved external symbol _WinMainCRTStartup
stahta01:
You are missing the Linker search Directory of $(#psdk.lib)
Steps to fix are
1. Create Global Variable psdk
a. "Settings" -> "Global Variables"
b. Look for psdk in "Current Variable" lookup/downdown list
c1. If there fix/verify value of "Base"
Mine is C:\Program Files\Microsoft Platform SDK
c2. if not there Add
i. Click on new on same line as "Current Variable"
ii. Use psdk as "New Variable" name
iii. Set Base to proper path in my case it was
C:\Program Files\Microsoft Platform SDK
2. Add Linker search Directory of $(#psdk.include)
a. "Project" -> "Build Options"
b. Select the project name the highest item in left window
c. Click on Tab "search directories"
d. verify/add $(#psdk.include) under "Compiler" Tab
e. verify/add $(#psdk.lib) under "Linker" tab
Note: My most resent PSDK did not work with Toolkit 2003, but I have no idea if that is your problem, what PSDK are you using? Needed if the above directions do not fix problems.
Note: I need to know if you are compiling release which defines NDEBUG or debug which defines _DEBUG if the above info does not fix problem.
Tim S
stahta01:
Read, my prior post for what I think is the problem, below answers to some of your questions.
Tim S
--- Quote from: mutabor on January 25, 2008, 05:58:52 pm ---I searched for the msvcrt.lib in the Toolkit/Lib folder and only found it in an AMD64- and IA64-folder (!), so I think its the wrong (64-bit) version ?!
--- End quote ---
I only found msvcrt.lib in the same places in the PSDK (MS Platform SDK), do not think that is reason to believe SDK bad.
--- Quote from: mutabor on January 25, 2008, 05:58:52 pm ---Do I have to get an other version of the msvcrt.lib or do I have to download the whole SDK again?
I admit, that I am a little bit confused :-(
--- End quote ---
If you give me the url or version of your PSDK? I can try it, to see if it works OK, may take awhile to download took me about 2 hours to do the old PSDK I just did of PSDK-x86.exe it's a web install file of 1.3 megs so it just install the files that urls are inside the exe.
Tim S
Navigation
[0] Message Index
[*] Previous page
Go to full version