Code::Blocks Forums

User forums => Nightly builds => Topic started by: killerbot on October 30, 2011, 10:52:27 am

Title: The 30 October 2011 build (7550) is out.
Post by: killerbot on October 30, 2011, 10:52:27 am
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.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:


Regressions/Confirmed/Annoying/Common bugs:


Title: Re: The 30 October 2011 build (7550) is out.
Post by: Jenna on October 30, 2011, 12:00:40 pm
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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Dreamy on October 30, 2011, 05:35:56 pm
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)
Title: Re: The 30 October 2011 build (7550) is out.
Post by: 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.

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)
Title: Re: The 30 October 2011 build (7550) is out.
Post by: stefanos_ on October 31, 2011, 02:01:02 pm
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
Title: Re: The 30 October 2011 build (7550) is out.
Post by: oBFusCATed on October 31, 2011, 02:35:25 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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: JSharpe on November 01, 2011, 12:54:05 pm
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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Glooper on November 01, 2011, 10:44:48 pm
I have downloaded this build 7550 but I cannot compile it. The compiler error I'm getting is:

Quote
C:\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

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
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Alpha on November 01, 2011, 10:49:36 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).
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Glooper on November 01, 2011, 11:11:08 pm
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?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Alpha on November 01, 2011, 11:21:56 pm
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.)
Title: Re: The 30 October 2011 build (7550) is out.
Post by: oBFusCATed on November 01, 2011, 11:36:20 pm
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).
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Glooper on November 01, 2011, 11:39:06 pm
Thanks for that. I'll grab wxWidgets 2.8 and give it a go.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Micool121 on November 03, 2011, 12:03:43 am
functional for me, I'm happy so far... :D
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Glooper on November 03, 2011, 12:13:22 am
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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: darmar on November 03, 2011, 06:37:29 pm
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?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: oBFusCATed on November 03, 2011, 07:25:44 pm
darmar: Patch? MacOSX users have reported the same problem.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: darmar on November 04, 2011, 08:41:11 pm
Here is my diff file (attached).
Title: Re: The 30 October 2011 build (7550) is out.
Post by: MortenMacFly on November 05, 2011, 10:21:51 am
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).
Title: Re: The 30 October 2011 build (7550) is out.
Post by: darmar on November 05, 2011, 06:34:08 pm
It seems to me, that the changed interface is used (88 line in patch).
Title: Re: The 30 October 2011 build (7550) is out.
Post by: MortenMacFly on November 06, 2011, 10:43:27 am
It seems to me, that the changed interface is used (88 line in patch).
My fault... :oops:
Title: Re: The 30 October 2011 build (7550) is out.
Post by: 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.

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.

Title: Re: The 30 October 2011 build (7550) is out.
Post by: oBFusCATed on November 07, 2011, 11:32:53 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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Jenna on November 08, 2011, 07:12:02 am
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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Kehom on November 08, 2011, 01:05:01 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.

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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: teto on November 10, 2011, 11:04:41 pm
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:

Code
    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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: ollydbg on November 11, 2011, 01:54:08 am
-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:

Code
    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?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Jenna on November 11, 2011, 06:38:17 am
-Try replacing (CTRL+R) "this->axisComp[n]" in the following code, cb answers with "no matches found". Yet with CTRL+F it finds matches:

Code
    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.

-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 ?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Alatar on November 11, 2011, 11:09:40 am
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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Folco on November 12, 2011, 11:57:38 am
ollydbg -> "MAJ" means "Shift", the key that provides upper case characters.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: teto on November 12, 2011, 01:39:05 pm
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).

-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)
Title: Re: The 30 October 2011 build (7550) is out.
Post by: ollydbg on November 13, 2011, 03:13:47 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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: teto on November 13, 2011, 04:45:24 pm
Also found something minor in colorization tool:
Code
//                                        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
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Jenna on November 13, 2011, 05:56:53 pm
Also found something minor in colorization tool:
Code
//                                        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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Alatar on November 13, 2011, 06:42:54 pm
Works fine here, WinXP.

Sorry. I`m try on other computer just now - works OK. So may be I need to clean configs.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: MortenMacFly on November 13, 2011, 08:30:30 pm
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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Alatar on November 14, 2011, 08:52:02 am
Sorry, this was my issue - clean setup was remove problem.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: ollydbg on November 15, 2011, 09:30:10 am
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
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Gaoleios on November 24, 2011, 05:25:36 am
oh,just get it.
Thanks~
Title: Re: The 30 October 2011 build (7550) is out.
Post by: 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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: 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.

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,
Title: Re: The 30 October 2011 build (7550) is out.
Post by: ollydbg on November 24, 2011, 09:14:23 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
Title: Re: The 30 October 2011 build (7550) is out.
Post by: danselmi on November 24, 2011, 09:47:43 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
Title: Re: The 30 October 2011 build (7550) is out.
Post by: ham on November 25, 2011, 03:15:11 pm
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

Title: Re: The 30 October 2011 build (7550) is out.
Post by: zabzonk on November 25, 2011, 03:35:26 pm
> 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?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Jenna on November 25, 2011, 05:31:11 pm
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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: neo1691 on December 02, 2011, 03:52:43 am
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??
Title: Re: The 30 October 2011 build (7550) is out.
Post by: ollydbg on December 02, 2011, 03:56:52 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

Quote
undefined reference to print in main
This is a linker error, so you have the "print" function declaration in your code.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: neo1691 on December 02, 2011, 04:02:12 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

Quote
undefined reference to print in main
This is a linker error, so you have the "print" function declaration in your code.

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
Title: Re: The 30 October 2011 build (7550) is out.
Post by: 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)).
Title: Re: The 30 October 2011 build (7550) is out.
Post by: neo1691 on December 02, 2011, 04:22:08 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?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: 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
Title: Re: The 30 October 2011 build (7550) is out.
Post by: neo1691 on December 02, 2011, 04:32:57 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
Title: Re: The 30 October 2011 build (7550) is out.
Post by: ollydbg on December 02, 2011, 05:34:54 am
But from where can i retrive the log?
The "build log" panel in my screen shot.


Quote
Also you want me to edit the folder itself? so that it doesnt contains the spaces?
Yes.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: neo1691 on December 02, 2011, 05:40:32 am
But from where can i retrive the log?
The "build log" panel in my screen shot.


Quote
Also 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
Code
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
Title: Re: The 30 October 2011 build (7550) is out.
Post by: ollydbg on December 02, 2011, 05:46:59 am
Renamed the folder! Same result. No line number.
Note: Remove the spaces in the file name too, that should fix your problem.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: neo1691 on December 02, 2011, 05:50:30 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!!
Title: Re: The 30 October 2011 build (7550) is out.
Post by: ollydbg on December 02, 2011, 06:00:22 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.

Title: Re: The 30 October 2011 build (7550) is out.
Post by: neo1691 on December 02, 2011, 06:07:26 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?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: ollydbg on December 02, 2011, 06:21:17 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.

Quote
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!
What do you mean by "minimal perspective"? I can't catch your idea.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: neo1691 on December 02, 2011, 06:26:15 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.

Quote
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!
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!!
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Jenna on December 02, 2011, 06:37:04 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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: neo1691 on December 02, 2011, 06:53:48 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 mode

If 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!!
Title: Re: The 30 October 2011 build (7550) is out.
Post by: mr.exodia on December 05, 2011, 01:44:03 pm
Thanks a lot for this build, it's waays better then v10.5 without updates...

greetings
Title: Re: The 30 October 2011 build (7550) is out.
Post by: stefanos_ on December 13, 2011, 11:04:17 am
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?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: oBFusCATed on December 13, 2011, 12:35:32 pm
GNU people use AT&T syntax by default I think.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: playxiaobaicai on December 17, 2011, 06:03:10 pm
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!
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Folco on December 17, 2011, 06:25:57 pm
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 ?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: playxiaobaicai on December 18, 2011, 05:40:52 am
I see,thank you!
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Calexus on December 20, 2011, 11:59:05 am
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.
Title: Building
Post by: person 1000 on December 22, 2011, 08:38:41 pm
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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: person 1000 on December 22, 2011, 08:51:15 pm
is somebody ONLINE ?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: scarphin on December 22, 2011, 09:08:04 pm
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'.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: person 1000 on December 22, 2011, 09:20:42 pm
no, i have 8.02
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Jenna on December 22, 2011, 09:24:30 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).
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Jenna on December 22, 2011, 09:25:16 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 ?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: xawari on January 01, 2012, 02:54:26 pm
// 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
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Jenna on January 01, 2012, 03:22:03 pm
// BUGBUG1: I always use keyboard which now seems to be impossible
[ ... ]
PLEASE fix this! :'(

Should be fixed in trunk (svn r7655).
Title: Re: The 30 October 2011 build (7550) is out.
Post by: 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.

(http://i.minus.com/igKPmol6VDgP4.PNG)
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Jenna on January 01, 2012, 05:53:48 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") ?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: neo1691 on January 01, 2012, 05:55:07 pm
yes that works.
but unfortunately for me, the shortcut to double click wont work  :'(
Title: Re: The 30 October 2011 build (7550) is out.
Post by: nanyu on January 04, 2012, 06:24:36 am
yes that works.
but unfortunately for me, the shortcut to double click wont work  :'(

me too. 7550 windows 7
Title: Re: The 30 October 2011 build (7550) is out.
Post by: 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!!

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?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: Jenna on January 04, 2012, 02:24:34 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...") .
Title: Re: The 30 October 2011 build (7550) is out.
Post by: AndyJ on January 05, 2012, 05:00:22 pm
Any chance of a new 'nightly' build as its been a while in the last one?

Thanks in advance,

Andy
Title: Re: The 30 October 2011 build (7550) is out.
Post by: bvanevery on January 11, 2012, 12:13:49 am
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.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: oBFusCATed on January 11, 2012, 12:34:23 am
What is the problem with this link: http://forums.codeblocks.org/index.php/topic,15776.0.html ?
Title: Re: The 30 October 2011 build (7550) is out.
Post by: bvanevery on January 11, 2012, 01:57:18 am
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.

Title: Re: The 30 October 2011 build (7550) is out.
Post by: MortenMacFly on January 11, 2012, 07:46:21 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:
Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml
Announce it and you are done.
Title: Re: The 30 October 2011 build (7550) is out.
Post by: xawari on January 11, 2012, 10:43:43 am
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?)