wxSqlite3-3.03 missed wxRegex  [SOLVED]

In this forum you can discuss database related issues which can be wxWidgets related, but also generic in nature.
samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 324
Joined: Mon Oct 06, 2008 12:55 pm

wxSqlite3-3.03 missed wxRegex

Postby samsam598 » Mon Apr 15, 2013 9:19 am

Greetings!

Compiling most recent wxSqlite3-3.03 with most recen SVN wx2.9.5+mingW4.4.5 by making use of the makefile is pretty fine.The lib. has been generated,the minimal example works fine as well.However,when try to include wxSqlite3 in my project,the compiler always complains as below ,but actually I've tried to add wxRegexu.a into the project.

Appreciated the help in advance.

Code: Select all

||=== Build: Release in testwxsql3 (compiler: GNU GCC Compiler) ===|
C:\person\lovedev\sdk\wx312\lib\gcc_lib\libwxmsw29u.a(monolib_regex.o):regex.cpp|| undefined reference to `wx_regfree'|
C:\person\lovedev\sdk\wx312\lib\gcc_lib\libwxmsw29u.a(monolib_regex.o):regex.cpp|| undefined reference to `wx_regfree'|
C:\person\lovedev\sdk\wx312\lib\gcc_lib\libwxmsw29u.a(monolib_regex.o):regex.cpp|| undefined reference to `wx_regfree'|
C:\person\lovedev\sdk\wx312\lib\gcc_lib\libwxmsw29u.a(monolib_regex.o):regex.cpp|| undefined reference to `wx_regfree'|
C:\person\lovedev\sdk\wx312\lib\gcc_lib\libwxmsw29u.a(monolib_regex.o):regex.cpp|| undefined reference to `wx_regerror'|
C:\person\lovedev\sdk\wx312\lib\gcc_lib\libwxmsw29u.a(monolib_regex.o):regex.cpp|| undefined reference to `wx_regerror'|
C:\person\lovedev\sdk\wx312\lib\gcc_lib\libwxmsw29u.a(monolib_regex.o):regex.cpp|| undefined reference to `wx_re_exec'|
C:\person\lovedev\sdk\wx312\lib\gcc_lib\libwxmsw29u.a(monolib_regex.o):regex.cpp|| undefined reference to `wx_re_comp'|
C:\person\lovedev\sdk\wx312\lib\gcc_lib\libwxmsw29u.a(monolib_regex.o):regex.cpp|| undefined reference to `wx_regfree'|
C:\person\lovedev\sdk\wx312\lib\gcc_lib\libwxmsw29u.a(monolib_regex.o):regex.cpp|| undefined reference to `wx_regfree'|
||=== Build failed: 10 error(s), 0 warning(s) (0 minute(s), 4 second(s)) ===|
Regards,
Sam
-------------------------------------------------------------------
Windows xp
VS.Net 2003/MinGW 3.4.5 C::B character set: UTF-8
wxWidgets github 3.0 RC1 Unicode Static build,Unicode Shared build.

utelle
Moderator
Moderator
Posts: 767
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: wxSqlite3-3.03 missed wxRegex  [SOLVED]

Postby utelle » Mon Apr 15, 2013 7:38 pm

samsam598 wrote:Compiling most recent wxSqlite3-3.03 with most recen SVN wx2.9.5+mingW4.4.5 by making use of the makefile is pretty fine.The lib. has been generated,the minimal example works fine as well.However,when try to include wxSqlite3 in my project,the compiler always complains as below ,but actually I've tried to add wxRegexu.a into the project

There were no changes to wxSQLite3 which could cause such a behaviour. So I think it's just the order of the link libraries given in your project which causes the problem. For the gcc linker the order of link libraries matter. You have to add wxRegexu.a after the library referencing it. Most probably you added it before the wxSQLite3 library. Change the order accordingly. That should work.

Regards,

Ulrich

samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 324
Joined: Mon Oct 06, 2008 12:55 pm

Re: wxSqlite3-3.03 missed wxRegex

Postby samsam598 » Tue Apr 16, 2013 1:05 am

It's fixed,order does matters,yesterday I tried this but it seem I did not hit the right one.

Thanks a lot.
Regards,
Sam
-------------------------------------------------------------------
Windows xp
VS.Net 2003/MinGW 3.4.5 C::B character set: UTF-8
wxWidgets github 3.0 RC1 Unicode Static build,Unicode Shared build.


Return to “Database Related”

Who is online

Users browsing this forum: No registered users and 1 guest