Code compiles etc. but just hangs on run.

Posted by Aidan on Stack Overflow See other posts from Stack Overflow or by Aidan
Published on 2010-06-16T11:41:12Z Indexed on 2010/06/16 12:12 UTC
Read the original article Hit count: 171

Filed under:

Hey guys,

My program is meant to parse through a text file, extract relevant data and then save it in a SQL table. I compile it like so..

  gcc -o parse parse.c -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient_r

then I run it like so...

  ./parse > tweets.rss

But it just hangs. it doesn't print any printf's I put in to debug. Whats wrong? here is my code...

http://pastebin.com/3R45zyMp

I'd appreciate any help!

© Stack Overflow or respective owner

Related posts about c