PDA

View Full Version : stringray compilation



sujeesh
03-03-2013, 11:12 PM
Hi,
Is it possible to compile the stringray library by setting wchat_t as "not a built in type"?.

Regards,
Sujeesh

Terry
03-04-2013, 11:55 AM
This is done with the /Zc:wchar_t- compiler switch in the makefile. Look in the makefile for the library you're building, and for your version of Visual Studio. For example, if you're building Objective Toolkit with VS2010, open ...\Src\Toolkit\BkEndMak\bldback10.mak.

Look for this:

#
# Flags specific to ASCII or Unicode:
#
!IFDEF UNICODE
CHARSET_CPP=/D"_UNICODE"
!ELSE
CHARSET_CPP=/D"_MBCS"
!ENDIF

Change it to this:

#
# Flags specific to ASCII or Unicode:
#
!IFDEF UNICODE
CHARSET_CPP=/D "_UNICODE" /Zc:wchar_t-
!ELSE
CHARSET_CPP=/D "_MBCS"
!ENDIF

sujeesh
04-02-2013, 09:03 AM
Thank You Terry!!!
The solution is working...:)