Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Compiling Plugins with the latest SDK
jayatk:
Since I found out it's best to use the latest SDK, I'm having trouble compiling a simple plugin using the UNICODE version of Codeblocks (rev 1870) and WxWidgets 2.6.2.
Here's my error:
Linking dynamic library: MouseSearch.dll
C:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
I don't understand why it wants to link against the non-unicode version of the wxWidgets library.
I've attached some shots of my settings which I copied from contrib plugin projects. I had no problems compiling the contrib plugins off the SVN, once I got the directories set up correctly.
#CB and #WX are setup correctly.
WX_SUFFIX = u
Linker libraries:
libcodeblocks.a (latest build)
libwxscintilla.a
libwxmsw26u.a
I know I must be doing something stupid again, but this mingw32\WxWidgets\Codeblocks development enviroment is all new to me.
[attachment deleted by admin]
tiwag:
what do you have in the "Linker" tab ?
maybe there is specified
wxmsw26
instead of
wxmsw26u
or some construct like
wxmsw26$(WX_SUFFIX)
takeshimiya:
Also notice that in Directores->Compiler, there is a typo: $(CB.INCLUDE)\tinyxml. It should use the syntax of global variables: $(#CB.INCLUDE)\tinyxml.
jayatk:
--- Quote from: tiwag on January 26, 2006, 05:24:24 pm ---what do you have in the "Linker" tab ?
maybe there is specified
wxmsw26
instead of
wxmsw26u
or some construct like
wxmsw26$(WX_SUFFIX)
--- End quote ---
Here it is.
I tried changing it to just:
codeblocks
wxmsw26$(WX_SUFFIX)
wxscintilla
No go. :(
[attachment deleted by admin]
jayatk:
--- Quote from: Takeshi Miya on January 26, 2006, 05:26:39 pm ---Also notice that in Directores->Compiler, there is a typo: $(CB.INCLUDE)\tinyxml. It should use the syntax of global variables: $(#CB.INCLUDE)\tinyxml.
--- End quote ---
I'll fix that. THanks.
Navigation
[0] Message Index
[#] Next page
Go to full version