> I don't have a libshout.a. I have libshout.la which it didn't > recognise, and shout.lo which resulted in a host of undefined references. > > So I guess I don't have a static lib. So How do I compile one, and is > this what I want anyway?It should be compiling one. Look in ./src/.libs (automake hides the real files in these directories). Normally, you can use the .la's, but since you're compiling by hand, libtool gets in your way, so just reference the .a directly in .libs. jack. --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Wed, 6 Jun 2001, Michael Smith wrote:> Try linking it with an explicit library (like > gcc -o example example.c ../src/libshout.a (plus other arguments that it > needs)I *really* don't know about this stuff. I don't have a libshout.a. I have libshout.la which it didn't recognise, and shout.lo which resulted in a host of undefined references. So I guess I don't have a static lib. So How do I compile one, and is this what I want anyway? Geoff. --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
At 07:38 PM 6/6/01 +1000, you wrote:>On Wed, 6 Jun 2001, Michael Smith wrote: > >> Try linking it with an explicit library (like >> gcc -o example example.c ../src/libshout.a (plus other arguments that it >> needs) > >I *really* don't know about this stuff. > >I don't have a libshout.a. I have libshout.la which it didn't >recognise, and shout.lo which resulted in a host of undefined references. > >So I guess I don't have a static lib. So How do I compile one, and is >this what I want anyway?I guess it doesn't build static libs - the .la/.lo stuff is just libtool crap which does nothing except get in the way and be annoying. libtool sucks. You'd have to modify the makefiles to make it build a static library, so it's probably best not to. I suggest you just rename the shout libs to something else (libshout2.so, for example). Then just link the example with -lshout2 instead of -lshout Michael --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Wed, 6 Jun 2001, Michael Smith wrote:> You'd have to modify the makefiles to make it build a static library, > so it's probably best not to. I suggest you just rename the shout libs > to something else (libshout2.so, for example). Then just link the example > with -lshout2 instead of -lshoutSolved my problem (or at least this one). For those who will follow me, the libs end up in libshout/src/.libs and of course, .libs doesn't come up in your standard ls. Now to see if this all makes any difference. Geoff. --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.