problem : syntax error in using wx 2.6 in c code (ms vc6 sp5)

Sandro Brasile ingbrasile at gmail.com
Tue Mar 27 08:39:24 PDT 2007


In the search path it should be a path of the type

C:\wxWidgets\lib\wx\include\unicode_release_static-2.6

where you find the file "setup.h"

Excuse me but I can't be more precise because I'm on mac.
However the simplest thing to do is to compile some wx samples (i.e. the
minimal sample). If all goes ok then your compiler is ok. Then, in this way
and if you work by cmd line, you can see the included paths (-I flags).

Sandro

On 27 Mar 2007 07:26:21 -0700, AndrewTW <Fyodor.Chang at gmail.com> wrote:
>
>
> Hi Sandro, thank you
>
> i have setup the include path in ms vc
> ( Tools - Options - Directories - Include files.... )
> C:\wxWidgets\include
> C:\wxWidgets\include\msvc
>
> and this is my library path :
> C:\WXWIDGETS\LIB\VC_LIB\MSWU       (Unicode release)
> C:\WXWIDGETS\LIB\VC_LIB\MSWUD     (Unicode debug)
> C:\WXWIDGETS\LIB\VC_LIB\MSW          (release)
> C:\WXWIDGETS\LIB\VC_LIB\MSWD       (debug)
>
> by the way, i build my wx2.6 as static library,
> and setting up the client project,  "c++ / code generation - use run-
> time library " =3D multithread
>
> this is my preprocessor definition :
> WIN32,_DEBUG,__WXMSW__,__WXDEBUG__,_UNICODE,_WINDOWS,NOPCH,PJ_WIN32=3D1,P=
J_M_I386=3D1,_CONSOLE,_MBCS
>
>
>
> There are still these errors..
>
>
> On Mar 27, 5:03 pm, ingbras... at gmail.com ("Sandro Brasile") wrote:
> > Hi Andrew
> >
> > have you set the right search path for wx headers?
> > Check it and try again
> >
> > Sandro
> >
> > On 26 Mar 2007 23:44:45 -0700, AndrewTW <Fyodor.Ch... at gmail.com> wrote:
> >
> >
> >
> > > hi all ~ i'm newbe in wx...
> >
> > > i wanna add gui interface for pjsip (http://www.pjsip.org/)  ,
> > > a excellent sip client. which is totally written in c code
> >
> > > i've followed the guide on wxwiki, setup the path for wx in vc6 (both
> > > include & library path )
> >
> > > and set [Link] - [Input] - [Object/Library modules] :
> > > wxmsw26ud_core.lib wxbase26ud.lib
> > > wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib
> > > wxexpatd.lib
> >
> > > seems all good......
> >
> > > but after i include the wx headers in main.c , such as:
> > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > > #include "wx/wxprec.h"
> >
> > > #ifndef WX_PRECOMP
> > >     #include "wx/wx.h"
> > > #endif
> >
> > > #if !defined(__WXMSW__) && !defined(__WXPM__)
> > >     #include "./sample.xpm"
> > > #endif
> > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >
> > > i got lots of syntax error in wx header files, looks like my compiler
> > > can't recognize c++ language...
> > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > > Compiling...
> > > main.c
> > > c:\wxwidgets\include\wx\buffer.h(96) : error C2061: syntax error :
> > > identifier 'wxCharBuffer'
> > > c:\wxwidgets\include\wx\buffer.h(96) : error C2059: syntax error : ';'
>
> > > c:\wxwidgets\include\wx\buffer.h(96) : error C2449: found '{' at file
> > > scope (missing function header?)
> > > c:\wxwidgets\include\wx\buffer.h(96) : error C2059: syntax error : '}'
>
> > > c:\wxwidgets\include\wx\buffer.h(96) : fatal error C1903: unable to
> > > recover from previous error(s); stopping compilation
> > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > > okay, i tried to comment the line.... buffer.h(96), then build
> > > again....
> > > there are much more syntax error within wx header files...
> >
> > > what's going on ?
> >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: wx-users-unsubscr... at lists.wxwidgets.org
> > > For additional commands, e-mail: wx-users-h... at lists.wxwidgets.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070327/772=
5ac64/attachment.htm


More information about the wx-users mailing list