Win32 build doesn't build because of stddef.h

EI
Eagle I Martin Baranski
Tue, Nov 6, 2007 7:17 PM

2007/11/6, Perry Ismangil perry@pjsip.org:

On 11/6/07, Eagle I Martin Baranski eagle3386@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.. ;)

--
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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--

= ~ Code is poetry ~

= Martin Baranski
= Eagle | Eagle3386
= www.troublezone.net
= eagle3386@gmail.com
= +49 (0)160 93317843

2007/11/6, Perry Ismangil <perry@pjsip.org>: > On 11/6/07, Eagle I Martin Baranski <eagle3386@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.. ;) > -- > 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@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > -- ===================== = ~ Code is poetry ~ ===================== = Martin Baranski = Eagle | Eagle3386 = www.troublezone.net = eagle3386@gmail.com = +49 (0)160 93317843 =====================
EI
Eagle I Martin Baranski
Wed, Nov 7, 2007 4:29 PM

2007/11/6, Eagle I Martin Baranski eagle3386@googlemail.com:

2007/11/6, Perry Ismangil perry@pjsip.org:

On 11/6/07, Eagle I Martin Baranski eagle3386@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--

= ~ Code is poetry ~

= Martin Baranski
= Eagle | Eagle3386
= www.troublezone.net
= eagle3386@gmail.com
= +49 (0)160 93317843

--

= ~ Code is poetry ~

= Martin Baranski
= Eagle | Eagle3386
= www.troublezone.net
= eagle3386@gmail.com
= +49 (0)160 93317843

2007/11/6, Eagle I Martin Baranski <eagle3386@googlemail.com>: > 2007/11/6, Perry Ismangil <perry@pjsip.org>: > > On 11/6/07, Eagle I Martin Baranski <eagle3386@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@lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > -- > ===================== > = ~ Code is poetry ~ > ===================== > = Martin Baranski > = Eagle | Eagle3386 > = www.troublezone.net > = eagle3386@gmail.com > = +49 (0)160 93317843 > ===================== > -- ===================== = ~ Code is poetry ~ ===================== = Martin Baranski = Eagle | Eagle3386 = www.troublezone.net = eagle3386@gmail.com = +49 (0)160 93317843 =====================
TP
Thomas Plotkowiak
Wed, Nov 7, 2007 4:52 PM

Maybe this one will help, I made a small tutorial how to create a project
with screenshots. I do not guarantee that my way of doing it is correct.

http://plotti.com/pjproj/index.htm

Cheers
Thomas

2007/11/7, Eagle I Martin Baranski eagle3386@googlemail.com:

2007/11/6, Eagle I Martin Baranski eagle3386@googlemail.com:

2007/11/6, Perry Ismangil perry@pjsip.org:

On 11/6/07, Eagle I Martin Baranski eagle3386@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--

= ~ Code is poetry ~

= Martin Baranski
= Eagle | Eagle3386
= www.troublezone.net
= eagle3386@gmail.com
= +49 (0)160 93317843

--

= ~ Code is poetry ~

= Martin Baranski
= Eagle | Eagle3386
= www.troublezone.net
= eagle3386@gmail.com
= +49 (0)160 93317843


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Maybe this one will help, I made a small tutorial how to create a project with screenshots. I do not guarantee that my way of doing it is correct. http://plotti.com/pjproj/index.htm Cheers Thomas 2007/11/7, Eagle I Martin Baranski <eagle3386@googlemail.com>: > > 2007/11/6, Eagle I Martin Baranski <eagle3386@googlemail.com>: > > 2007/11/6, Perry Ismangil <perry@pjsip.org>: > > > On 11/6/07, Eagle I Martin Baranski <eagle3386@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@lists.pjsip.org > > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > > > > -- > > ===================== > > = ~ Code is poetry ~ > > ===================== > > = Martin Baranski > > = Eagle | Eagle3386 > > = www.troublezone.net > > = eagle3386@gmail.com > > = +49 (0)160 93317843 > > ===================== > > > > > -- > ===================== > = ~ Code is poetry ~ > ===================== > = Martin Baranski > = Eagle | Eagle3386 > = www.troublezone.net > = eagle3386@gmail.com > = +49 (0)160 93317843 > ===================== > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
EI
Eagle I Martin Baranski
Wed, Nov 7, 2007 9:55 PM

2007/11/7, Thomas Plotkowiak plotti@gmx.net:

Maybe this one will help, I made a small tutorial how to create a project
with screenshots. I do not guarantee that my way of doing it is correct.

http://plotti.com/pjproj/index.htm

Cheers
Thomas

Hi,

thanks for that tutorial. Unfortunately, I'm not running VS, but
instead "Code::Blocks" as my IDE (manly just because it supports GCC
which I prefer a lot more than MS' compilers).

Anyway, to me it seems that the wsock32.lib-file is a bit goofed up,
because (as posted earlier) that can't really be the contents of a
socket-library, does it?

And I just cannot imagine that standard-compliant C++ source code
can't be compiled on a system using GCC instead of a MS-compiler..

=====================
= ~ Code is poetry ~

= Martin Baranski
= Eagle | Eagle3386
= www.troublezone.net
= eagle3386@gmail.com
= +49 (0)160 93317843

2007/11/7, Thomas Plotkowiak <plotti@gmx.net>: > Maybe this one will help, I made a small tutorial how to create a project > with screenshots. I do not guarantee that my way of doing it is correct. > > http://plotti.com/pjproj/index.htm > > Cheers > Thomas Hi, thanks for that tutorial. Unfortunately, I'm not running VS, but instead "Code::Blocks" as my IDE (manly just because it supports GCC which I prefer _a lot_ more than MS' compilers). Anyway, to me it seems that the wsock32.lib-file is a bit goofed up, because (as posted earlier) that can't really be the contents of a socket-library, does it? And I just cannot imagine that standard-compliant C++ source code can't be compiled on a system using GCC instead of a MS-compiler.. -- ===================== = ~ Code is poetry ~ ===================== = Martin Baranski = Eagle | Eagle3386 = www.troublezone.net = eagle3386@gmail.com = +49 (0)160 93317843 =====================
PI
Perry Ismangil
Wed, Nov 7, 2007 11:26 PM

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@googlemail.com wrote:

2007/11/6, Eagle I Martin Baranski eagle3386@googlemail.com:

2007/11/6, Perry Ismangil perry@pjsip.org:

On 11/6/07, Eagle I Martin Baranski eagle3386@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--

= ~ Code is poetry ~

= Martin Baranski
= Eagle | Eagle3386
= www.troublezone.net
= eagle3386@gmail.com
= +49 (0)160 93317843

--

= ~ Code is poetry ~

= Martin Baranski
= Eagle | Eagle3386
= www.troublezone.net
= eagle3386@gmail.com
= +49 (0)160 93317843


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@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

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@googlemail.com> wrote: > 2007/11/6, Eagle I Martin Baranski <eagle3386@googlemail.com>: > > 2007/11/6, Perry Ismangil <perry@pjsip.org>: > > > On 11/6/07, Eagle I Martin Baranski <eagle3386@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@lists.pjsip.org > > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > > > > -- > > ===================== > > = ~ Code is poetry ~ > > ===================== > > = Martin Baranski > > = Eagle | Eagle3386 > > = www.troublezone.net > > = eagle3386@gmail.com > > = +49 (0)160 93317843 > > ===================== > > > > > -- > ===================== > = ~ Code is poetry ~ > ===================== > = Martin Baranski > = Eagle | Eagle3386 > = www.troublezone.net > = eagle3386@gmail.com > = +49 (0)160 93317843 > ===================== > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@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
RK
Roland Klabunde
Wed, Nov 7, 2007 11:36 PM

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

Yeah. Try

#include <stdio.h>

void main() {
printf("Hello World\n");
}

rofl :)

----- Original Message -----
From: "Perry Ismangil" perry@pjsip.org
To: "pjsip embedded/DSP SIP discussion" pjsip@lists.pjsip.org
Sent: Thursday, November 08, 2007 12:26 AM
Subject: Re: [pjsip] Win32 build doesn't build because of stddef.h

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@googlemail.com wrote:

2007/11/6, Eagle I Martin Baranski eagle3386@googlemail.com:

2007/11/6, Perry Ismangil perry@pjsip.org:

On 11/6/07, Eagle I Martin Baranski eagle3386@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--

= ~ Code is poetry ~

= Martin Baranski
= Eagle | Eagle3386
= www.troublezone.net
= eagle3386@gmail.com
= +49 (0)160 93317843

--

= ~ Code is poetry ~

= Martin Baranski
= Eagle | Eagle3386
= www.troublezone.net
= eagle3386@gmail.com
= +49 (0)160 93317843


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@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


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

> I suggest you start with something smaller than pjsip to get the > basics on building C applications that uses external libraries. Yeah. Try #include <stdio.h> void main() { printf("Hello World\n"); } rofl :) ----- Original Message ----- From: "Perry Ismangil" <perry@pjsip.org> To: "pjsip embedded/DSP SIP discussion" <pjsip@lists.pjsip.org> Sent: Thursday, November 08, 2007 12:26 AM Subject: Re: [pjsip] Win32 build doesn't build because of stddef.h > 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@googlemail.com> wrote: > > 2007/11/6, Eagle I Martin Baranski <eagle3386@googlemail.com>: > > > 2007/11/6, Perry Ismangil <perry@pjsip.org>: > > > > On 11/6/07, Eagle I Martin Baranski <eagle3386@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@lists.pjsip.org > > > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > > > > > > > > -- > > > ===================== > > > = ~ Code is poetry ~ > > > ===================== > > > = Martin Baranski > > > = Eagle | Eagle3386 > > > = www.troublezone.net > > > = eagle3386@gmail.com > > > = +49 (0)160 93317843 > > > ===================== > > > > > > > > > -- > > ===================== > > = ~ Code is poetry ~ > > ===================== > > = Martin Baranski > > = Eagle | Eagle3386 > > = www.troublezone.net > > = eagle3386@gmail.com > > = +49 (0)160 93317843 > > ===================== > > > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip@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 > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >