User forums > Help
[Win + C::B + WxFB] A mistake in the libraries gived to the linker?
stahta01:
You are using both DLL and Static Builds of wxWidgets libs; this will not normally work.
In other words, I see both gcc_lib and gcc_dll in the link command.
Page 14 shows that both are gcc_lib.
Tim S
kenton:
right!
now we are a step forward i think but my error log become huge !! :shock:
log with both gcc_lib:
this is the new log
in the other choise ... with both gcc_dll the program compile and link fine ...
but when i go to execute it crash at startup with this build log:
--- Code: ---Checking for existence: C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\bin\Debug\progetto_test.exe
Executing: "C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\bin\Debug\progetto_test.exe" (in C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\.)
Process terminated with status -1073741819 (0 minutes, 8 seconds)
--- End code ---
if i start prog_test.exe from windows directly it says to me that it's impossible to find wxmsw28ud_plotctrl.dll
Infact there is only "libwxmsw28ud_plotctrl.a" but not .dll
Andrea C.
stahta01:
--- Quote from: kenton on November 23, 2008, 12:17:38 am ---right!
now we are a step forward i think but my error log become huge !! :shock:
log with both gcc_lib:
this is the new log
in the other choise ... with both gcc_dll the program compile and link fine ...
but when i go to execute it crash at startup with this build log:
--- Code: ---Checking for existence: C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\bin\Debug\progetto_test.exe
Executing: "C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\bin\Debug\progetto_test.exe" (in C:\Documents and Settings\UTENTE\Documenti\Andrea\programmazione\progetto_test\.)
Process terminated with status -1073741819 (0 minutes, 8 seconds)
--- End code ---
if i start prog_test.exe from windows directly it says to me that it's impossible to find wxmsw28ud_plotctrl.dll
Infact there is only "libwxmsw28ud_plotctrl.a" but not .dll
Andrea C.
--- End quote ---
The folder C:\SourceCode\Libraries\wxWidgets2.8\additions\lib\gcc_dll has/should have wxmsw28ud_plotctrl_gcc.dll in it.
Please copy wxmsw28ud_plotctrl_gcc.dll to the folder holding the exe for the DLL build and see if run-time error goes away or changes.
Please attach the CB project of the build you wish to work on fixing; pick either DLL or Static build and mention it in post. Ijust downloaded you prior attachment will fix that.
The Log did not show which include directory was used it MUST match the DLL or Static(Lib) build.
I am testing wxPack 2.8.8.04; it seems to not work with the CB 8.02 version.
What Code::Blocks version are you using?
And what wxPack are you using?
I am going to try the Nightly Code::Blocks with wxPack to determine which is at fault for failing
with an Static Multilib build. It is starting to look like wxPack fault, but still need to do more testing.
Tim S
stahta01:
I gave up fixing your project file; started from scratch.
I used wxPack_v2.8.7.03.exe for my testing.
Tim S
Attached my project file tested with your source code.
[attachment deleted by admin]
stahta01:
FYI:
When Starting an wxWidgets project you must take care of the type of wxWidget build being used.
The main types/subtypes of wxWidgets builds to use are:
Unicode or ANSI
Debug or Release
MultiLib or Monolithic
Static or DLL(Dynamic)
You had the library names for Monolithic in your project file, but wxPack does better with MultiLib type builds.
Tim S
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version