Compilation problem

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
mrdebug
Earned some good credits
Earned some good credits
Posts: 131
Joined: Mon Jul 17, 2006 4:57 pm

Compilation problem

Post by mrdebug » Sun Feb 22, 2009 3:48 pm

On Linux with these repositories

Code: Select all

deb http://apt.wxwidgets.org/ lenny-wx main
deb-src http://apt.wxwidgets.org/ lenny-wx main
when I try to compile my project I obtain this error:

Code: Select all

/usr/include/wx-2.8/wx/db.h|83|error: sql.h: No such file or directory|

computerquip
Experienced Solver
Experienced Solver
Posts: 72
Joined: Fri Feb 20, 2009 7:13 pm
Location: $(#wx)\src

Post by computerquip » Mon Feb 23, 2009 5:50 am

I don't see a sql.h header in my /include/wx directory or inside the /include/wx/generic directory. I don't think there is a default header that is called sql.h.

If you would give us more information on your project and most preferably your include files, I wouldn't mind helping you out further.

mrdebug
Earned some good credits
Earned some good credits
Posts: 131
Joined: Mon Jul 17, 2006 4:57 pm

Post by mrdebug » Mon Feb 23, 2009 7:43 am

I have included wx/sql.h header (that works well on Codeblocks for Windows) for to use wxDbConnectInf object.

What is the right mode to do this on Linux?

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Mon Feb 23, 2009 3:25 pm

What SQL component are you using? There exists an add-on SQL component, but as far as i know none that comes with wxWidgets

mrdebug
Earned some good credits
Earned some good credits
Posts: 131
Joined: Mon Jul 17, 2006 4:57 pm

Post by mrdebug » Mon Feb 23, 2009 3:40 pm

wxDbConnectInf

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Mon Feb 23, 2009 4:36 pm

Sorry, i don't know :(

In any case, I believe wxODBC was removed from wx 3 because it was outdated and unmaintained. You might want to consider switching to wxSQL or similar?

Post Reply