| Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 | 1. Can't compile db sample #3249 Posted by: 2004-01-17 03:04:32 | Hi!
I'm new with Dev-Cpp and wxWindows and databases. I've got one problem (really i have a lot of problems ;). I dont know why I have linker errors (example: [Linker error] undefined reference to `wxDb::getDataTypeInfo(short, wxDbSqlTypeInfo&)') when im trying to compile and link this sample. Maybe I should insert a library in linker params, but i don't know what library. If somebody could help me...
----------------------- If you see a BUG, don't worry. It is a meaning of your life!
| 2. Re: Can't compile db sample #3250 Posted by: KaReL 2004-01-17 05:21:27 | add wxmsw25u_adv.lib (or whatever it is called there)....
It's something with advanced in it...
------------------------ Website: www.KaReLs0ft.be | 3. Re: Can't compile db sample #3251 Posted by: 2004-01-17 07:57:52 | Hi again!
I was trying to find this library (or similar), but i haven't found it. Do I have to compile wxWindows source code or i can download it from the web? Thanks for your answer!
--------------------------------- If you see a BUG, don't worry. It is a meaning of your life!
| 4. Re: Can't compile db sample #3252 | Try this: http://g.yi.org/f.php?f=2618 | 5. Re: Can't compile db sample #3253 Posted by: upCASE 2004-01-17 21:18:57 | Hi! What version of wxWindows do you use? It makes a difference if wether you use 2.4.2 (the current stable one) or 2.5.1 (the CVS version). In 2.5.1 the libs have been splitted up into groups, where the DB classes are not in the base lib. For gcc it should be called something like libwxmsw_adv.a.
Using 2.4.2 everything gets compiled to one lib. You would have to link with libwxmsw.a. ODBC and DB classes are optional. Make sure you compiled them. Check the file setup.h for wxUSE_ODBC. It has to be set to 1 in order to compile these classes. Otherwise there will be undefined references and you'd have to compile the lib (or missing parts) again. Check http://upcase.malteser-gl.de for a little guide on compiling wxWindows I wrote some time ago. I got a devpack there that has ODBC support. There's also another link to a devpack of which I'm not certain it contains DB support.
upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! | 6. Re: Can't compile db sample #3255 Posted by: 2004-01-18 05:17:12 | Hello!
That solved all my problems with db sample. I had to compile wxWindows-2.4.2 with gcc-3.2 and i got this library. Thanks a lot.
------------------------------- If you see a BUG, don't worry. It is a meaning of your life. | Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 |
|
|