[jdev] Any quick/ simple c/c++ libraries/tutorials?
ashiraz
ashiraz.3i9tjn at no-mx.jabberforum.org
Sun Nov 2 17:12:44 CST 2008
Jack Moffitt;4779 Wrote:
> > so my libstrophe copy is still looking for headers like :
> >
> > #include <urlmon.h>
> > #include <tchar.h>
>
> I told you once already that you don't need to compile every file in
> expat. libstrophe only uses xmlparse.c, xmltok.c, and xmlrole.c.
> None of these files use either of these two headers.
>
> Here is the relevant from SConstruct on how to build the things in
> the expat subdirectory:
>
> ExpatSources = Split("""
> xmlparse.c
> xmltok.c
> xmlrole.c
> """)
>
> and
>
> expatenv = env.Clone()
> # feature defs
> expatenv.Append(CCFLAGS=" -DXML_DTD")
> expatenv.Append(CCFLAGS=" -DXML_NS")
> expatenv.Append(CCFLAGS=" -DXML_CONTEXT_BYTES=1024")
> # sys config defs (these should be autodetected)
> expatenv.Append(CCFLAGS=" -DBYTEORDER=4321")
> expatenv.Append(CCFLAGS=" -DHAVE_MEMMOVE")
> expatenv.Append(CCFLAGS=" -DHAVE_UNISTD")
>
>
> With gcc this amounts to compiling three files with those listed
> defines, then turning them into a library. Under linux this would be
> an 'expat.a', and under windows this would be 'expat.lib'.
>
> To build the libstrophe part you need to compile these:
>
> Sources = Split("""
> ctx.c
> conn.c
> parser.c
> handler.c
> auth.c
> event.c
> stanza.c
> jid.c
> sock.c
> hash.c
> sasl.c
> sha1.c
> md5.c
> util.c
> thread.c
> snprintf.c
> tls_schannel.c
> """)
>
> They need the compiler define XML_STATIC and to be linked to
> expat.lib.
>
> Hopefully this will help.
>
> jack.
I am sorry jack but that didnt make sense to me at all.
what is split? what is sources? do I have to learn scons before I can
COMPILE libstrophe ? that doesnt sound like very easy to use and quick
to get started with.
Would you like me to ignore all the other files (remove them from a
project and just include the ones you mention here?
I have installed scon somehow (using python's latest version as opposed
to ibm's pre installed version) but it still doesnt recognize the term
"scon" (something) when I type it on the command line.
--
ashiraz
------------------------------------------------------------------------
ashiraz's Profile: http://www.jabberforum.org/member.php?userid=17305
View this thread: http://www.jabberforum.org/showthread.php?t=1013
More information about the JDev
mailing list