Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: kaos_frack on December 29, 2007, 07:52:46 pm

Title: ld.exe cannot find -lwxscintilla
Post by: kaos_frack on December 29, 2007, 07:52:46 pm
Here's what I'm getting:
Code
-------------- Build: Debug in wxapp01 ---------------

[100.0%] mingw32-g++.exe -LC:\wxWidgets-2.8.6\lib\gcc_lib -LC:\wxWidgets-2.8.6\contrib\build\stc\gcc_mswud  -o bin\Debug\wxapp01.exe obj\Debug\main.o obj\Debug\wxapp_frame.o obj\Debug\MainFrameDerived.o    -lwxmsw28ud_core -lwxbase28ud -lwxpngd -lwxzlibd -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -lwxscintilla  -mwindows
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxscintilla
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 29 seconds)
1 errors, 0 warnings

What directory or file am I missing in build options?
Would be very grateful if some can help, cannot solve this problem for 3 months already...  :cry:
Title: Re: ld.exe cannot find -lwxscintilla
Post by: dje on December 29, 2007, 08:09:17 pm
Hi !

Did you check that wxscintilla.a or wxscintilla.lib exist in your tree ?
I am also surprised to see

Dje
Title: Re: ld.exe cannot find -lwxscintilla
Post by: kaos_frack on December 29, 2007, 08:21:01 pm
'd's are because it was Debug build target. Same error with Release build target.
I guess I didn't change the order anything.
And what does
Code
Did you check that wxscintilla.a or wxscintilla.lib exist in your tree ?
mean?
Title: Re: ld.exe cannot find -lwxscintilla
Post by: kaos_frack on December 29, 2007, 08:25:04 pm
interestingly i don't have the file wxscintilla.a nor wxscintilla.lib though i have successfullu compiled
sorry i forgot to mention
i compiled "stc" in contrib directory
that should suffice, right? i think it has wxscintilla in its subdirectories...
Title: Re: ld.exe cannot find -lwxscintilla
Post by: stahta01 on December 29, 2007, 09:31:33 pm
interestingly i don't have the file wxscintilla.a nor wxscintilla.lib though i have successfullu compiled
sorry i forgot to mention
i compiled "stc" in contrib directory
that should suffice, right? i think it has wxscintilla in its subdirectories...

You might try removing wxscintilla and replacing it with wxmsw28ud_stc
Tim S
Title: Re: ld.exe cannot find -lwxscintilla
Post by: kaos_frack on December 30, 2007, 07:53:14 am
Hey that worked!

Removed wxscintilla and added "libwxmsw28u_stc.a" as a link library in linker settings.

Thanks everyone!