Need help to compile a GTK+ code with C++ sql wrapper

This is a discussion on Need help to compile a GTK+ code with C++ sql wrapper within the C++ Programming forums, part of the General Programming Boards category; Hi all. I am using Mingw GCC 3.4.2 (Dev-C++). I created a GTK+ project and compiled it work. It is ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Location
    South Pacific Island
    Posts
    9

    Need help to compile a GTK+ code with C++ sql wrapper

    Hi all. I am using Mingw GCC 3.4.2 (Dev-C++).

    I created a GTK+ project and compiled it work. It is in C code. Now I want to add Sqlite3 wrapper that is in C++ code.

    My problem is, when I create a C++ project and place GTK+ code, got error for compiling, but when create a C project, got error for Sqlite3 C++ wrapper compiling.

    How I compile this project? Thanks.

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Find a c library/version of Sqlite3 compatible with your application, if such exists. Or use gtkmm, the c++ wrapper for gtk+.

    In other words, build exclusively in one language. If the situation had been reversed ie. c++ gui and c dll then you would probably have got away with it but I don't think you're going to get around the name mangling of the c++ library's exported functions in your c application.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Location
    South Pacific Island
    Posts
    9
    Thank you indeed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can you create, edit and compile C code with a C++ IDE?
    By nerdpirate in forum C Programming
    Replies: 4
    Last Post: 05-31-2008, 02:54 AM
  2. I cant compile this small code
    By raze in forum Game Programming
    Replies: 8
    Last Post: 08-05-2006, 07:36 PM
  3. I need help to compile this code...
    By wise_ron in forum C Programming
    Replies: 17
    Last Post: 05-07-2006, 01:22 PM
  4. Code will not compile - code from a book!
    By Chubz in forum C++ Programming
    Replies: 19
    Last Post: 09-12-2004, 11:21 PM
  5. This code won't compile in Red Hat Linux 9
    By array in forum Linux Programming
    Replies: 7
    Last Post: 04-27-2004, 07:30 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21