I am trying to build a C application under Windows XP Pro. I am using Dev-C++ as compiler and do a static bind with mysqlclient.lib. The sample program compiles and links OK. I receive a segmentation fault on the call of

myData = mysql_init((MYSQL*) 0)

What is wrong - I have no clue so far ...

Any hints or help are welcome