C::B and static libs

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
Rob'
Experienced Solver
Experienced Solver
Posts: 68
Joined: Mon Dec 08, 2008 10:10 pm

C::B and static libs

Post by Rob' »

I have used C::B to create a test project using static libs. The linker produces the following errors:

Code: Select all

mingw32-g++.exe -LC:\dev\wxWidgets3.0\lib\gcc48_lib -o bin\Debug\StaticTest.exe obj\Debug\GUIFrame.o obj\Debug\StaticTestApp.o obj\Debug\StaticTestMain.o  obj\Debug\resource.res -mthreads  -lwxmsw30ud_core -lwxbase30ud -lwxpngd -lwxzlibd -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -mwindows
C:\dev\wxWidgets3.0\lib\gcc48_lib/libwxbase30ud.a(baselib_wxcrt.o): In function `vswscanf':
c:/gcc/mingw-w64/4.8.1/x86_64-w64-mingw32/include/wchar.h:604: undefined reference to `__ms_vswscanf'
C:\dev\wxWidgets3.0\lib\gcc48_lib/libwxbase30ud.a(baselib_wxcrt.o): In function `vswprintf':
c:/gcc/mingw-w64/4.8.1/x86_64-w64-mingw32/include/swprintf.inl:52: undefined reference to `_imp___vswprintf'
C:\dev\wxWidgets3.0\lib\gcc48_lib/libwxbase30ud.a(baselib_wxcrt.o): In function `vsscanf':
c:/gcc/mingw-w64/4.8.1/x86_64-w64-mingw32/include/stdio.h:408: undefined reference to `__ms_vsscanf'
collect2.exe: error: ld returned 1 exit status
What is wrong here?

Thanks in advance!
Rob'
Manolo
Can't get richer than this
Can't get richer than this
Posts: 828
Joined: Mon Apr 30, 2012 11:07 pm

Re: C::B and static libs

Post by Manolo »

Did you build wxWidgets on your own? If not you have an incompatible version.
Rob'
Experienced Solver
Experienced Solver
Posts: 68
Joined: Mon Dec 08, 2008 10:10 pm

Re: C::B and static libs

Post by Rob' »

No, it is the version that comes with wxPack.
CiroboyBR
In need of some credit
In need of some credit
Posts: 2
Joined: Tue Jul 28, 2015 6:05 pm

Re: C::B and static libs

Post by CiroboyBR »

I have many erros because wrong build the wxWidgets.

I like to use this: "mingw32-make.exe -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1"

See this videos: https://www.youtube.com/watch?v=HgGzH8K ... AY&index=1
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: C::B and static libs

Post by ONEEYEMAN »

Hi,
It is better to start a new thread with the new problem/issue.
Anyway, are you trying to build the library or your own code?

Thank you.
Post Reply