Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml
Before you use a nightly make sure you understand how it works (http://forums.next.codeblocks.org/index.php/topic,3232.0.html).
A link to the unicode windows wxWidget dll for Code::Blocks : http://prdownload.berlios.de/codeblocks/wxmsw28u_gcc_cb_wx2812_gcc452-TDM.7z
For those who might need this one (when no MingW installed on your system) : the mingw10m.dll : http://prdownload.berlios.de/codeblocks/mingwm10_gcc452-TDM.7z
The 30 October 2011 build is out.
- Windows :
http://prdownload.berlios.de/codeblocks/CB_20111030_rev7550_win32.7z
- Linux :
none
Resolved Fixed:
- Added information about the SDK version to the Help->About dialog
- Fix an issue introduced with commit 7307, reported here: http://forums.next.codeblocks.org/index.php/topic,15023.msg101286.html#msg101286 and other threads
- compiler errors : instantiated from here : added ([0-9]+): could be this should be made optionale (aka 0 or 1 time) (let's see what happens)
- corrected last commit (7461), because it works with "old" info messages (just the line number), but shows the column as message with newer gcc-compilers; added compiler-warning and -error regexes for newer gcc-compilers (with line number and column)
- fix a bug (missing semicolon), that prevents output-parsing-regexes from being reset to defaults
- compiler-plugin: fix compiler-notes -regex for newer compilers, moved preprocessor-error-regex some lines down, so there is no collision with "new" compiler notes; see http://forums.next.codeblocks.org/index.php/topic,15306.msg102742.html#msg102742
- compiler-plugin: some changes to advancedcompileroptionsdlg.cpp, so deleting and resetting regexes should now work correctly
- CC: Fixed a deadlock in OnGotoDeclaration; Showing a modal dialog while holding a lock is a bad idea, because wx event can be sent and thus could cause a dead-lock (taking the lock from the same thread).
- implemented $REMOVE_QUOTES{} macro which removes quotes around certain (any) strings, usage: $REMOVE_QUOTES{"A STRING IN QUOTES"}
- doxyblocks-plugin: fix incorrect size of toolbar-icon, was 32x32 instead of 22x22
- a few build fixes for Windows project file related to GCC 4.6.x (strange that some of these didn't happen in 4.5.x)
- pumped (wx)Scintilla to v2.2.9 and merged relevant changes of wxSTC from wxWidgets trunk
- openfilelist: Implement correctly the OnRelease method
- add option to set wxLog::EnableLogging() to true via commandline; default is off.
- remove version-numbers from two xrc-files, to avoid warnings if additional debug-logging is turned on
- Autoversioning plugin: added comment and the correct message for last commit (7499): don't try to read from version.h, if autoversioning is not enabled, so we avoid error-messages if verbose logging is enabled
- several small fixes, mostly related to "make dist"
- Use gtk-notebook as default notebook on systems using wxGTK, so the notebook-tabs integrate more smooth into the systems theme
- cbAuiNotebbok: fix an issue, where the notebook tabs do not minimize the free space at the right side after reszing the tabcontrol
- fix an issue, where notebookstyle.cpp could not be build, if not either mousesap or codesnippets was also build; make use of gtk-notebooks configurable in automake-system (on as default); check that wxWidgets has at least revision 2.8.8
- Made 'Remove file' context menu item to consider the project tree selection, when generating the list of files to be removed
- sort the files for the active project at the top of the results in the 'Search->Goto file...' dialog
- codecompletion-plugin: added missing xrc-file to unix project
- applied patch by OllyDbg to center unction on screen on "show decl/impl"
- applied (modfied) patch by OllyDbg to take portabler setting for compiler into account when looking for GCC include directories
- CC: fix a parser problem on switch case statement, based on a patch by OllyDbg
- CC: updated parser test project to show (optionally) the internal SearchTree as XML structure
- compiler-plugin: if writing the HTML-buildlog, we need to replace "<", ">" and "&" with the correct HTML-tags to avoid conflicts (parts of output not shown correctly)
- compiler-plugin: add regexes to correctly recognize skipping of instantiation contexts as info and not as error (at the moment only for GNU GCC compiler); little format fix for compilergcc.cpp
- added new SDK event: cbEVT_COMPILE_FILE_REQUEST
- prepared compiler plugin accordingly to handle this event
- implemented drag & drop of multiple selections (items) in project tree - based on patch#3030 by codeman
- updated fortran lexer (thanks Darius) -> first part of a couple of patches of the FortranProject plugin
- added new SDK events "cbEVT_COMPLETE_CODE" and "cbEVT_SHOW_CALL_TIP" (thanks Darius) -> second part of a couple of patches of the FortranProject plugin
- added new Fortran file extensions (thanks Darius) -> third part of a couple of patches of the FortranProject plugin
- exposed new Fortran file extensions to scripting engine (thanks Darius) -> fourth part of a couple of patches of the FortranProject plugin
- made ToDo plugin to recognise Fortran comments (thanks Darius) -> fifth part of a couple of patches of the FortranProject plugin
- fixed a hug in ToDo list plugin with line endings (CR and LF were swapped)
- apply optimisation flags to compiler derived from intel fortran compiler (thanks Darius) -> sixth part of a couple of patches of the FortranProject plugin
- partial merge from debugger branch:
* added ability to specify whether an application should run in a terminal or not (as this has been requested several times now)
* functionality can be accessed via "select target" dialog - fixed virtual folder not expanding on double click
Regressions/Confirmed/Annoying/Common bugs:
Debian packages (binaries and sources) for 32-bit and 64-bit systems can be found in my repo (http://apt.jenslody.de/).
Revision is svn7548, the later revisions are unrelated to trunk.
Did Visual C++ 2010 support suddenly disappear or am I blind? I've installed 2010 and it worked just fine with previous nighty... Now it detects only MinGW...
*edit: attached screenshot
*edit2: wxsmith branch (unlike this one) recognized 2010 aswell (screenshot 2)
I ran svn update, got the latest svn revision (7550), compiled it and sees it as 7548 for some reason.
It still crashes unexpectedly when you load GUI files of type .xrc while trying closing them by clicking x tab button.
I am under GNU / Linux Debian wheezy, using
the latest GCC: gcc (Debian 4.6.1-4) 4.6.1
wxGTK 2.8.12
To reproduce the code, I loaded Code::Blocks' code [codeblocks-unix.cbp], opened any find from Projects>Resources>SDK>resources.
Open any kind of .xrc file, preferably one that is big, use your mouse to move the scroller up and down.
Press the x button from tab. Voila! Just crashed...
Update: Just crashed in general and reported an xml file. I have attached it here and patiently waiting for your valuable reply.
Update of update: I ran it via terminal without & to watch every single step it follows and reproduced the crash.
I get this message now:
Text seems to be pure ASCII!
We use user specified encoding: Unicode 8 bit (UTF-8) (ID: 41)
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 41)
I have downloaded the latest revision (7550) under Windows (XP), compiled it and says that it's 7472.
I'm using:
TDM's GCC 4.6.1
wxMSW 2.8.10
If it's something with my code, please advice what to do.
Thanks
Quote from: stefanos_ on October 30, 2011, 10:07:49 PM
I ran svn update, got the latest svn revision (7550), compiled it and sees it as 7548 for some reason.
This is because the latest revision of trunk is 7548. It is normal and expected.
I only just noticed this but is there a reason why std::endl, std::cin.sync() and std::cin.good() aren't highlighted like the others are? I let code blocks generate a new default.conf just to make sure it wasn't mine but it still occurs.
Shouldn't 'sync', 'endl', and 'good' be highlighted green?
I'm new to C++ too so the program written is a bit rubbish :P.
I have downloaded this build 7550 but I cannot compile it. The compiler error I'm getting is:
QuoteC:\dev\CodeBlocks\Projects\codeblocks\src\sdk\scripting\bindings\sc_wxtypes.cpp|251|error: no matching function for call to 'SqPlus::SQClassDef<wxArrayString>::func(<unresolved overloaded function type>, const char [5])'|
and it happens in file
sc_wxtypes.cpp at the following code
void Register_wxTypes()
{
///////////////////
// wxArrayString //
///////////////////
SqPlus::SQClassDef<wxArrayString>("wxArrayString").
emptyCtor().
func(&wxArrayString::Add, "Add").
func(&wxArrayString::Clear, "Clear").
// func(&wxArrayString::Index, "Index").
staticFuncVarArgs(&wxArrayString_Index, "Index", "*").
func(&wxArrayString::GetCount, "GetCount").
func(&wxArrayString::Item, "Item");
I'm using Code::Blocks SVN build 7550 as the IDE, wxWidgets 2.9.2 library and MinGW compiler. I'm a relative newcomer to C++ and I think the error is telling me that in the definition of the class there is no function defined that matches the call. Is this correct? If so any ideas on how I might correct it?
Thanks
Quote from: Glooper on November 01, 2011, 10:44:48 PM
I'm using Code::Blocks SVN build 7550 as the IDE, wxWidgets 2.9.2 library and MinGW compiler.
Try using wxWidgets 2.8.12 (2.9.x is currently considered unstable, and may be your problem).
The C::B project that I'm using was supplied with the SVN download (Codeblocks_wx29.cbp) and the name suggests that it is set up to use wxWidgets 2.9 so I assumed that it would be OK to use this version. Has anyone successfully compiled from this project file?
From what I know, the project file Codeblocks_wx29.cbp is a transition in preparation for the wxWidgets 3.0 release (so yes, it is for wxWidgets 2.9.x); it may, or may not work consistently. (I could be wrong about this as I have only used the stable version of wxWidgets to try to compile Code::Blocks.)
Glooper: codeblocks_wx29.cbp is experimental project serving the devs to port C::B to wx29/30. This project is not intended for general usage and it is know to crash when using Code-completion plugin (I don't know the current status). C::B officially works only with wx2.8.x, where x is greater than 9 (I think).
Thanks for that. I'll grab wxWidgets 2.8 and give it a go.
functional for me, I'm happy so far... :D
After much downloading/compiling of libraries/compilers I finally got this build of Code::Blocks to compile! :D
Thanks for the help guys and/or gals.
I am experiencing a crash of C::B Nightly on kubuntu (KDE, linux).
I experienced this behaviour with my build of C::B first. But now I have installed a fresh system on VirtualBox and installed Nightly from Jens' repository. I have the same crash. The crash occurs only, when Symbols tab is active and an item is selected in the TopTree (Code-Completion plugin).
I wanted to find out where is the problem and I looked into the code of CC plugin. I haven't found a bug in CC code, but it something to do with update of m_TreeBottom from the secondary thread. I added the call to "AddPendingEvent" in "classbrowserbuilderthread.cpp" file to update m_TreeBottom from main thread. C::B is running on KDE without the problem now.
Do somebody experiencing the same problem?
darmar: Patch? MacOSX users have reported the same problem.
Here is my diff file (attached).
Quote from: darmar on November 04, 2011, 08:41:11 PM
Here is my diff file (attached).
Could it be that this patch is in-complete? Because from a quick look I see that you've changed the
Init() interface but do not use it anywhere (in this patch at least).
It seems to me, that the changed interface is used (88 line in patch).
Quote from: darmar on November 05, 2011, 06:34:08 PM
It seems to me, that the changed interface is used (88 line in patch).
My fault... :oops:
Hello,
After a long time without using Linux, I'm finally (lack of time and job duties) reactivating it in my machine.
Currently I'm using Kubuntu 11.10 and the latest build from jens' repository.
I have found one bug (I think).
To reproduce:
- Settings -> Compiler and debug...
- Change focus to another application.
- Get back to Code::Blocks and I'm unable to change the tabs.
There is something else that I have noticed some time ago regarding the Global Variables editor. I tested it only under Windows and didn't have time to verify under Linux.
I don't have exact way of reproducing it, however I can tell how it happened here:
I opened an old project that used the variable 'wx'. Long time later, fresh Code::Blocks install, different organization of files on my HD etc etc. In order to have different versions of wxWidgets I have set wx_version as the variables names. Because the variable 'wx' was not present, Code::Blocks presented me with a window saying that there was not 'wx' variable. I set to the correct one (regarding my new settings) and then Code::Blocks asked me if I wanted to save an invalid variable. I answered 'No' and... the same question came again. So, no way to don't save the requested 'wx' variable. If needed I can redo my steps to provide a more concise and detailed steps to reproduce the issue.
Quote from: Kehom on November 07, 2011, 11:30:10 PM
If needed I can redo my steps to provide a more concise and detailed steps to reproduce the issue.
Yes, please give exact steps to reproduce this problem.
Quote from: Kehom on November 07, 2011, 11:30:10 PM
Hello,
After a long time without using Linux, I'm finally (lack of time and job duties) reactivating it in my machine.
Currently I'm using Kubuntu 11.10 and the latest build from jens' repository.
I have found one bug (I think).
To reproduce:
- Settings -> Compiler and debug...
- Change focus to another application.
- Get back to Code::Blocks and I'm unable to change the tabs.
Is it possible, that you have changed any of the open files (including the projectfile) outside C::B ?
If yes, the dialog that tells you about that might be hidden behind the settings-dialog.
Quote from: oBFusCATed on November 07, 2011, 11:32:53 PM
Yes, please give exact steps to reproduce this problem.
Ok, I will review here the steps and will see if that happens under Linux too. May take some time.
Quote from: jens on November 08, 2011, 07:12:02 AM
Is it possible, that you have changed any of the open files (including the projectfile) outside C::B ?
If yes, the dialog that tells you about that might be hidden behind the settings-dialog.
Actually, no. I didn't change any file. Well, I re-read what I wrote and I was not very clear at all (sorry for that)! Anyway, I merely got into another window to verify one path so I could add it into the "Search directories".
Well, I was able to change from "Compiler settings" tab to "Search directories" tab. What I was unable to do was changing the "sub-tabs". For example, "Search directories->Compiler" to "Search directories->Linker".
If I close the window (Global compiler settings) and re-open it then I can change those tabs again.
Just tested this under Windows and this issue does not happen.
I suffer from different bugs (some from previous builds), one problem being I haven't found the way to reproduce them even if they often happen:
-I had this file where I wanted to do a switch(){ case: } and each time I would relaunch cb after the crash, it would crash on "cas..." (the lookup to autocomplete systematically made it crash so I typed it backwards ^^)
-Sometimes CTRL+MAJ+C or X doesn't do a thing, sometimes it works.
-Try replacing (CTRL+R) "this->axisComp[n]" in the following code, cb answers with "no matches found". Yet with CTRL+F it finds matches:
SJoystickComponent& comp = this->axisComp[n];
const maxValue = (f32)this->axisComp[n].maxRead;
const minValue = (f32)this->axisComp[n].minRead;
//const f32 readScale = (f32)this->axisComp[n].maxRead - (f32)this->axisComp[n].minRead;
//! Update min and max values if detect out of scope value
if (hidEvent.value < minValue){
this->axisComp[n].minRead = hidEvent.value;
}
else if (hidEvent.value > maxValue){
this->axisComp[n].maxRead = hidEvent.value;
}
-Sometimes I can't edit a tab anymore. I need to change tab and then come back to my previous tab to be able to edit text once again.
All of them have been experienced with windows 7 64 bits. I'm not 100% sure but I may have experienced the latest bug on ubuntu too.
Quote from: teto on November 10, 2011, 11:04:41 PM
-I had this file where I wanted to do a switch(){ case: } and each time I would relaunch cb after the crash, it would crash on "cas..." (the lookup to autocomplete systematically made it crash so I typed it backwards ^^)
What does this means? I can't follow you. Which step cause CB crash?
Quote
-Sometimes CTRL+MAJ+C or X doesn't do a thing, sometimes it works.
Press "X" does not work??? What is "MAJ"???
Quote
-Try replacing (CTRL+R) "this->axisComp[n]" in the following code, cb answers with "no matches found". Yet with CTRL+F it finds matches:
SJoystickComponent& comp = this->axisComp[n];
const maxValue = (f32)this->axisComp[n].maxRead;
const minValue = (f32)this->axisComp[n].minRead;
//const f32 readScale = (f32)this->axisComp[n].maxRead - (f32)this->axisComp[n].minRead;
//! Update min and max values if detect out of scope value
if (hidEvent.value < minValue){
this->axisComp[n].minRead = hidEvent.value;
}
else if (hidEvent.value > maxValue){
this->axisComp[n].maxRead = hidEvent.value;
}
It looks like a bug in Find/replacement.
Quote
-Sometimes I can't edit a tab anymore. I need to change tab and then come back to my previous tab to be able to edit text once again.
How to reproduce this problem?
Quote from: teto on November 10, 2011, 11:04:41 PM
-Try replacing (CTRL+R) "this->axisComp[n]" in the following code, cb answers with "no matches found". Yet with CTRL+F it finds matches:
SJoystickComponent& comp = this->axisComp[n];
const maxValue = (f32)this->axisComp[n].maxRead;
const minValue = (f32)this->axisComp[n].minRead;
//const f32 readScale = (f32)this->axisComp[n].maxRead - (f32)this->axisComp[n].minRead;
//! Update min and max values if detect out of scope value
if (hidEvent.value < minValue){
this->axisComp[n].minRead = hidEvent.value;
}
else if (hidEvent.value > maxValue){
this->axisComp[n].maxRead = hidEvent.value;
}
Works fine here, if "Regular expression" is unchecked, otherwise I get the same message as you, what is absolutely correct in this case.
Quote from: teto on November 10, 2011, 11:04:41 PM
-Sometimes I can't edit a tab anymore. I need to change tab and then come back to my previous tab to be able to edit text once again.
As ollydbg wrote, how to reproduce ?
Does clicking into theeditor help, without the need to change the tab ?
Hello all!
There is regression in editor in this and previous builds: broken text editing in rectangular selection mode. When I mark multiple lines by Alt+Shift+[arrows] (or by Alt+MoveMouseVerticalWithLeftButtonPresed) and try to remove some charters with Backspace, I get unexpected behavior. CB deletes charters before cursors but cursors moves by some symbols forward and select block. In some cases cursors jumps in other directions. When I mark multiple lines by Ctrl+MouseLeftButtonClick deleting with Backspace works OK.
ollydbg -> "MAJ" means "Shift", the key that provides upper case characters.
Quote from: jens on November 11, 2011, 06:38:17 AM
Works fine here, if "Regular expression" is unchecked, otherwise I get the same message as you, what is absolutely correct in this case.
I've only "Match case" and "Auto-wrap search at eof" checked. "Regex expression" is unchecked (in Replace mode).
Quote from: teto on November 10, 2011, 11:04:41 PM
-Sometimes I can't edit a tab anymore. I need to change tab and then come back to my previous tab to be able to edit text once again.
As ollydbg wrote, how to reproduce ?
Does clicking into theeditor help, without the need to change the tab ?
@ollydbg > Sorry I forgot to translate but MAJ = SHIFT . Sometimes CTRL+SHIFT+C or CTRL+SHIFT+X stop working (and that's not because I've caps lock enabled ^^).
As said previously, as soon as I find how to reproduce the bug with tabs, I ' ll tell you. (I still have it but doesn't know yet why it happens, clicking inside a lost tab won't focus it, I really need to switch tabs and go back to the lost on to enable it)
Quote from: Alatar on November 11, 2011, 11:09:40 AM
When I mark multiple lines by Alt+Shift+[arrows] (or by Alt+MoveMouseVerticalWithLeftButtonPresed) and try to remove some charters with Backspace, I get unexpected behavior.
Works fine here, WinXP.
Also found something minor in colorization tool:
// else { \
// MappingPlayer1->setBind(fullId,temp);\
// } \
\
\
\
My comments bacground color is black and all the lines with a "\" are filled with black whereas they are not comment lines. I may attach a screenshot if you need
Quote from: teto on November 13, 2011, 04:45:24 PM
Also found something minor in colorization tool:
// else { \
// MappingPlayer1->setBind(fullId,temp);\
// } \
\
\
\
My comments bacground color is black and all the lines with a "\" are filled with black whereas they are not comment lines. I may attach a screenshot if you need
If you compile such code you might get a warning abourt a multiline comment (depends on your compiler settings of course).
The colourisation is correct, because a backslash after a space at the end of the line is a continuation marker, that means the following lines are also comments.
Quote from: ollydbg on November 13, 2011, 03:13:47 AM
Works fine here, WinXP.
Sorry. I`m try on other computer just now - works OK. So may be I need to clean configs.
Quote from: Alatar on November 11, 2011, 11:09:40 AM
There is regression in editor in this and previous builds: broken text editing in rectangular selection mode. [...]
Mmmmh... I cannot reproduce. can you provide a sample file and tell exactly what you mark?
Probably it was a regression in scintilla. I am already using a newer one, so this might also have been fixed in my version already. In that case I would commit my version after proofing your sample works.
Sorry, this was my issue - clean setup was remove problem.
Quote from: darmar on November 03, 2011, 06:37:29 PM
But now I have installed a fresh system on VirtualBox and installed Nightly from Jens' repository. I have the same crash. The crash occurs only, when Symbols tab is active and an item is selected in the TopTree (Code-Completion plugin).
I wanted to find out where is the problem and I looked into the code of CC plugin. I haven't found a bug in CC code, but it something to do with update of m_TreeBottom from the secondary thread.
I have no such crash in normal C::B on WinXP. :D
Quote
I added the call to "AddPendingEvent" in "classbrowserbuilderthread.cpp" file to update m_TreeBottom from main thread. C::B is running on KDE without the problem now.
You mean after applying your patch, not crash now? Building tree always take a lot of CPU, this is why it did on another worker thread.
ollydbg/asmwarrior
oh,just get it.
Thanks~
I`m found source of my problem with rectangular selection - there is a spell-cheker plugin. On clean install (no dictionaries), or when plugin disable from Settings all work ok. When I`m enable it (add some dictionary, for example en_US) rectangular selection works as I described above.
Another minor regression :
"reparse this project" from the project treeview doesn't work anymore.
"repase current project" from main "project" menu works fine.
This build is fonctionnal for me 156 files, 39k lines, no problems: good job ! :D
The only thing I miss now, is a bookmark browser ;)
Regards,
Quote from: Micool121 on November 24, 2011, 08:59:35 AM
Another minor regression :
"reparse this project" from the project treeview doesn't work anymore.
"repase current project" from main "project" menu works fine.
Yes, it was a regression, and it was fixed in the trunk. :D
Quote from: Alatar on November 24, 2011, 07:02:12 AM
I`m found source of my problem with rectangular selection - there is a spell-cheker plugin. On clean install (no dictionaries), or when plugin disable from Settings all work ok. When I`m enable it (add some dictionary, for example en_US) rectangular selection works as I described above.
I am not sure what's not working for you. When I delete rectangular selection with backspace, the selected characters get deleted and the cursor has a height of a few lines.
Pressing backspace again, will delete the character at the right of the cursor which is wrong. Sometimes the cursor gets even "longer". Sure, this is a bug. But it is not related with spellchecker (I just deleted SpellChecker for the Test) (on WinXP svn7583).
SciTE Version 3.0.1 does not have this problem.
regards danselmi
hi,
thx for good work,
i like to ask for a feature request:
i use labels to separate my large codefiles into sections,
like: _start:, _enumerations:, _templates, and so on
therefore i like to have a label showing symbolbrowser to quickly navigate to labels.
thx in advance
> i use labels to separate my large codefiles into sections,
Labels with names like that are illegal in user C or C++ code, as they are reserved for the implementation. And in any case, it's a horrible, horrible thing to do - where did you learn that?
Quote from: danselmi on November 24, 2011, 09:47:43 AM
Quote from: Alatar on November 24, 2011, 07:02:12 AM
I`m found source of my problem with rectangular selection - there is a spell-cheker plugin. On clean install (no dictionaries), or when plugin disable from Settings all work ok. When I`m enable it (add some dictionary, for example en_US) rectangular selection works as I described above.
I am not sure what's not working for you. When I delete rectangular selection with backspace, the selected characters get deleted and the cursor has a height of a few lines.
Pressing backspace again, will delete the character at the right of the cursor which is wrong. Sometimes the cursor gets even "longer". Sure, this is a bug. But it is not related with spellchecker (I just deleted SpellChecker for the Test) (on WinXP svn7583).
SciTE Version 3.0.1 does not have this problem.
regards danselmi
I don't have any problems with rectangular selections on windows with newest trunk, backspace seems to work correctly in any cases.
I am using this nightly build!
There is just one small thing that i noticed!
whenever i write print instead of printf, the error is "undefined reference to print in main" . thats fine. But the problem is that it does not shows the line number!
what am i missing??
Quote from: neo1691 on December 02, 2011, 03:52:43 AM
whenever i write print instead of printf, the error is "undefined reference to print in main" . thats fine. But the problem is that it does not shows the line number!
Can you show us the code snippet and the build log(full build log), thanks. :D
Quoteundefined reference to print in main
This is a linker error, so you have the "print" function declaration in your code.
Quote from: ollydbg on December 02, 2011, 03:56:52 AM
Quote from: neo1691 on December 02, 2011, 03:52:43 AM
whenever i write print instead of printf, the error is "undefined reference to print in main" . thats fine. But the problem is that it does not shows the line number!
Can you show us the code snippet and the build log(full build log), thanks. :D
Quoteundefined reference to print in main
This is a linker error, so you have the "print" function declaration in your code.
#include<stdio.h>
#include<conio.h>
int main ()
{
int i, j;
int a[10];
for(i=0;i<10;i++)
scanf("%d",&a[i]);
printf("\n%u",&j);
printf("TIMEPASS");
for(i=0;i<10;i++)
printf("%d",a[i]);
scan("%d",&j); //purposeful error made by me
}
I have also posted the screenshot of build error in the attachments
It works OK here(I use mingw gcc compiler under WinXP)
See the screen shot:
(http://i683.photobucket.com/albums/vv194/ollydbg_cb/2011-12-02110251.png)
So, mostly, you have some compiler/linker setting errors.
BTW: A full build log is needed to detect your problem, please read the FAQ:Compiling (errors) (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(errors)).
Quote from: ollydbg on December 02, 2011, 04:13:43 AM
It works OK here(I use mingw gcc compiler under WinXP)
See the screen shot:
(http://i683.photobucket.com/albums/vv194/ollydbg_cb/2011-12-02110251.png)
So, mostly, you have some compiler/linker setting errors.
BTW: A full build log is needed to detect your problem, please read the FAQ:Compiling (errors) (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(errors)).
Are you talking about the following build log?
1, Your have put your source in a path with spaces (like: "Codeblocks test" also spaces in your file names), this will cause problems in mingw, so please remove all spaces.
2, read: 1 Q: How do I troubleshoot a compiler problem? (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F), make sure "full log" is used.
3, I think you should use a image host site to put your screen shot images, because our forum's space is limited, so that your attachment image will be removed some day. :D
Quote from: ollydbg on December 02, 2011, 04:29:00 AM
1, Your have put your source in a path with spaces (like: "Codeblocks test" also spaces in your file names), this will cause problems in mingw, so please remove all spaces.
2, read: 1 Q: How do I troubleshoot a compiler problem? (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F), make sure "full log" is used.
3, I think you should use a image host site to put your screen shot images, because our forum's space is limited, so that your attachment image will be removed some day. :D
I have enabled the full log!! But from where can i retrive the log?
Also you want me to edit the folder itself? so that it doesnt contains the spaces?
By the way previously i was using c::b stable 10.05 version, but it lacked the minimal prespective feature!!
so i unninstalled it>downloaded nightly>downloaded tdm gcc mingw compiler.
AFAIK in the previous version of c::b it was working fine!
EDIT: In build options i ticked "save log to an html file" but when i used notepad++ to open it, it was empty
Quote from: neo1691 on December 02, 2011, 04:32:57 AM
But from where can i retrive the log?
The "build log" panel in my screen shot.
QuoteAlso you want me to edit the folder itself? so that it doesnt contains the spaces?
Yes.
Quote from: ollydbg on December 02, 2011, 05:34:54 AM
Quote from: neo1691 on December 02, 2011, 04:32:57 AM
But from where can i retrive the log?
The "build log" panel in my screen shot.
QuoteAlso you want me to edit the folder itself? so that it doesnt contains the spaces?
Yes.
Renamed the folder! Same result. No line number.
build log panel still contains the following
mingw32-gcc.exe -c "D:\Programming\Codeblocks\nightly test2.c" -o "D:\Programming\Codeblocks\nightly test2.o"
mingw32-g++.exe -o "D:\Programming\Codeblocks\nightly test2.exe" "D:\Programming\Codeblocks\nightly test2.o"
D:\Programming\Codeblocks\nightly test2.o:nightly test2.c:(.text+0xa1): undefined reference to `scan'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 3 seconds)
1 errors, 0 warnings (0 minutes, 3 seconds)
I have already enabled complete log
Quote from: neo1691 on December 02, 2011, 05:40:32 AM
Renamed the folder! Same result. No line number.
Note: Remove the spaces in the file name too, that should fix your problem.
Quote from: ollydbg on December 02, 2011, 05:46:59 AM
Quote from: neo1691 on December 02, 2011, 05:40:32 AM
Renamed the folder! Same result. No line number.
Note: Remove the spaces in the file name too, that should fix your problem.
Tried it!! Same result :(
now i reinstalled the old 10.05 version of C::B and suprising the minimal prespective view was there in it!! And sadly the same error is also there now on the old version! Its not showing the line version!!
i think i should try to reinstall the windows again to sort out the mess!!
Quote from: neo1691 on December 02, 2011, 05:50:30 AM
Quote from: ollydbg on December 02, 2011, 05:46:59 AM
Quote from: neo1691 on December 02, 2011, 05:40:32 AM
Renamed the folder! Same result. No line number.
Note: Remove the spaces in the file name too, that should fix your problem.
Tried it!! Same result :(
Try to click the "rebuild" menu (This will firstly clean your project, and do a fresh build). Or try to remove all the obj files before you build. Or try create a new console project with the wizard, and paste your code there.
Quote from: ollydbg on December 02, 2011, 06:00:22 AM
Quote from: neo1691 on December 02, 2011, 05:50:30 AM
Quote from: ollydbg on December 02, 2011, 05:46:59 AM
Quote from: neo1691 on December 02, 2011, 05:40:32 AM
Renamed the folder! Same result. No line number.
Note: Remove the spaces in the file name too, that should fix your problem.
Tried it!! Same result :(
Try to click the "rebuild" menu (This will firstly clean your project, and do a fresh build). Or try to remove all the obj files before you build. Or try create a new console project with the wizard, and paste your code there.
yes i created the new project and now it is showing the error line!! When i create just a c file it was not showing. Now in console project it is showing. Strange!!
However the errors are not highlighted in red :P
Also i have ran into another problem. Now when double click on a tab, it never switches to the minimal prespective view. Have to go to the view tab and do that manually. Thats annoying!
EDIT:Ijust went to the editor setting and when i closed the window, the error lines were highlighted!! Whats happening?
Quote from: neo1691 on December 02, 2011, 06:07:26 AM
yes i created the new project and now it is showing the error line!! When i create just a c file it was not showing. Now in console project it is showing. Strange!!
However the errors are not highlighted in red :P
It is a good news.
QuoteAlso i have ran into another problem. Now when double click on a tab, it never switches to the minimal prespective view. Have to go to the view tab and do that manually. Thats annoying!
What do you mean by "minimal perspective"? I can't catch your idea.
Quote from: ollydbg on December 02, 2011, 06:21:17 AM
Quote from: neo1691 on December 02, 2011, 06:07:26 AM
yes i created the new project and now it is showing the error line!! When i create just a c file it was not showing. Now in console project it is showing. Strange!!
However the errors are not highlighted in red :P
It is a good news.
QuoteAlso i have ran into another problem. Now when double click on a tab, it never switches to the minimal prespective view. Have to go to the view tab and do that manually. Thats annoying!
What do you mean by "minimal perspective"? I can't catch your idea.
Minimal prespective is a feature which lets the editor (where we write the code) run in full screen (nearly) on double clicking the tab!!
This feature was not available in the stable release so i decided to switch to the nightly release of c::b.
However i found out that mingw compiler is required for c::b nightlies so i got that first (tdm gcc) and installed it.
Since the line error was there i reinstalled the c::b stable release and suddenly the minimal prespective feature came there too!! :shock:
But the line error also came to c::b stable.. so i unninstalled it!!
Now finally i have unninstalled the c::b stable, deleted the c::b nightly, re-downloaded it, and the minimal prespective feature is back again!!
Quote from: neo1691 on December 02, 2011, 05:50:30 AM
Quote from: ollydbg on December 02, 2011, 05:46:59 AM
Quote from: neo1691 on December 02, 2011, 05:40:32 AM
Renamed the folder! Same result. No line number.
Note: Remove the spaces in the file name too, that should fix your problem.
Tried it!! Same result :(
now i reinstalled the old 10.05 version of C::B and suprising the minimal prespective view was there in it!! And sadly the same error is also there now on the old version! Its not showing the line version!!
i think i should try to reinstall the windows again to sort out the mess!!
You most likely have build your project (where it does not work) in release mode.
For linker errors this works only in debug mode.
Quote from: jens on December 02, 2011, 06:37:04 AM
Quote from: neo1691 on December 02, 2011, 05:50:30 AM
Quote from: ollydbg on December 02, 2011, 05:46:59 AM
Quote from: neo1691 on December 02, 2011, 05:40:32 AM
Renamed the folder! Same result. No line number.
Note: Remove the spaces in the file name too, that should fix your problem.
Tried it!! Same result :(
now i reinstalled the old 10.05 version of C::B and suprising the minimal prespective view was there in it!! And sadly the same error is also there now on the old version! Its not showing the line version!!
i think i should try to reinstall the windows again to sort out the mess!!
You most likely have build your project (where it does not work) in release mode.
For linker errors this works only in debug mode.
Sorry to ask but what you said is for the minimal perspective view or the line error that i was getting?
EDIT: YES GOT IT: line numbers are shown only when the project is build in debug modeIf that was for the minimal perspective view, then i should say that sometimes it works and sometimes it doesn't. Tried toggling the release and debug from the dropdown menu!!
Thanks a lot for this build, it's waays better then v10.5 without updates...
greetings
guys, I want someone's immediate feedback about something I have found and honestly seems really awkward to me.
Last night, under GNU / Linux Debian wheezy using the latest svn revision, I ran a program of mine in debug mode. I enabled dissasembly and the generated code was in MASM! I thought that was a tweak or a kind of pseudo-logic...something!
Right now I am under Windows XP SP3 using svn-7620 and guess what? My dissasembly code is in NASM now under Windows!!! :D hahahaha sorry guys but what the hell?!
Is there is something I should know about? Please enlighten me because I am really eager to know more about such thing :)
UPDATE: I went to Settings > Compiler and debugger and changed it to Intel and displayed in MASM. Still though, why system default is in NASM under Windows? Shouldn't be Intel instead?
GNU people use AT&T syntax by default I think.
C:B is very good,I like this IDE,it's powerful very much! But why integrated all update in home page downloads? It still codeblocks-10.05(27 May 2010) maybe make many foreign beginners think it stop update.In china,almost all chinese college students are used to using vc++6.0(1998),it's very very old!visual stdio is also powerful,but volume is so........
so I hope you can update home page!
Mainteners have already said that the little word "Nightlies" on the home page is sufficient. Imho it is not, especially for someone who is not used to open development and free softwares. At least a link and some lines of explanations could be added to the download page, no ?
I see,thank you!
To end this "keeping the website alive" argument that seems to be a frequently reoccurring subject why not post/mirror the nightly change log or a link to it on the main page. And maybe put a timestamps on it to show how recently the web page was updated and everyone can easily see that codeblocks is alive and kicking.
For moderator
My program does not work when i want to bulid something or run it. My code is perfectly corect, I've cheched it on another computer. Isn't it supposed to say something when building? It is doing nothing when I press build and when I press run it says "This program was not build yet. Do you want to buid it now?" I press yes, press bulid and after that run. The same thing. To be noticed that it does not do anything when I press build, it says nothing at logs. Please help me. Thank you in advance.
is somebody ONLINE ?
Are u using version 10.05 and set the target type to 'native'? If both yes, whether switch to a nightly or set the target type to something other than 'native'.
no, i have 8.02
Quote from: person 1000 on December 22, 2011, 08:51:15 PM
is somebody ONLINE ?
What do you expect, if you give no useful information ?
A meaningful answer after 13 minutes ?
Please be patient !!
Reading the forum rules, before asking would help.
In the rules you find alink to the FAQ and a possible cause for your problem.
Find it and read it ...
... and if reading the FAQ, searching the forum/web and reading the manual does not help, come back with meaningful information about the revision of C::B you use, your OS and your compiler (and version).
Quote from: person 1000 on December 22, 2011, 09:20:42 PM
no, i have 8.02
If you really have 8.02 (more than 3 years old), why do you ask in the nightly forum ?
// BUGBUG1: I always use keyboard which now seems to be impossible
(http://i43.tinypic.com/5fiyv4.png)
PLEASE fix this! :'(
// BUGBUG2: "find declaration" searches names with special symbols which could be operators. I know it would conflict with destructors, but well... who could call finding destructor a trouble?
(http://i43.tinypic.com/2hedmab.png)
PS: sorry, tinypic doesn't offer thumbnails
Quote from: xawari on January 01, 2012, 02:54:26 PM
// BUGBUG1: I always use keyboard which now seems to be impossible
[ ... ]
PLEASE fix this! :'(
Should be fixed in trunk (svn r7655).
I dont know whether its a bug or not, but when you are in project mode, then double clicking on the highlighted part does not takes you to the minimal prespective (full screen editor) mode, whereas in single files it works.
(http://i.minus.com/igKPmol6VDgP4.PNG)
Quote from: neo1691 on January 01, 2012, 05:15:34 PM
I dont know whether its a bug or not, but when you are in project mode, then double clicking on the highlighted part does not takes you to the minimal prespective (full screen editor) mode, whereas in single files it works.
Works for me in both cases, does switching the perspective from the menu works ("View -> Perspectives") ?
yes that works.
but unfortunately for me, the shortcut to double click wont work :'(
Quote from: neo1691 on January 01, 2012, 05:55:07 PM
yes that works.
but unfortunately for me, the shortcut to double click wont work :'(
me too. 7550 windows 7
Today i installed the same 7550 compiler on my college's PC and there the prespectives worked fine!!!
Dont know what is the problem at my place!!
Also I have another question:
Whenever i go to type a keyword such as mal.... (malloc) the dropdown menu appears to complete the code. Is that the auto complete code plugin?
I have some problems with it. Sometimes the dropdown menu comes, sometimes it doesn't??
What can be the problem at my pace?
Quote from: neo1691 on January 04, 2012, 02:06:44 PM
Today i installed the same 7550 compiler on my college's PC and there the prespectives worked fine!!!
Dont know what is the problem at my place!!
Maybe a problem with the mouse settings of windows (doubleclick-speed), or it interferes with the tooltipsettings ("Settings -> Environment... -> Notebooks appearance -> Tooltips on tabs -> wait xxx ms before tooltip...") .
Any chance of a new 'nightly' build as its been a while in the last one?
Thanks in advance,
Andy
This thread gives the mistaken impression that October SVN 7550 is the most recent build. SVN 7678 is available now; however it shows up as "SVN 7671" in the About... screen. I can't tell how long this version has been available as there's no date for it on the download page. An official announce for "nightly" build SVN 7678 would be helpful to newbies. I am not as intimately familiar with BerliOS as other open source repositories, so it took me several days to discover the BerliOS Code::Blocks file page (http://developer.berlios.de/project/showfiles.php?group_id=5358l) that has the various "nightlies" on it. This was not without a tremendous amount of web searching and bug chasing on my part. EDIT: this version is working with vc10, but when using CMake to generate a C::B .cbp Nmake build, I had to set "Project... Build Options..." to "Microsoft Visual C++ 2010". It defaults to "Microsoft Visual C++ 2005/2008", which won't build anything if all you've got is vc10.
What is the problem with this link: http://forums.next.codeblocks.org/index.php/topic,15776.0.html ?
GAGH! Perhaps that October 30 is still above it, so I thought it was stickied as "the most recent?" I don't remember seeing that announce previously. It could be that I was working on this last week, just before Jan 7th was announced. Oh well... maybe stickying the most recent build at the top would be a good idea.
Quote from: bvanevery on January 11, 2012, 12:13:49 AM
This thread gives the mistaken impression that October SVN 7550 is the most recent build.
If you are able to read, in
every nightly release there is this sentence:
Quote from: killerbot on January 07, 2012, 07:21:39 PM
Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml
Announce it and you are done.
just noticed: ENTER does not work in "Files" (browser) tab too. And probably in many other places.
And why does the editor show selected text with grey background when I open text or unknown files? (or I just can't appropriate setting?)