error including nsEmbedString.h

3 views
Skip to first unread message

philippe

unread,
Mar 20, 2007, 5:12:10 AM3/20/07
to
Hi

I try to include nsEmbedString.h in a visual C++ embedded gecko's
program.

I get this error

include\nsembedstring.h(48) : error C2146: syntax error : missing ';'
before identifier 'nsEmbedString'
nsembedstring.h(48) : fatal error C1004: unexpected end of file found

fom nsEmbedstring.h

on typedef line
************************************
#include "nsStringAPI.h"

/**
* compatibility
*/
typedef nsString nsEmbedString;

**************************************

my compiling defines are

WIN32
,_DEBUG
,_MBCS
,MOZILLA_INTERNAL_API
,_LIB
,OSTYPE=\"WINNT5.1\"
,OSARCH=\"WINNT\"
,BUILD_ID=0000000000
,X_DISPLAY_MISSING
,MOZILLA_VERSION=\"1.8.0.9\"
,MOZILLA_VERSION_U=1.8.0.9
,HAVE_SNPRINTF
,_WIN32
,XP_WIN
,XP_WIN32
,HW_THREADS
,WINVER=0x400
,_WIN32_WINNT=0x400
,STDC_HEADERS
,WIN32_LEAN_AND_MEAN
,NO_X11
,D_INO=d_ino
,MOZ_DEFAULT_TOOLKIT=\"windows\"
,MOZ_SUITE
,MOZ_BUILD_APP=suite
,MOZ_DISTRIBUTION_ID=\"org.mozilla\"
,OJI
,IBMBIDI
,MOZ_VIEW_SOURCE
,ACCESSIBILITY
,MOZ_XPINSTALL
,MOZ_JSLOADER
,MOZ_XTF
,MOZ_MATHML
,MOZ_UPDATE_CHANNEL=default
,NS_DISABLE_LOGGING
,DETECT_WEBSHELL_LEAKS
,MOZ_USER_DIR=\"Mozilla\"
,MOZ_XUL
,MOZ_PROFILELOCKING
,MOZ_DLL_SUFFIX=\".dll\"
,JS_THREADSAFE
,NS_PRINT_PREVIEW
,NS_PRINTING,
MOZ_REFLOW_PERF
,MOZ_REFLOW_PERF_DSP
,MOZILLA_LOCALE_VERSION=\"1.8\"
,MOZILLA_REGION_VERSION=\"1.8\"
,MOZILLA_SKIN_VERSION=\"1.8\"
,_MOZILLA_CONFIG_H_
,MOZILLA_CLIENT


Did someone get such an error


thank's

philippe

Neil

unread,
Mar 20, 2007, 5:39:35 AM3/20/07
to
philippe wrote:

>my compiling defines are
>
>WIN32
>,_DEBUG
>,_MBCS
>,MOZILLA_INTERNAL_API
>
>

I might be wrong but I don't think nsEmbedString is compatible with
MOZILLA_INTERNAL_API

--
Warning: May contain traces of nuts.

Reply all
Reply to author
Forward
0 new messages