ADCH++ Build on VS 2005 win32

A private forum for us Super-Humans, I even trust you to be able to edit your own posts =)

Moderator: Moderators

Locked
Pirre
Posts: 4
Joined: 2006-11-07 10:33

ADCH++ Build on VS 2005 win32

Post by Pirre » 2006-11-29 05:47

Errors on Building Solution

OS W2K Server SP4
Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200)
Installed Edition: Enterprise
Microsoft Visual C++ 2005 77642-113-3000004-41195

Installed STLport , boost_1_33_1
Boost-Jam 3.1.13

Folowed all steps as described in the tutorial http://dcpp.net/blog/?p=115 (ps a great help thx to the poster(s)) exept the modifs in config.h as i dont seem to have that file

Used to compile under VB6 so a complete noob on C++ under VS2005 but ... willing to learn lol

Build log:

1>------ Build started: Project: adchpp, Configuration: Release Win32 ------
1>Linking...
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
1> Creating library Release\adchpp.lib and object Release\adchpp.exp
1>LINK : warning LNK4199: /DELAYLOAD:OleAcc.dll ignored; no imports found from OleAcc.dll
1>adchppdw.obj : error LNK2019: unresolved external symbol __imp__DeleteService@4 referenced in function "void __cdecl removeService(char const *)" (?removeService@@YAXPBD@Z)
1>adchppdw.obj : error LNK2019: unresolved external symbol __imp__CloseServiceHandle@4 referenced in function "void __cdecl removeService(char const *)" (?removeService@@YAXPBD@Z)
1>adchppdw.obj : error LNK2019: unresolved external symbol __imp__OpenServiceA@12 referenced in function "void __cdecl removeService(char const *)" (?removeService@@YAXPBD@Z)
1>adchppdw.obj : error LNK2019: unresolved external symbol __imp__OpenSCManagerA@12 referenced in function "void __cdecl removeService(char const *)" (?removeService@@YAXPBD@Z)
1>adchppdw.obj : error LNK2019: unresolved external symbol __imp__CreateServiceA@52 referenced in function "void __cdecl installService(char const *)" (?installService@@YAXPBD@Z)
1>adchppdw.obj : error LNK2019: unresolved external symbol __imp__SetServiceStatus@8 referenced in function "void __stdcall handler(unsigned long)" (?handler@@YGXK@Z)
1>adchppdw.obj : error LNK2019: unresolved external symbol __imp__RegisterServiceCtrlHandlerA@8 referenced in function "void __stdcall serviceStart(unsigned long,char * * const)" (?serviceStart@@YGXKQAPAD@Z)
1>adchppdw.obj : error LNK2019: unresolved external symbol __imp__StartServiceCtrlDispatcherA@4 referenced in function "void __cdecl runService(char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?runService@@YAXPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>Release\adchpp.exe : fatal error LNK1120: 8 unresolved externals
1>Build log was saved at "file://c:\adchpp\Release\BuildLog.htm"
1>adchpp - 9 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Any way to see what i messed up or ...

Thx in advance :)

VidFamne
Posts: 13
Joined: 2004-09-20 14:01

Post by VidFamne » 2006-11-29 11:56

I installed scons-0.96.1 and swigwin-1.3.29
And then in the vs 2005 commandprompt I typed; scons tools=default
You might add; mode=release
if you want a release-build

Pothead
Posts: 223
Joined: 2005-01-15 06:55

Post by Pothead » 2006-11-29 12:58

I'll quickly write a new guide . . . .
1. Install svn, and get the adchpp as mentioned in the other post.
2. "Install" boost (it doesn't need compiling, just the contents of the include directory put in the correct place on your harddisk)
3. Install python
4. Install scons
5. Install swig ( 1.3.31 needed for python2.5 )
6. Ensure the python and swig paths are set in %PATH%
(do this in Control Panel \ System \ Advanced \ Enviromental Variables )
7. Load vs2005 command prompt
8. Navigate to the correct directory.
9. Type: scons tools=default

Pirre
Posts: 4
Joined: 2006-11-07 10:33

Post by Pirre » 2006-11-29 15:49

Thx :)

even with the old "pointers" i managed to make a release and that means that even a noob as me can do it

Starting.,,.
ADCH++ v2. -Release running, press any key to exit...

Hope that debug will also work following the new ones so i can contribute my 2 cents someday

Locked