| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| Date: | Fri, 23 Nov 2007 00:21:17 +0100 |
| From: | s DOT krulj AT gmx DOT at |
| Message-ID: | <20071122232117.17790@gmx.net> |
| MIME-Version: | 1.0 |
| Subject: | Library Problem |
| To: | cygwin AT cygwin DOT com |
| X-Authenticated: | #20323981 |
| X-Flags: | 0001 |
| X-Mailer: | WWW-Mail 6100 (Global Message Exchange) |
| X-GMX-UID: | 1Tx/cshLeWUoSOV/RXRznsoxU3U4Nw8w |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hi!
I've got a problem using the libflv library (http://klaus.geekserver.net/libflv/). The build worked without any problems. "make" produced a libflv.so file, so i copied it as "libflv.dll" to "/usr/lib". I wrote a test app and tried building it with:
"gcc -lflv test.c -o test.exe"
That worked well (no warnings,errors).
But if I try running "./test.exe" there's no responce at all and I get the bash prompt again.
user AT cygwin ~
$ ./test.exe
user AT cygwin ~
$
When I remove the libflv functions I get the "printf" output...
The same code works well on unix systems...
Probably a linking error? How can I fix that?
Thanks in advance!
test.c:
#include <libflv.h>
#include <stdio.h>
int main( void ){
printf("foo\n");
Stream *vstream;
FlvStream *flv;
int width = 400;
int height = 300;
srand ( time(NULL) );
vstream = ScreenVideo_newStream(width, height, 16, 9);
flv = FlvStream_newStream("./out.flv", NULL, vstream , FLV_VERSION_1);
...
}
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |