Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

Ceniza's CodeCompletion Project

<< < (2/5) > >>

ollydbg:
Great work!
Thank you! I'm looking forward to see the new update.

Ceniza:
I have started to upload files already. Right now I have only uploaded all documentation files (or the like) I found. I hope to have the source code ready this afternoon (UTC+1), which will be uploaded to the same place.

URL: http://sites.google.com/site/ceniza666/ccpp

[edit]
It looks like it was organized enough to upload it like that :D
[/edit]

ollydbg:

--- Quote from: Ceniza on February 15, 2009, 10:05:19 am ---I have started to upload files already. Right now I have only uploaded all documentation files (or the like) I found. I hope to have the source code ready this afternoon (UTC+1), which will be uploaded to the same place.

URL: http://sites.google.com/site/ceniza666/ccpp

--- End quote ---
Great! I'm happily reading the CCP document. It's a new string type. Hopefully I can do some help to improve the plugin.

ollydbg:
I download the "CCPP.zip" from your site, then open the "CCP.cbp" with codeblocks svn5456 in windows xp.
I can successfully build the project named "Test + Lib -debug" shown  in "build target" toolbar. :D

When I want to run the "CCPP\bin\Debug\test.exe", by default it's argument is "../../tests/pptest05.cpp"
It complained that it can't find "iostream". So, I manually add the below code to main.cpp.

--- Code: ---fsp.addLocalSearchPath(defaultStringType("D:/MinGW/lib/gcc/mingw32/4.3.2/include/c++"));
--- End code ---

But it still complained

--- Quote ---D:/MinGW/lib/gcc/mingw32/4.3.2/include/c++/iostream:44: 'bits/c++config.h' not f
ound
Process returned 1 (0x1)   execution time : 0.015 s
Press any key to continue.

--- End quote ---

So, I add another search path

--- Code: ---fsp.addLocalSearchPath(defaultStringType("D:/MinGW/lib/gcc/mingw32/4.3.2/include/c++/bits"));
--- End code ---

But it still can't open the "c++config.h".

There is the code in iostream , showing that it use a relative path to include "c++config.h" .

--- Code: ---...
#ifndef _GLIBCXX_IOSTREAM
#define _GLIBCXX_IOSTREAM 1

#pragma GCC system_header

#include <bits/c++config.h>
#include <ostream>
#include <istream>
...

--- End code ---

So, I suspect that your code has bugs to search a relative path. Thanks.



ollydbg:
Addition.
I modify the pptest05.cpp to check it can preprocess correctly.


--- Code: ---#include<cv.h>
#include<cxcore.h>
#include<highgui.h>
using namespace std;
int main() {
    double a[5][5]={
        0,4,6,9,0,
        -5,2,0,1,2,
        -2,0,1,6,7,
        -6,1,1,1,1,
        -1,2,3,0,4
    };
    CvMat ma=cvMat(5,5,CV_64FC1,a);
    CvMat* m=cvCreateMat(5,5,CV_64FC1);
    m=cvCloneMat(&ma);
    CvMat *mb=cvCreateMat(5,5,CV_8UC1);
    cvCmpS(m,0,mb,CV_CMP_LT );
    return 0;
}

--- End code ---

and add those search path to main.cpp


--- Code: ---    fsp.addLocalSearchPath(defaultStringType("D:/MinGW/lib/gcc/mingw32/4.3.2/include/c++"));
    fsp.addLocalSearchPath(defaultStringType("D:/MinGW/lib/gcc/mingw32/4.3.2/include/c++/bits"));
    fsp.addLocalSearchPath(defaultStringType("F:/opencv/include/opencv"));
    fsp.addLocalSearchPath(defaultStringType("D:/MinGW/include"));
    fsp.addLocalSearchPath(defaultStringType("D:/MinGW/lib/gcc/mingw32/4.3.2/include"));

--- End code ---

Then, it reported

--- Quote ---src/test/../../tests/pptest05.cpp:19: #endif expected

Process returned 1 (0x1)   execution time : 0.359 s
Press any key to continue.


--- End quote ---

But I don't think I'm missing #endif in the last line of my test code.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version