#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Posts
    8
    Rep Power
    0

    C, MySQL wrapper: making it available in other files?


    I've successfully made a connection between C and MySQL, but: my problem is : I've made a header file and a .c file with all my funcitons, now: how can I use the .c file in other programs??
    EX:
    my_file.h , my_file.c <= all the MySQL stuff
    and then use all the functions in my_test.c ???

    Just started with C,so any help/pointers apreciated!

    Thanks

    NuCleuZ

    Comments on this post

    • JimmyGosling agrees
  2. #2
  3. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    793
    There is more than one way to approach this problem.
    1) You can compile the mysql wrapper into a library and then include that library when you compile the new program.
    2) You can include the files in with your new program and use it that way.

IMN logo majestic logo threadwatch logo seochat tools logo