Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 244 | chris | 1 | The most common reason why the demos and source fail to build are due to the lack |
| 2 | of required software to build them. Ensure that you have the following before building: |
||
| 3 | |||
| 4 | * The microsoft DirectX SDK (not just the runtime). |
||
| 5 | http://www.microsoft.com/directx |
||
| 6 | |||
| 7 | * The Windows Platform SDK (VS2005 Express does NOT include this by default but Pro does). |
||
| 8 | http://www.microsoft.com/downloads/details.aspx?FamilyId=484269E2-3B89-47E3-8EB7-1F2BE6D7123A&displaylang=en |
||
| 9 | Do not be alarmed by the title "Windows Server 2003 SP1 Platform SDK Web Install". |
||
| 10 | This allows you to develop for not just Windows Server 2003 but Windows XP/x64/etc. |
||
| 11 | |||
| 12 | You will then need to manually add the paths for the Platform SDK to your search paths in |
||
| 13 | Visual Studio: |
||
| 14 | |||
| 15 | Go to Tools->Options->Projects And Solutions->VC++ Directories |
||
| 16 | Add the paths to the appropriate subsection: |
||
| 17 | |||
| 18 | Executable files - C:\Program Files\Microsoft SDK\Bin |
||
| 19 | Include files - C:\Program Files\Microsoft SDK\include |
||
| 20 | Library files - C:\Program Files\Microsoft SDK\lib |
||
| 21 | |||
| 22 | |||
| 23 | * If you are using Visual Studio 2005 Express, make sure you add these additional libraries to your |
||
| 24 | Linker's include settings: gdi32.lib advapi32.lib shell32.lib |
||
| 25 | |||
| 26 | * If you are making your own projects and are getting errors that look something like this: |
||
| 27 | Linking... |
||
| 28 | LIBCMTD.lib(tolower.obj) : error LNK2005: __tolower already defined in LIBCD.lib(tolower.obj) |
||
| 29 | LIBCMTD.lib(tolower.obj) : error LNK2005: _tolower already defined in LIBCD.lib(tolower.obj) |
||
| 30 | LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library |
||
| 31 | Debug/Temp.exe : fatal error LNK1169: one or more multiply defined symbols found |
||
| 32 | Error executing link.exe. |
||
| 33 | |||
| 34 | then you need to add LIBCD to the ignored default libraries for debug mode and LIBC for release. |