Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: mandrav on February 13, 2005, 11:57:47 pm
-
Hi guys.
Some great new features have made it in the CVS version of codeblocks and I need some more people testing them (especially one specific feature, noted below).
Major updates are:
- Editor color theme is now configured completely (yes, even the editor's background :) )
- Support for unlimited, user-defined, editor color themes.
- Import/export codeblocks configuration from/to text file (import not implemented yet). Available for all the configuration settings, or parts of them (user-selectable)
- Libraries used for linking got separated from other linker options (mostly interested here)
- Project file format changed subtly because of the last point, but conversion is handled automatically on first-time open of older projects[/list:u]
Feedback is welcome for all of the above, but I am mostly interested for feedback on the linking libraries handling. The reason is that any bug/mistake with this, can break the build system and we don't want that, do we? 8)
As a sidenote: keep a backup of your project files first. Better be safe than sorry ;)
Thanks,
Yiannis.
-
Hi Yiannis,
Yes I'm using CVS version.
(And You didn't commit compilerDMC yet ;-))
Though I saw the changes about seperating res from linker objects.
I'll look closely about mentioned "Major updates".
--
Regards,
Hakki Dogusan
-
Hey Hakki,
What a coincidence! Just seconds ago, I sent you a mail talking about the brand new DigitalMars support (thanks to you)!
Yiannis.
-
Hi Yiannis,
Thanks for accepting my tiny contribution.
Following is my current DMC switches:
m_Commands[(int)ctCompileObjectCmd] = "$compiler -mn -c $options $includes -o$object $file";
m_Commands[(int)ctCompileResourceCmd] = "$rescomp -32 $options -I$res_includes -o$resource_output $file";
m_Commands[(int)ctLinkExeCmd] = "$linker /NOLOGO /subsystem:windows -WA $link_options $link_objects, $exe_output, , $libs, , $link_resobjects";
m_Commands[(int)ctLinkConsoleExeCmd] = "$linker /NOLOGO $link_options $link_objects, $exe_output, , $libs";
m_Commands[(int)ctLinkDynamicCmd] = "$linker /NOLOGO /subsystem:windows -WD $link_options $link_objects, $exe_output, , $libs, , $link_resobjects";
m_Commands[(int)ctLinkStaticCmd] = "lib $static_output /C $link_options , $link_objects";
- I think we need $res_options variable
- Where do I enter $res_includes values?
- I successfully compiled console, win targets
- I'll work on for the others (wx targets compiles but not links:
C:\wx25\lib\dmc_lib\wxmsw25.lib(crashrpt)
Error 42: Symbol Undefined ?wxGlobalSEInformation@@3PAU_EXCEPTION_POINTERS@@A (_EXCEPTION_POINTERS *wxGlobalSEInformation)
C:\wx25\lib\dmc_lib\wxtiff.lib(tif_print)
Error 42: Symbol Undefined _TIFFGetTagListEntry
C:\wx25\lib\dmc_lib\wxtiff.lib(tif_print)
Error 42: Symbol Undefined _TIFFGetTagListCount
I think it is not related about IDE settings.
I'll work on these..
--
Regards,
Hakki Dogusan
-
Hi, me again :)
Please change settings for static lib with the following:
m_Commands[(int)ctLinkStaticCmd] = "lib $link_options $static_output $link_objects";
DMC happily compiles "$static_output.lib" with this settings ;-))
We need $static_output value replacement...
--
Regards,
Hakki Dogusan
ps: You want to see Code::Blocks in action ? Here it is :)
Project : DMC
Compiler : Digital Mars Compiler (called directly)
Directory : C:\a_C\cbdmc\
--------------------------------------------------------------------------------
Switching to target: staticlib
dmc.exe -mn -c -o".objs\\sayhello.obj" "sayhello.cpp"
lib -c -n -p32 $static_output ".objs\\sayhello.obj"
Digital Mars Librarian Version 8.00n
Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com
Digital Mars Librarian complete.
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
-
Sorry it was my mistake!
This works:
m_Commands[(int)ctLinkStaticCmd] = "lib $link_options $exe_output $link_objects";
Project : DMC
Compiler : Digital Mars Compiler (called directly)
Directory : C:\a_C\cbdmc\
--------------------------------------------------------------------------------
Switching to target: staticlib
dmc.exe -mn -c -o".objs\\sayhello.obj" "sayhello.cpp"
lib -c -n -p32 "dmc_static.lib" ".objs\\sayhello.obj"
Digital Mars Librarian Version 8.00n
Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com
Digital Mars Librarian complete.
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
--
Regards,
Hakki Dogusan
-
> Editor color theme is now configured completely (yes, even the editor's background Smile )
How can I change background color for editor ?
When I change background color for "default", only backround under text is changed. It will be good also to have possibility to change foregroun color for all items.
For example I prefer black color for background, but then I can not see lot of thinks, becouse foreground color is also black and I can not change it.
Regards
AK
-
You 're right, I forgot to add that it would be a good idea to clear the configuration first. To achieve this, launch CB with the cmd line switch "--clear-configuration". This will make CB like it was just installed.
Yiannis.
-
About compilers - is there a way to provide a regex for errors/warnings? Different compilers do them differently (say, file name and line separation, some also have character number), and I guess this is the reason I don't see many in the "Compiler messages" tab.
-
P.S. Lint can also be seen as a compiler :-)
-
Each supported compiler already works with regexes for the errors/warning parsing.
Are you talking about user-defined regexes?
Yiannis.
-
I built the CVS version but no resource file (.res) is linked in?
-
Are you talking about user-defined regexes?
Not really, but I just noyiced that most of the warnings do not appear on the "Compiler messages" tab, though get colourised on "Compiler" tab (if I remember the names correctly - I don't have C::B at work).
-
noyiced = noticed :-)