| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Sat Oct 28, 2006 1:29 pm Post subject: Compiling libshout on Win32 |
|
|
I try to compile libshout2 2 2 on win32 (VS 7)
in file sock.h
| Code: |
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#elif _WIN32
#include <compat.h>
#endif
|
what compat.h the source is waiting about ?
i ve got about 5 differents files called compat.h on my system.
edit:
fixed i changed to
| Code: |
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#elif _WIN32
//#include <compat.h>
#define ssize_t long
#endif
|
just one error now :
ret = sock_write_bytes (self->socket, data + pos, len - pos);
shout.c(1016): error C2036: 'const void *' : unknown size
what type is supposed to come here
if i cast data+pos to (int*) it compiles but not sure it s ok to do this. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Oct 28, 2006 1:55 pm Post subject: |
|
|
Not sure what is going on with the header part, but compat.h is an icecast thing not a net thing. You change is ok.
For sock_write_bytes the cast should be (char*) as it works on the byte level (with int* it would be more bytes).
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sat Oct 28, 2006 9:36 pm Post subject: |
|
|
ok , i m about to compile my first program with libshout , but still got one problem while linking to libshout:
ShoutClient32 error LNK2001: unresolved external symbol __shout_open_vorbis
If I open shout_ogg.h i see a function called
_shout_open_vorbis ( line 43) but can t find any definition for this function or file called shout_ogg.c |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Feb 15, 2007 9:59 am Post subject: |
|
|
hi,
i still have the same error, does anybody has compiled a program with libshout on win32 on this forum? |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Fri Apr 27, 2007 2:51 am Post subject: |
|
|
| velk wrote: |
hi,
i still have the same error, does anybody has compiled a program with libshout on win32 on this forum? |
I am having the same problem. I got all the libs compiled and I can't get the example code to compile because of the same error. Anyone have any idea what is wrong? |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Fri Apr 27, 2007 3:25 am Post subject: |
|
|
Ok so I figured out what the problem I was using VC7 and when it converted the project file to the new format it stopped including vorbis.c. If you add that to the project file and point it to all the dependencies you can compile the example code hope this helps someone else. |
|
| Back to top |
|
 |
|