Compiling DC++ for dummies

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
Cronck
Posts: 8
Joined: 2005-11-28 11:15
Location: Denmark

Compiling DC++ for dummies

Post by Cronck » 2005-11-28 11:22

I'm new kindda new to C++, though i've mad a couple of small programs before, such as calculators.
I got Visual C++ 2005 Express Edition, and the Microsoft Platform SDK.

I've changed a few things in the source code of DC++ in Visual C++ Express, but everytime i try to compile, it says that my includes doesnt exist. Such as "windows.h", and "Winsock2.h"...

I've tried to copy those files around, into several folders in the DC++ Source folder, but without any luck...

What am i supposed to do?

Cronck
Posts: 8
Joined: 2005-11-28 11:15
Location: Denmark

Post by Cronck » 2005-11-28 12:50

Here's my log:

Code: Select all

------ Build started: Project: zlib, Configuration: Debug Win32 ------
Compiling...
crc32.c
deflate.c
inffast.c
inflate.c
inftrees.c
trees.c
zutil.c
Generating Code...
Creating library...
Build log was saved at "file://d:\Appz\DC Clients\DCPlusPlus-0.674-src\vc7\Debug\zlib\BuildLog.htm"
zlib - 0 error(s), 0 warning(s)
------ Build started: Project: bzip2, Configuration: Debug Win32 ------
Compiling...
blocksort.c
d:\appz\dc clients\dcplusplus-0.674-src\bzip2\bzlib.h(118) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
bzlib.c
d:\appz\dc clients\dcplusplus-0.674-src\bzip2\bzlib.h(118) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
compress.c
d:\appz\dc clients\dcplusplus-0.674-src\bzip2\bzlib.h(118) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
crctable.c
d:\appz\dc clients\dcplusplus-0.674-src\bzip2\bzlib.h(118) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
decompress.c
d:\appz\dc clients\dcplusplus-0.674-src\bzip2\bzlib.h(118) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
huffman.c
d:\appz\dc clients\dcplusplus-0.674-src\bzip2\bzlib.h(118) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
randtable.c
d:\appz\dc clients\dcplusplus-0.674-src\bzip2\bzlib.h(118) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
Build log was saved at "file://d:\Appz\DC Clients\DCPlusPlus-0.674-src\vc7\Debug\bzip\BuildLog.htm"
bzip2 - 7 error(s), 0 warning(s)
------ Build started: Project: client, Configuration: Debug Win32 ------
Compiling...
stdinc.cpp
d:\appz\dc clients\dcplusplus-0.674-src\client\stdinc.h(35) : fatal error C1083: Cannot open include file: 'Winsock2.h': No such file or directory
Build log was saved at "file://d:\Appz\DC Clients\DCPlusPlus-0.674-src\vc7\Debug\client\BuildLog.htm"
client - 1 error(s), 0 warning(s)
------ Build started: Project: DCPlusPlus, Configuration: Debug Win32 ------
Compiling...
stdafx.cpp
d:\appz\dc clients\dcplusplus-0.674-src\client\stdinc.h(35) : fatal error C1083: Cannot open include file: 'Winsock2.h': No such file or directory
Build log was saved at "file://d:\Appz\DC Clients\DCPlusPlus-0.674-src\vc7\Debug\windows\BuildLog.htm"
DCPlusPlus - 1 error(s), 0 warning(s)
========== Build: 1 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========

Cronck
Posts: 8
Joined: 2005-11-28 11:15
Location: Denmark

Post by Cronck » 2005-11-28 13:44

I installed the SDK after Visual C++ 2005....
Now i re-installed Visual C++, and it works fine... :D

Locked