compile with msvc

Asked by Night

scons: Reading SConscript files ...
Checking for C header file poll.h... no
Checking for C header file sys/epoll.h... no
Checking for dlopen() in C library dl... no
Checking for pthread_create() in C library pthread... no
Checking for SSL_connect() in C library ssl... no
scons: done reading SConscript files.
scons: Building targets ...
Compiling build\release-default\adchpp\adchpp.pch (precompiled header)
adchpp.cpp
Compiling build\release-default\adchpp\AdcCommand.obj (shared)
AdcCommand.cpp
Compiling build\release-default\adchpp\Bot.obj (shared)
Bot.cpp
Compiling build\release-default\adchpp\Buffer.obj (shared)
Buffer.cpp
Compiling build\release-default\adchpp\Client.obj (shared)
Client.cpp
Compiling build\release-default\adchpp\ClientManager.obj (shared)
ClientManager.cpp
Compiling build\release-default\adchpp\common.obj (shared)
common.cpp
Compiling build\release-default\adchpp\Encoder.obj (shared)
Encoder.cpp
Compiling build\release-default\adchpp\Entity.obj (shared)
Entity.cpp
Compiling build\release-default\adchpp\File.obj (shared)
File.cpp
Compiling build\release-default\adchpp\Hub.obj (shared)
Hub.cpp
Compiling build\release-default\adchpp\LogManager.obj (shared)
LogManager.cpp
Compiling build\release-default\adchpp\ManagedSocket.obj (shared)
ManagedSocket.cpp
Compiling build\release-default\adchpp\PluginManager.obj (shared)
PluginManager.cpp
Compiling build\release-default\adchpp\SimpleXML.obj (shared)
SimpleXML.cpp
Compiling build\release-default\adchpp\SocketManager.obj (shared)
SocketManager.cpp
Compiling build\release-default\adchpp\Thread.obj (shared)
Thread.cpp
Compiling build\release-default\adchpp\TigerHash.obj (shared)
TigerHash.cpp
Compiling build\release-default\adchpp\TimerManager.obj (shared)
TimerManager.cpp
Compiling build\release-default\adchpp\Util.obj (shared)
Util.cpp
Compiling build\release-default\adchpp\version.obj (shared)
version.cpp
adchpp\version.cpp(29) : warning C4305: 'initializing' : truncation from 'double
' to 'float'
Compiling build\release-default\adchppd\adchppd.obj (static)
adchppd.cpp
adchppd\adchppd.cpp(69) : warning C4244: '=' : conversion from 'int' to 'unsigne
d short', possible loss of data
Compiling build\release-default\adchppd\adchppdw.obj (static)
adchppdw.cpp
Compiling build\release-default\boost\libs\system\src\error_code.obj (shared)
error_code.cpp
link /nologo /DEBUG /FIXED:NO /INCREMENTAL:NO /dll /out:build\release-default\bi
n\aboost_system.dll /implib:build\release-default\bin\aboost_system.lib /LIBPATH
:build\release-default\bin ws2_32.lib mswsock.lib build\release-default\boost\li
bs\system\src\error_code.obj
   Creating library build\release-default\bin\aboost_system.lib and object build
\release-default\bin\aboost_system.exp
link /nologo /DEBUG /FIXED:NO /INCREMENTAL:NO /dll /out:build\release-default\bi
n\adchpp.dll /implib:build\release-default\bin\adchpp.lib /LIBPATH:build\release
-default\bin ws2_32.lib mswsock.lib aboost_system.lib build\release-default\adch
pp\AdcCommand.obj build\release-default\adchpp\Bot.obj build\release-default\adc
hpp\Buffer.obj build\release-default\adchpp\Client.obj build\release-default\adc
hpp\ClientManager.obj build\release-default\adchpp\common.obj build\release-defa
ult\adchpp\Encoder.obj build\release-default\adchpp\Entity.obj build\release-def
ault\adchpp\File.obj build\release-default\adchpp\Hub.obj build\release-default\
adchpp\LogManager.obj build\release-default\adchpp\ManagedSocket.obj build\relea
se-default\adchpp\PluginManager.obj build\release-default\adchpp\SimpleXML.obj b
uild\release-default\adchpp\SocketManager.obj build\release-default\adchpp\Threa
d.obj build\release-default\adchpp\TigerHash.obj build\release-default\adchpp\Ti
merManager.obj build\release-default\adchpp\Util.obj build\release-default\adchp
p\version.obj
   Creating library build\release-default\bin\adchpp.lib and object build\releas
e-default\bin\adchpp.exp
Linking build\release-default\bin\adchppd.exe (static)
adchppdw.obj : error LNK2019: unresolved external symbol __imp__CloseServiceHand
le@4 referenced in function "void __cdecl installService(char const *,class std:
:basic_string<char,struct std::char_traits<char>,class std::allocator<char> > co
nst &)" (?installService@@YAXPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allo
cator@D@2@@std@@@Z)
adchppdw.obj : error LNK2019: unresolved external symbol __imp__CreateServiceA@5
2 referenced in function "void __cdecl installService(char const *,class std::ba
sic_string<char,struct std::char_traits<char>,class std::allocator<char> > const
 &)" (?installService@@YAXPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocat
or@D@2@@std@@@Z)
adchppdw.obj : error LNK2019: unresolved external symbol __imp__OpenSCManagerA@1
2 referenced in function "void __cdecl installService(char const *,class std::ba
sic_string<char,struct std::char_traits<char>,class std::allocator<char> > const
 &)" (?installService@@YAXPBDABV?$basic_string@DU?$char_traits@D@std@@V?$allocat
or@D@2@@std@@@Z)
adchppdw.obj : error LNK2019: unresolved external symbol __imp__DeleteService@4
referenced in function "void __cdecl removeService(char const *)" (?removeServic
e@@YAXPBD@Z)
adchppdw.obj : error LNK2019: unresolved external symbol __imp__OpenServiceA@12
referenced in function "void __cdecl removeService(char const *)" (?removeServic
e@@YAXPBD@Z)
adchppdw.obj : error LNK2019: unresolved external symbol __imp__SetServiceStatus
@8 referenced in function "void __stdcall handler(unsigned long)" (?handler@@YGX
K@Z)
adchppdw.obj : error LNK2019: unresolved external symbol __imp__RegisterServiceC
trlHandlerA@8 referenced in function "void __stdcall serviceStart(unsigned long,
char * * const)" (?serviceStart@@YGXKQAPAD@Z)
adchppdw.obj : error LNK2019: unresolved external symbol __imp__StartServiceCtrl
DispatcherA@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?$all
ocator@D@2@@std@@@Z)
build\release-default\bin\adchppd.exe : fatal error LNK1120: 8 unresolved extern
als
scons: *** [build\release-default\bin\adchppd.exe] Error 1120
scons: building terminated because of errors.

Scons:
 SCons by Steven Knight et al.:
        engine: v1.2.0.r3842, 2008/12/20 22:59:52, by scons on scons-dev
Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundatio
n

Swig:
SWIG Version 1.3.40

Compiled with i586-mingw32msvc-g++ [i686-pc-linux-gnu]
Please see http://www.swig.org for reporting bugs and further information

Python:
 Python 2.6.3 (r263rc1:75186, Oct 2 2009, 20:40:30) [MSC v.1500 32 bit (Intel)]
on win32

Question information

Language:
English Edit question
Status:
Answered
For:
ADCH++ Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
poy (poy) said :
#1

update your SCons?

Revision history for this message
Night (night.) said :
#2

same error.

SCons by Steven Knight et al.:
        engine: v1.2.0.d20090919.r4369[MODIFIED], 2009/09/19 16:58:54, by scons
on scons-dev
Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons Fou
ndation

Revision history for this message
poy (poy) said :
#3

should be fixed in rev 231.

Revision history for this message
poy (poy) said :
#4

just tried with that latest SCons and it fails detecting some of the VS components, so you better use the previous one: 1.2.0.d20090223.

Can you help with this problem?

Provide an answer of your own, or ask Night for more information if necessary.

To post a message you must log in.