News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

ld.exe cannot find -lwxscintilla

Started by kaos_frack, December 29, 2007, 07:52:46 PM

Previous topic - Next topic

kaos_frack

Here's what I'm getting:

-------------- 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:

dje

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

kaos_frack

'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

Did you check that wxscintilla.a or wxscintilla.lib exist in your tree ?

mean?

kaos_frack

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...

stahta01

Quote from: 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...

You might try removing wxscintilla and replacing it with wxmsw28ud_stc
Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

kaos_frack

#5
Hey that worked!

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

Thanks everyone!