Compile warnings VS 2005 [split]

General adchpp discussion

Moderator: Moderators

Locked
VuDu
Posts: 2
Joined: 2006-08-21 09:09

Compile warnings VS 2005 [split]

Post by VuDu » 2006-08-21 09:19

Hello there, I'm trying to compile it on Visual Studio 2005 and in my c:\adchpp\adchpp\config.h at line 59 I have

Code: Select all

typedef signed char int8_t;
, so I can't replace

Code: Select all

# if _MSC_VER == 1200 || _MSC_VER == 1300 || _MSC_VER == 1310
for

Code: Select all

# if _MSC_VER == 1200 || _MSC_VER == 1300 || _MSC_VER == 1310 || _MSC_VER == 1400 #define _CRT_SECURE_NO_DEPRECATE 1
because I can't find it. :(

I get no errors, just 229 warnings about

Code: Select all

This function or variable may be unsafe. Consider using ?????? instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE.
Have I done something wrong?

If I build it that way I get this when I run the adhcpp.exe:

Code: Select all

StartingThrown: FileException: The system cannot find the file specified.
SettingsManager: Unable to load adchpp.xml, using defaults: FileException: The s
ystem cannot find the file specified.
Logging: 2006-08-21 15:43:46: adchpp: ADCH++ v2.0-Debug (Plugin API v2.0) starte
d from console
.,Logging: 2006-08-21 15:43:46: S,.
ADCH++ v2.ocketManager: Star0 running, press ating
Logging: 2006-08-21 15:43:46: SocketManager: Writer starting
ny key to exit...

VuDu
Posts: 2
Joined: 2006-08-21 09:09

Post by VuDu » 2006-08-26 08:16

I forgot to mention that I'm on Windows XP SP2.

ullner
Forum Moderator
Posts: 333
Joined: 2004-09-10 11:00
Contact:

Post by ullner » 2006-08-26 08:26

You can't connect to the hub? Or what? I recieve that output too, and the hub work fine.

FleetCmd
Posts: 22
Joined: 2003-05-20 12:19
Location: Hungary
Contact:

Post by FleetCmd » 2006-09-24 09:03

I managed to compile it, however:

1) boost don't have to be compiled to do it
2) only without lua
3) only in debug mode

If i added lua files to the project, i got many duplicated symbols errors when linking.

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

Post by Pothead » 2006-09-24 11:00

FleetCmd wrote:3) only in debug mode
Try compiling in release mode after using this patch (the changes of which Gabberworld told me about). It's also needed to compile on other compilers in release mode. :)

Code: Select all

Index: trunk/adchpp/Util.cpp
===================================================================
--- trunk/adchpp/Util.cpp	(revision 36)
+++ trunk/adchpp/Util.cpp	(working copy)
@@ -35,7 +35,7 @@
 namespace adchpp {
 	
 #ifndef _DEBUG
-FastCriticalSection FastAllocBase::cs;
+FastMutex FastAllocBase::mtx;
 #endif
 
 #ifndef _WIN32

Locked