Author Topic: ld.exe cannot find -lwxscintilla  (Read 5639 times)

Offline kaos_frack

  • Single posting newcomer
  • *
  • Posts: 7
ld.exe cannot find -lwxscintilla
« 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:

Offline dje

  • Lives here!
  • ****
  • Posts: 682
Re: ld.exe cannot find -lwxscintilla
« Reply #1 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
  • the d in every wx lib (-lwxmsw28ud_core -lwxbase28ud) except for wxscintilla; is it normal ?
  • all wx libs at the beginning of the command prompt; all except wxscintilla. Did you try to change the link order ?

Dje

Offline kaos_frack

  • Single posting newcomer
  • *
  • Posts: 7
Re: ld.exe cannot find -lwxscintilla
« Reply #2 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?

Offline kaos_frack

  • Single posting newcomer
  • *
  • Posts: 7
Re: ld.exe cannot find -lwxscintilla
« Reply #3 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...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: ld.exe cannot find -lwxscintilla
« Reply #4 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
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline kaos_frack

  • Single posting newcomer
  • *
  • Posts: 7
Re: ld.exe cannot find -lwxscintilla
« Reply #5 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!
« Last Edit: December 30, 2007, 08:01:43 am by kaos_frack »