Author Topic: build warning on debugger branch  (Read 4573 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
build warning on debugger branch
« on: June 11, 2011, 01:01:34 pm »
I meet two build warning:
Quote
[ 78.6%] g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE  -DBUILDING_PLUGIN -DWXMAKINGDLL_PROPGRID -DwxPG_USE_WXMODULE=0    -IE:\code\cb\wx\wxWidgets-2.8.12\include -IE:\code\cb\wx\wxWidgets-2.8.12\contrib\include -IE:\code\cb\wx\wxWidgets-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude -Iinclude\scripting\include -Iinclude\scripting\sqplus -Iinclude\mozilla_chardet  -c E:\code\cb\cb_debugger_branch\src\src\switcherdlg.cpp -o .objs\src\switcherdlg.o
[ 85.7%] g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE  -DBUILDING_PLUGIN -DWXMAKINGDLL_PROPGRID -DwxPG_USE_WXMODULE=0    -IE:\code\cb\wx\wxWidgets-2.8.12\include -IE:\code\cb\wx\wxWidgets-2.8.12\contrib\include -IE:\code\cb\wx\wxWidgets-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude -Iinclude\scripting\include -Iinclude\scripting\sqplus -Iinclude\mozilla_chardet  -c E:\code\cb\cb_debugger_branch\src\src\threadsdlg.cpp -o .objs\src\threadsdlg.o
E:\code\cb\cb_debugger_branch\src\src\threadsdlg.cpp:10:25: warning: include/sdk_precomp.h.gch: not used because `EXPORT_LIB' not defined
[ 92.9%] g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE  -DBUILDING_PLUGIN -DWXMAKINGDLL_PROPGRID -DwxPG_USE_WXMODULE=0    -IE:\code\cb\wx\wxWidgets-2.8.12\include -IE:\code\cb\wx\wxWidgets-2.8.12\contrib\include -IE:\code\cb\wx\wxWidgets-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude -Iinclude\scripting\include -Iinclude\scripting\sqplus -Iinclude\mozilla_chardet  -c E:\code\cb\cb_debugger_branch\src\src\watchesdlg.cpp -o .objs\src\watchesdlg.o
E:\code\cb\cb_debugger_branch\src\src\watchesdlg.cpp:10:25: warning: include/sdk_precomp.h.gch: not used because `EXPORT_LIB' not defined

It seems we should use "sdk.h" in those two cpp files, do we?

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: build warning on debugger branch
« Reply #1 on: June 11, 2011, 01:05:39 pm »
the next thing is:
Quote
-------------- Build: src in Code::Blocks ---------------

[ 33.3%] g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE  -DBUILDING_PLUGIN -DWXMAKINGDLL_PROPGRID -DwxPG_USE_WXMODULE=0    -IE:\code\cb\wx\wxWidgets-2.8.12\include -IE:\code\cb\wx\wxWidgets-2.8.12\contrib\include -IE:\code\cb\wx\wxWidgets-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude -Iinclude\scripting\include -Iinclude\scripting\sqplus -Iinclude\mozilla_chardet  -c E:\code\cb\cb_debugger_branch\src\src\threadsdlg.cpp -o .objs\src\threadsdlg.o
[ 66.7%] g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE  -DBUILDING_PLUGIN -DWXMAKINGDLL_PROPGRID -DwxPG_USE_WXMODULE=0    -IE:\code\cb\wx\wxWidgets-2.8.12\include -IE:\code\cb\wx\wxWidgets-2.8.12\contrib\include -IE:\code\cb\wx\wxWidgets-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Iinclude -Iinclude\scripting\include -Iinclude\scripting\sqplus -Iinclude\mozilla_chardet  -c E:\code\cb\cb_debugger_branch\src\src\watchesdlg.cpp -o .objs\src\watchesdlg.o
[100.0%] WARNING: Target 'Code::Blocks - src': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a
g++.exe -Lbase\tinyxml -LE:\code\cb\wx\wxWidgets-2.8.12\lib\gcc_dll -Ldevel  -o devel\codeblocks.exe .objs\src\app.o .objs\src\appglobals.o .objs\src\associations.o .objs\src\backtracedlg.o .objs\src\breakpointsdlg.o .objs\src\compilersettingsdlg.o .objs\src\cpuregistersdlg.o .objs\src\crashhandler.o .objs\src\debugger_interface_creator.o .objs\src\debuggermenu.o .objs\src\debuggersettingscommonpanel.o .objs\src\debuggersettingsdlg.o .objs\src\debuggersettingspanel.o .objs\src\disassemblydlg.o .objs\src\dlgabout.o .objs\src\dlgaboutplugin.o .objs\src\environmentsettingsdlg.o .objs\src\examinememorydlg.o .objs\src\infopane.o .objs\src\main.o .objs\src\notebookstyles.o .objs\src\printdlg.o .objs\src\scriptconsole.o .objs\src\scriptingsettingsdlg.o .objs\src\splashscreen.o .objs\src\startherepage.o .objs\src\switcherdlg.o .objs\src\threadsdlg.o .objs\src\watchesdlg.o  .objs\src\resources\resources.res  -Wl,--enable-auto-import -mthreads  -lcodeblocks -lwxpropgrid -lshfolder -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwxmsw28u  -mwindows
Output size is 11.78 MB

-------------- Build: Abbreviations in Code::Blocks ---------------

WARNING: Target 'Code::Blocks - Abbreviations': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a

-------------- Build: AStyle in Code::Blocks ---------------

WARNING: Target 'Code::Blocks - AStyle': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a

-------------- Build: Autosave in Code::Blocks ---------------

WARNING: Target 'Code::Blocks - Autosave': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a

-------------- Build: Compiler depslib in Code::Blocks ---------------

Target is up to date.

-------------- Build: Compiler in Code::Blocks ---------------

WARNING: Target 'Code::Blocks - Compiler': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a

-------------- Build: Debugger in Code::Blocks ---------------

WARNING: Target 'Code::Blocks - Debugger': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a

-------------- Build: Code-completion in Code::Blocks ---------------

WARNING: Target 'Code::Blocks - Code-completion': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a

-------------- Build: Class wizard in Code::Blocks ---------------

WARNING: Target 'Code::Blocks - Class wizard': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a

-------------- Build: Default MIME handler in Code::Blocks ---------------

WARNING: Target 'Code::Blocks - Default MIME handler': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a

-------------- Build: Open files list in Code::Blocks ---------------

WARNING: Target 'Code::Blocks - Open files list': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a

-------------- Build: Projects-workspaces importer in Code::Blocks ---------------

WARNING: Target 'Code::Blocks - Projects-workspaces importer': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a

-------------- Build: Scripted wizard in Code::Blocks ---------------

WARNING: Target 'Code::Blocks - Scripted wizard': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a

-------------- Build: To-do in Code::Blocks ---------------

WARNING: Target 'Code::Blocks - To-do': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a

-------------- Build: XP look & feel in Code::Blocks ---------------

WARNING: Target 'Code::Blocks - XP look & feel': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a
Nothing to be done (all items are up-to-date).

what does this means:
Unable to resolve 1 external dependencies: devel\libcodeblocks.a
??
thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: build warning on debugger branch
« Reply #2 on: June 11, 2011, 01:41:39 pm »
the next thing is:
Quote
WARNING: Target 'Code::Blocks - Autosave': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a
This is non-critical. There are external dependencies setup in the project that cannot be resolved. You can check this in the project options -> external dependencies. Obviously wither the file does really not exist, or it has not been built yet, or the path/file name is simply wrong.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: build warning on debugger branch
« Reply #3 on: June 11, 2011, 01:49:54 pm »
the next thing is:
Quote
WARNING: Target 'Code::Blocks - Autosave': Unable to resolve 1 external dependencies:
devel\libcodeblocks.a
This is non-critical. There are external dependencies setup in the project that cannot be resolved. You can check this in the project options -> external dependencies. Obviously wither the file does really not exist, or it has not been built yet, or the path/file name is simply wrong.
Ok, I see, the lib name should be :devel\libcodeblocks.dll.a
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: build warning on debugger branch
« Reply #4 on: June 11, 2011, 02:05:52 pm »
First one is fixed.
I'm not sure about the second one. Morten should I fix the cbp file?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: build warning on debugger branch
« Reply #5 on: June 11, 2011, 02:11:19 pm »
I'm not sure about the second one. Morten should I fix the cbp file?
Yes. This is needed in trunk, too most likely. It's related to the change to allow the target output library / def name to be setup individually. However, I thought I had taken care already... :shock:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ