Win32 build doesn't build because of stddef.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There seems to be a huge gap here...

- You can't #include  lib file. Include is for other text files,
usually header  files.
- lib files are binary files which will be linked to the application,
not compiled.

I suggest you start with something smaller than pjsip to get the
basics on building C applications that uses external libraries.

Cheers,

On 11/7/07, Eagle I Martin Baranski <eagle3386 at googlemail.com> wrote:
> 2007/11/6, Eagle I Martin Baranski <eagle3386 at googlemail.com>:
> > 2007/11/6, Perry Ismangil <perry at pjsip.org>:
> > > On 11/6/07, Eagle I Martin Baranski <eagle3386 at googlemail.com> wrote:
> > > >
> > > > Though, since I neither installed Visual Studio nor the Platform SDK,
> > > > is this the only step I need to do or do I have to install Visual
> > > > Studio and/or the Platform SDK, too?
> > > >
> > >
> > > Although you are not using Visual Studio, you will still need all the
> > > SDK mentioned on the building pjsip docs.
> > >
> > > Hope this helps.
> >
> > It helped _a lot_ - thanks for clearing this completing out! :)
> >
> > I'm now installing the SDK and setting up everything.. - I'll let you
> > all know if it worked afterwards.. ;)
>
> Alright, got the Platform SDK installed, but it still didn't work.. So
> I did some research again and finally found out, that the stddef.h is
> within MinGW's directories..
>
> Now, the problem is, that although I've specified the proper
> search-path (C:\MinGW\include), the compiler (or Code::Blocks, don't
> know for sure) wants the exact path
> (C:\MinGW\lib\gcc\mingw32\3.4.5\include), too.
>
> So, I've added that one and finally there were _a lot_ of errors gone
> - though, it didn't found pjsua.h (although "..\..\pjsip\include" is
> specified, it additionally needed "..\..\pjsip\include\pjsua-lib" to
> find the header-file)..
>
> Then, everything seemed to work fine, but it didn't.. The compiler
> complained about "#include expects "FILENAME" or <FILENAME>", but I'm
> not that stupid, so I fixed it by adding Platform SDK's lib-path to
> the search-paths and also by adding quotes:
>
> #include <pjlib.h>
> #include <pjlib-util.h>
> #include <pjnath.h>
> #include <pjsip.h>
> #include <pjsip_ua.h>
> #include <pjsip_simple.h>
> #include <pjsua.h>
> #include <pjmedia.h>
> #include <pjmedia-codec.h>
> #include "wsock32.lib"
> #include "ws2_32.lib"
> #include "ole32.lib"
> #include "dsound.lib"
>
> But this is where I go crackers.. Since the compiler now finds what he
> needs, I got again about 50 errors and 74 warnings.. - and they _all_
> complain about wsock32.lib:
>
> -------------- Build: Release Win32 in pjsua ---------------
> [ 50.0%] Compiling: ..\src\pjsua\main.c
> In file included from M:\Coding\pj-sip\pjsip-apps\src\pjsua\main.c:44:
> C:/Program Files/System/Platform SDK/Windows/Lib/wsock32.lib:1: error:
> syntax error before '!' token
> C:/Program Files/System/Platform SDK/Windows/Lib/wsock32.lib:2: error:
> stray '`' in program
> In file included from M:\Coding\pj-sip\pjsip-apps\src\pjsua\main.c:44:
> C:/Program Files/System/Platform SDK/Windows/Lib/wsock32.lib:3:1:
> warning: null character(s) ignored
> C:/Program Files/System/Platform SDK/Windows/Lib/wsock32.lib:3: error:
> stray '\141' in program
>
> So, I looked into that file - and this is all I could find:
>
> !<arch>
> /               1132304112              0       3410      `
>
>
> Three lines of code are all that file handles? Hum, did I miss something?
> The wsock32.lib inside the sub-directory called "x64" has the same
> content, except the first number which is different there..
>
> > > --
> > > Perry Ismangil
> > > Mobile: +44 7761 179 575
> > > http://www.pjsip.org
> > >
> > > PJSIP LLP
> > > 23 Langdon Street, Sheffield S11 8BH, United Kingdom
> > > T +44 114 299 8883 F +44 7092 216 3097
> > > Registered in England no. OC323977
> > >
> > > _______________________________________________
> > > Visit our blog: http://blog.pjsip.org
> > >
> > > pjsip mailing list
> > > pjsip at lists.pjsip.org
> > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> > >
> >
> >
> > --
> > =====================
> > = ~ Code is poetry ~
> > =====================
> > = Martin Baranski
> > = Eagle | Eagle3386
> > = www.troublezone.net
> > = eagle3386 at gmail.com
> > = +49 (0)160 93317843
> > =====================
> >
>
>
> --
> =====================
> = ~ Code is poetry ~
> =====================
> = Martin Baranski
> = Eagle | Eagle3386
> = www.troublezone.net
> = eagle3386 at gmail.com
> = +49 (0)160 93317843
> =====================
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>


-- 
Perry Ismangil
Mobile: +44 7761 179 575
http://www.pjsip.org

PJSIP LLP
23 Langdon Street, Sheffield S11 8BH, United Kingdom
T +44 114 299 8883 F +44 7092 216 3097
Registered in England no. OC323977



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux