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.
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])'|
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.Try using wxWidgets 2.8.12 (2.9.x is currently considered unstable, and may be your problem).
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).My fault... :oops:
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.
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.
Yes, please give exact steps to reproduce this problem.
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.
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;
}
-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?
-Sometimes CTRL+MAJ+C or X doesn't do a thing, sometimes it works.Press "X" does not work??? What is "MAJ"???
-Try replacing (CTRL+R) "this->axisComp[n]" in the following code, cb answers with "no matches found". Yet with CTRL+F it finds matches:It looks like a bug in Find/replacement.CodeSJoystickComponent& 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.How to reproduce this problem?
-Try replacing (CTRL+R) "this->axisComp[n]" in the following code, cb answers with "no matches found". Yet with CTRL+F it finds matches:Works fine here, if "Regular expression" is unchecked, otherwise I get the same message as you, what is absolutely correct in this case.CodeSJoystickComponent& 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.As ollydbg wrote, how to reproduce ?
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 ?
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.
// else { \
// MappingPlayer1->setBind(fullId,temp);\
// } \
\
\
\
Also found something minor in colorization tool:CodeMy 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// else { \
// MappingPlayer1->setBind(fullId,temp);\
// } \
\
\
\
Works fine here, WinXP.
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?
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 have no such crash in normal C::B on WinXP. :D
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.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.
Another minor regression :Yes, it was a regression, and it was fixed in the trunk. :D
"reparse this project" from the project treeview doesn't work anymore.
"repase current project" from main "project" menu works fine.
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.
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
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
undefined reference to print in mainThis is a linker error, so you have the "print" function declaration in your code.
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. :DQuoteundefined reference to print in mainThis 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
}
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)).
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
But from where can i retrive the log?The "build log" panel in my screen shot.
Also you want me to edit the folder itself? so that it doesnt contains the spaces?Yes.
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.
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)
Renamed the folder! Same result. No line number.Note: Remove the spaces in the file name too, that should fix your problem.
Renamed the folder! Same result. No line number.Note: Remove the spaces in the file name too, that should fix your problem.
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.Tried it!! Same result :(Renamed the folder! Same result. No line number.Note: Remove the spaces in the file name too, that should fix your problem.
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.Tried it!! Same result :(Renamed the folder! Same result. No line number.Note: Remove the spaces in the file name too, that should fix your problem.
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!!It is a good news.
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!What do you mean by "minimal perspective"? I can't catch your idea.
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!!It is a good news.
However the errors are not highlighted in red :PQuoteAlso 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.
You most likely have build your project (where it does not work) in release mode.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.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!!
For linker errors this works only in debug mode.
is somebody ONLINE ?What do you expect, if you give no useful information ?
no, i have 8.02If 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
[ ... ]
PLEASE fix this! :'(
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.
yes that works.
but unfortunately for me, the shortcut to double click wont work :'(
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!!
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.xmlAnnounce it and you are done.