MySQL Forums
Forum List  »  Source, Builds, Binaries

Compiling 5.0.36 Windows with VS C++ 2005 Express
Posted by: Martin Gilday
Date: March 07, 2007 04:03AM

I am trying to compile MySQL from source for the first time. I do not have any experience with C++. I have followed the guide given with the source. Installed VS C++ 20005 Express and the Platform SDK. Initially trying to run a build gave many errors. A bit of research showed me I needed to link in the lib and include directories from the Platform SDK. However I am still getting 24 failed projects. All LNK2019 unresolved symbol errors. Below is part of the log.

I have skipped parts of the guide INSTALL-WIN-SOURCES as they do not seem relevant to the current export. I have missed out steps 1-4 as I do not have any directory called 'win'.

Is there anything simple I am missing to resolve the dependency?

Thanks,
Martin.

----------------------------------------
41>Linking...
41>WindowsService.obj : error LNK2019: unresolved external symbol __imp__CloseServiceHandle@4 referenced in function "public: int __thiscall WindowsService::IsInstalled(void)" (?IsInstalled@WindowsService@@QAEHXZ)
41>WindowsService.obj : error LNK2019: unresolved external symbol __imp__OpenServiceA@12 referenced in function "public: int __thiscall WindowsService::IsInstalled(void)" (?IsInstalled@WindowsService@@QAEHXZ)
41>WindowsService.obj : error LNK2019: unresolved external symbol __imp__OpenSCManagerA@12 referenced in function "public: int __thiscall WindowsService::IsInstalled(void)" (?IsInstalled@WindowsService@@QAEHXZ)
41>WindowsService.obj : error LNK2019: unresolved external symbol __imp__SetServiceStatus@8 referenced in function "protected: int __thiscall WindowsService::ReportStatus(unsigned long,unsigned long,unsigned long)" (?ReportStatus@WindowsService@@IAEHKKK@Z)
41>WindowsService.obj : error LNK2019: unresolved external symbol __imp__CreateServiceA@52 referenced in function "public: int __thiscall WindowsService::Install(void)" (?Install@WindowsService@@QAEHXZ)
41>WindowsService.obj : error LNK2019: unresolved external symbol __imp__DeleteService@4 referenced in function "public: int __thiscall WindowsService::Remove(void)" (?Remove@WindowsService@@QAEHXZ)
41>WindowsService.obj : error LNK2019: unresolved external symbol __imp__RegisterServiceCtrlHandlerA@8 referenced in function "protected: void __thiscall WindowsService::RegisterAndRun(unsigned long,char * *)" (?RegisterAndRun@WindowsService@@IAEXKPAPAD@Z)
41>WindowsService.obj : error LNK2019: unresolved external symbol __imp__StartServiceCtrlDispatcherA@4 referenced in function "public: int __thiscall WindowsService::Init(void)" (?Init@WindowsService@@QAEHXZ)
41>mysys.lib(thr_alarm.obj) : error LNK2019: unresolved external symbol __imp__SetTimer@16 referenced in function _thr_alarm
41>mysys.lib(thr_alarm.obj) : error LNK2019: unresolved external symbol __imp__KillTimer@8 referenced in function _thr_got_alarm
41>mysys.lib(thr_alarm.obj) : error LNK2019: unresolved external symbol __imp__PeekMessageA@20 referenced in function _thr_got_alarm
41>mysys.lib(my_init.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function _my_win_init
41>mysys.lib(my_init.obj) : error LNK2019: unresolved external symbol __imp__RegEnumValueA@32 referenced in function _my_win_init
41>mysys.lib(my_init.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function _my_win_init
41>taocrypt.lib(random.obj) : error LNK2019: unresolved external symbol __imp__CryptAcquireContextA@20 referenced in function "public: __thiscall TaoCrypt::OS_Seed::OS_Seed(void)" (??0OS_Seed@TaoCrypt@@QAE@XZ)
41>taocrypt.lib(random.obj) : error LNK2019: unresolved external symbol __imp__CryptReleaseContext@8 referenced in function "public: __thiscall TaoCrypt::OS_Seed::~OS_Seed(void)" (??1OS_Seed@TaoCrypt@@QAE@XZ)
41>taocrypt.lib(random.obj) : error LNK2019: unresolved external symbol __imp__CryptGenRandom@12 referenced in function "public: void __thiscall TaoCrypt::OS_Seed::GenerateSeed(unsigned char *,unsigned int)" (?GenerateSeed@OS_Seed@TaoCrypt@@QAEXPAEI@Z)
41>../../client_release/mysqlmanager.exe : fatal error LNK1120: 17 unresolved externals
41>Build log was saved at "file://c:\docs\mysql-5.0.36\server-tools\instance-manager\Release\BuildLog.htm"
41>mysqlmanager - 18 error(s), 61 warning(s)
========== Build: 17 succeeded, 24 failed, 0 up-to-date, 2 skipped ==========



Edited 1 time(s). Last edit at 03/07/2007 04:09AM by Martin Gilday.

Options: ReplyQuote


Subject
Views
Written By
Posted
Compiling 5.0.36 Windows with VS C++ 2005 Express
4040
March 07, 2007 04:03AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.