[Box Backup-dev] Problems with compilen under Windows XP with Visual Studio 2003

Chris Wilson boxbackup-dev@fluffy.co.uk
Sun, 19 Feb 2006 18:02:52 +0000 (GMT)


Hi Mark,

> I've tried to compile the trunk version on Windows XP with Visual Studio 
> 2003, but get a few errors and a lot of warnings.

The Visual Studio 2003 project files have not been updated since I don't 
have a copy of VS2003 to edit them with. You will need to add the missing 
files, whose names have changed slightly.

> Project: common:
> d:\Backup\Box\boxbackup\lib\win32\emu.cpp(135) : error C3861: 
> '_beginthreadex': identifier not found, even with argument-dependent lookup
> c1xx : fatal error C1083: Cannot open source file:

I really don't understand this one. Can you search your SDK header files 
for _beginthreadex and try to figure out why it's not being defined? It 
should be present on Windows XP.

> '\Backup\Box\boxbackup\lib\common\LinuxWorkaround.cpp': No such file or 
> directory

I think you can safely remove this one.

> d:\Backup\Box\boxbackup\lib\common\DebugMemLeakFinder.cpp(278) : error C3861: 
> 'getpid': identifier not found, even with argument-dependent lookup

Can you check your lib/common/BoxConfig.h to see if it says "#define 
HAVE_GETPID? If so, could you comment out that line?

> Project: bbackupd:
> c1xx : fatal error C1083: Cannot open source file: 
> '\Backup\Box\boxbackup\bin\bbackupd\ServiceBackupDaemon.cpp': No such file or 
> directory

Now called Win32BackupService.cpp.

> c1xx : fatal error C1083: Cannot open source file: 
> '\Backup\Box\boxbackup\bin\bbackupd\bbwinservice.cpp': No such file or 
> directory

Now called Win32ServiceFunctions.cpp.

> Project: win32test:
> c1xx : fatal error C1083: Cannot open source file: 
> '\Backup\Box\boxbackup\lib\win32\win32test.cpp': No such file or directory
> d:\Backup\Box\boxbackup\lib\win32\emu.cpp(135) : error C3861: 
> '_beginthreadex': identifier not found, even with argument-dependent lookup

Now in test/win32.

If you get it to build, please submit your updated project files so that I 
can update the source distribution.

Cheers, Chris.
-- 
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |